- Dec 13, 2022
-
-
Philip Reames authored
-
Rob Suderman authored
Moved to using helper lambdas to avoid code repetition. IR needed to be reordered to accommodate which should be the only changes to the existing tests. This changes the quantized test to target `i48` types to guarantee types are extended correctly when necessary. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D136500
-
David Blaikie authored
This may be a breaking change for consumers if they're trying to detect if code is C or C++, since it'll start using new codes that they may not be ready to recognize, in which case they may fall back to non-C handling. This caused regressions due to PS4 having a different default for C language version than other targets. Those tests were adapted to be relaxed about which C version is used. This reapplies commit 3c312e48 Which was reverted by commit 6ab6085c. Differential Revision: https://reviews.llvm.org/D138597
-
Mitch Phillips authored
This has been on life support for a long time. Now that -fsanitize=scudo is scudo_standalone, this can be removed. Tests are sticking around for now to be reused for scudo_standalone later on. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D139884
-
David Blaikie authored
-
Jonathon Penix authored
Doing a pointer assignment to another pointer which is a derived type component could result in the bound information being lost, potentially leading to incorrect array accesses. Fix this by trying to retain the bound info during the assignment. Fixes #57441 Differential Revision: https://reviews.llvm.org/D139800
-
Paul Pelzl authored
The NullabilityChecker has a very early policy decision that non-inlined property accesses will be inferred as returning nonnull, despite nullability annotations to the contrary. This decision eliminates false positives related to very common code patterns that look like this: if (foo.prop) { [bar doStuffWithNonnull:foo.prop]; } While this probably represents a correct nil-check, the analyzer can't determine correctness without gaining visibility into the property implementation. Unfortunately, inferring nullable properties as nonnull comes at the cost of significantly reduced code coverage. My goal here is to enable detection of many property-related nullability violations without a large increase in false positives. The approach is to introduce a heuristic: after accessing the value of a property, if the analyzer at any time proves that the property value is nonnull (which would happen in particular due to a nil-check conditional), then subsequent property accesses on that code path will be *inferred* as nonnull. This captures the pattern described above, which I believe to be the dominant source of false positives in real code. https://reviews.llvm.org/D131655 -
Mitch Phillips authored
My local build is with -DLLVM_ENABLE_PROJECTS=lldb, but I don't compile with -DLLDB_ENABLE_PYTHON=True or -DLLDB_ENABLE_LUA=True. This results in there being no script interpreter. The test lldb/test/Shell/Breakpoint/breakpoint-command.test has an implicit dependency on a script interpreter being available. This patch makes that dependency clear. If you have a script interpreter, the test gets run, otherwise it gets skipped. This means that folks (like me) who naively use -DLLVM_ENABLE_PROJECTS=lldb can continue to run check-all without breakages. Reviewed By: JDevlieghere Differential Revision: https://reviews.llvm.org/D139463
-
Roman Lebedev authored
This reducer runtime of ``` $ ./bin/llvm-exegesis -mode=inverse_throughput --opcode-index=-1 --benchmarks-file=/dev/null --dump-object-to-disk=0 --measurements-print-progress --skip-measurements ``` from 3m44s to 2m17s, aka -38%. But more importantly, we go from 400 *million* memory allocations down to just 100 million, aka -75%. But really, the big missing thing is doing everything in a single thread. Sure, we can't do anything when measuring, but when we are not measuring, we should just prepare (codegen) everything via all threads. That should parallelize quite well.
-
Roman Lebedev authored
We'd check the cost of the wrong 'cond', after potentially skipping `not`.
-
Mitch Phillips authored
The sanitizer backtrace is used in tests, and calling StackTrace.Print() means that it uses the sanitizer's Printf(), rather than GWP-ASan's Printf(). In the current code, GWP-ASan's Printf() *is* the sanitizer print, but this isn't guaranteed to be the case, and will change in an upcoming patch. Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D139748
-
Chi Chun Chen authored
This patch gives basic parsing and semantic support for "modifiers" of order clause introduced in OpenMP 5.1 ( section 2.11.3 ) Reviewed By: ABataev Differential Revision: https://reviews.llvm.org/D127855
-
Tom Eccles authored
Another attempt to skip the fast-math linker test on powerpc. The test has to be skipped because there is no crtfastmath.o on powerpc. Change recommended by Amy Kwan <amyk>. See https://reviews.llvm.org/D138675
-
Vasileios Porpodas authored
This is part of a series of cleanup patches towards making BasicBlock::getInstList() private. Differential Revision: https://reviews.llvm.org/D138877
-
Michael Jones authored
There were some tests added that attempted to access files after they were closed to test errno behavior, this caused sanitizer issues. Those portions of the tests have been disabled. Differential Revision: https://reviews.llvm.org/D139878
-
Guillaume Chatelet authored
This reverts commit 3bbfaee2.
-
Mike Urbach authored
This allows basic IR traversal via the C API, which is useful for analyses in languages other than C++. This starts by defining an MlirOpOperand struct to encapsulate a pair of an owner operation and an operand number. A new API is added for MlirValue, to return the first use of the Value as an MlirOpOperand, or a "null" MlirOpOperand if there are no uses. A couple APIs are added for MlirOpOperand. The first checks if an MlirOpOperand is "null", by checking if its owner's pointer is null. The second supports iteration along the use-def lists by accepting an MlirOpOperand and returning the next use of the Value as another MlirOpOperand, or a "null" MlirOpOperand if there are no more uses. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D139596
-
Michael Jones authored
Now errno is only set by the terminal entrypoints, and not the internal implementations. This patch is part of the larger effort to not set errno in libc internal code: https://github.com/llvm/llvm-project/issues/59278 Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D139576
-
Nicolas Vasilache authored
This fixes an issue where rank-reducing + fusion would not interop properly. Differential Revision: https://reviews.llvm.org/D139844
-
Felipe de Azevedo Piovezan authored
Apply the same strategy from D139217 to loop debug locations. Differential Revision: https://reviews.llvm.org/D139851
-
Felipe de Azevedo Piovezan authored
When a dbg.label is moved into a new function, its corresponding scope should be preserved, with the exception of the subprogram at the end of the scope chain, which should now be the subprogram of the destination function. See D139671. Differential Revision: https://reviews.llvm.org/D139849
-
Felipe de Azevedo Piovezan authored
dbg.labels that were inlined from other functions should have their scope preserved upon outlining for the same reasons described in D139669.
-
Haojian Wu authored
-
Tom Eccles authored
There seems not be any crtfastmath.o on powerpc. See https://reviews.llvm.org/D138675
-
Krzysztof Drewniak authored
The freeze builder did not assign the result of creating the freeze operation to $res, which meant that when subsequent translations (such as a sext) tried to use that result or query its type, mlir-translate would crash. This fixes the issue and adds a test for it. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D139574
-
Jakub Kuderski authored
To not introduce 64-bit types that may be difficult to handle for some targets. Reviewed By: rsuderman, antiagainst Differential Revision: https://reviews.llvm.org/D139777
-
Nikita Popov authored
Try to fix failure reported in https://reviews.llvm.org/rG9466b49171dc#1154213 by making the match more specific, as there are multiple dbg.declares that could be matched.
-
Kazu Hirata authored
We use LLVM_HAVE_TFLITE as the key to enable the mlgo work these days, and LLVM_HAVE_TF_API is defined whenever LLVM_HAVE_TF_API is defined. I'm posting this patch because it's purely mechanical. I'll post a follow-up patch to remove LLVM_HAVE_TF_API in non-C++ files, and that will not be as mechanical as this one. Differential Revision: https://reviews.llvm.org/D139863
-
Kazu Hirata authored
We use LLVM_HAVE_TFLITE as the key to enable the MLGO bits. We do not use the "else" clause. Differential Revision: https://reviews.llvm.org/D139860
-
Paul Robinson authored
Also add 'system-zos' as a lit feature and use it where needed. Part of the project to eliminate special handling for triples in lit expressions. Differential Revision: https://reviews.llvm.org/D139444
-
Kirill Stoimenov authored
Reviewed By: kda Differential Revision: https://reviews.llvm.org/D139727
-
Shoaib Meenai authored
We were previously ignoring weak externals during these searches (which are used for the entry point, exports, and subsystem inference), which differed from link.exe behavior. It also meant that we could get different behavior when linking an object file directly vs. packaging it into a static library, because static library symbol name directories include weak externals. Reviewed By: mstorsjo, yozhu Differential Revision: https://reviews.llvm.org/D139764
-
Nico Weber authored
-
Arthur Eubanks authored
This factors out the check from various callers. Reviewed By: Michael137 Differential Revision: https://reviews.llvm.org/D139649
-
Keith Smiley authored
Based on the discussion in https://reviews.llvm.org/D130221 and https://reviews.llvm.org/D139223 Differential Revision: https://reviews.llvm.org/D139347
-
Jordan Rupprecht authored
In general, the source tree is not assumed to be writeable, so modifying `%s` does not work for all CI systems. Instead of touching `%s`, copy it to a writeable dir using `%t`, and touch it there. Actually, `dr0xx.c` isn't really needed at all, so just create a new `dep.c` file in the build tree. This was recently added in cb088e8c, fixed in 1481fcf7, and fixed again in d16c5901.
-
Paul Robinson authored
Missed these on the first pass. Part of the project to eliminate special handling for triples in lit expressions.
-
Ye Luo authored
Differential Revision: https://reviews.llvm.org/D139856
-
Doru Bercea authored
-