- Oct 13, 2021
-
-
Sanjay Patel authored
There's a substantial pile of scalar tests for transforms that depend on this code, but zero vector coverage. This patch adds a vector test next to the first scalar test in each file that is affected by foldLogOpOfMaskedICmps. The code that handles these transforms is artificially limited from working with vector splat constants.
-
Raphael Isemann authored
-
Alex Zinenko authored
-
Alex Zinenko authored
When writing the user-facing documentation, I noticed several inconsistencies and asymmetries in the Python API we provide. Fix them by adding: - the `owner` property to regions, similarly to blocks; - the `isinstance` method to any class derived from `PyConcreteAttr`, `PyConcreteValue` and `PyConreteAffineExpr`, similar to `PyConcreteType` to enable `isa`-like calls without having to handle exceptions; - a mechanism to create the first block in the region as we could only create blocks relative to other blocks, with is impossible in an empty region. Reviewed By: gysit Differential Revision: https://reviews.llvm.org/D111556
-
Jeremy Morse authored
Old versions of gcc want template specialisations to happen within the namespace where the template lives; this is still present in gcc 5.1, which we officially support, so it has to be worked around.
-
Louis Dionne authored
I came across an issue where since we build the library for Apple with the install name directory being /usr/lib, which means that if we don't run the tests with DYLD_LIBRARY_PATH, we'll end up loading the system-provided libc++abi when running the tests. That wreaks havoc. Instead of fixing it in the legacy config file, this commit introduces an Apple libc++abi config file that does the right thing. Differential Revision: https://reviews.llvm.org/D111279
-
Louis Dionne authored
Instead of always defining LIBCXXABI_NO_TIMER to run the tests, only define LIBCXXABI_USE_TIMER when we want to enable the timer. This makes the libc++abi testing configuration simpler. As a fly-by fix, remove the unused LIBUNWIND_NO_TIMER macro from libunwind. Differential Revision: https://reviews.llvm.org/D111667
-
Jeremy Morse authored
InstrRefBasedLDV used to try and determine which values are in which registers using a lattice approach; however this is hard to understand, and broken in various ways. This patch replaces that approach with a standard SSA approach using existing LLVM utilities. PHIs are placed at dominance frontiers; value propagation then eliminates un-necessary PHIs. This patch also adds a bunch of unit tests that should cover many of the weirder forms of control flow. Differential Revision: https://reviews.llvm.org/D110173
-
Hsiangkai Wang authored
Previous patch only reverts C builtins for tail policy. In order to keep LLVM IR intact, add the `ta` argument in vector builtins.
-
Hsiangkai Wang authored
This reverts commit 7afa61e7.
-
Nathan Sidwell authored
Spotted when implementing an extension.
-
Adam Czachorowski authored
Previously we would call getAsTemplate() when kind == TemplateExpansion, which triggers an assertion. The call is now replaced with getAsTemplateOrTemplatePattern(), which is exactly the same as getAsTemplate(), except it allows calls when kind == TemplateExpansion. No change in behavior for no-assert builds. Differential Revision: https://reviews.llvm.org/D111648
-
Raphael Isemann authored
Just moving that block inside DWARFASTParserClang::ParseChildMembers into its own function. Also early-exiting instead of a large if when num_attributes is 0.
-
Nathan Sidwell authored
The p0388 patch series took so long, the clang version was incorrect, and I failed to realize that.
-
Kerry McLaughlin authored
This patch adds patterns to match the following with INC/DEC: - @llvm.aarch64.sve.cnt[b|h|w|d] intrinsics + ADD/SUB - vscale + ADD/SUB For some implementations of SVE, INC/DEC VL is not as cheap as ADD/SUB and so this behaviour is guarded by the "use-scalar-inc-vl" feature flag, which for SVE is off by default. There are no known issues with SVE2, so this feature is enabled by default when targeting SVE2. Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D111441
-
Dávid Bolvanský authored
-
Dávid Bolvanský authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
[X86][SSE] Add tests showing missing shuffle(avg(shuffle(),shuffle())) -> avg(shuffle(),shuffle()) fold X86ISD::AVG needs to be added to isCommutativeBinOp to use these folds.
-
Jan Svoboda authored
At this point, `F.ImportLoc` has not been initialized by the `ASTReader` yet and using it leads to an assertion failure. Introduced in 638c673a and 44451351.
-
Mehdi Amini authored
Skip the check on "hasOperandStorage" since the array will be indexed anyway. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D111696
-
Zi Xuan Wu authored
-
Balazs Benics authored
If the `assume-controlled-environment` is `true`, we should expect `getenv()` to succeed, and the result should not be considered tainted. By default, the option will be `false`. Reviewed By: NoQ, martong Differential Revision: https://reviews.llvm.org/D111296
-
Balazs Benics authored
The `getenv()` function might return `NULL` just like any other function. However, in case of `getenv()` a state-split seems justified since the programmer should expect the failure of this function. `secure_getenv(const char *name)` behaves the same way but is not handled right now. Note that `std::getenv()` is also not handled. Reviewed By: martong Differential Revision: https://reviews.llvm.org/D111245
-
Diana Picus authored
Search for the environment variable in the envp string passed to ProgramStart. This doesn't work if the main program isn't Fortran. Differential Revision: https://reviews.llvm.org/D111394
-
Valentin Clement authored
-
Jacques Pienaar authored
This exposes creating a CallSiteLoc with a callee & list of frames for callers. Follows the creation approach in C++ side where a list of frames may be provided. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D111670
-
Valentin Clement authored
This reverts commit edec659f.
-
Matthias Springer authored
`DenseSet<Value>` works but `DenseSet<OpResult>` currently results in a compile error. Differential Revision: https://reviews.llvm.org/D111694
-
Heejin Ahn authored
This makes Wasm EH work with dynamic linking. So far we were only able to handle destructors, which do not use any tags or LSDA info. 1. This uses `TargetExternalSymbol` for `GCC_except_tableN` symbols, which points to the address of per-function LSDA info. It is more convenient to use than `MCSymbol` because it can take additional target flags. 2. When lowering `wasm_lsda` intrinsic, if PIC is enabled, make the symbol relative to `__memory_base` and generate the `add` node. If PIC is disabled, continue to use the absolute address. 3. Make tag symbols (`__cpp_exception` and `__c_longjmp`) undefined in the backend, because it is hard to make it work with dynamic linking's loading order. Instead, we make all tag symbols undefined in the LLVM backend and import it from JS. 4. Add support for undefined tags to the linker. Companion patches: - https://github.com/WebAssembly/binaryen/pull/4223 - https://github.com/emscripten-core/emscripten/pull/15266 Reviewed By: sbc100 Differential Revision: https://reviews.llvm.org/D111388
-
Michael Kruse authored
-
Lang Hames authored
Negative deltas for LDRLiteral19 have their high bits set. If these bits aren't masked out then they will overwrite other instruction bits, leading to a bogus encoding. This long-standing relocation bug was exposed by e50aea58, "[JITLink][ORC] Major JITLinkMemoryManager refactor.", which caused memory layouts to be reordered, which in turn lead to a previously unseen negative delta. (Unseen because LDRLiteral19s were only created in JITLink passes where they always pointed at segments that were layed-out-after in the old layout). No testcase yet: Our existing regression test infrastructure is good at checking that operand bits are correct, but provides no easy way to test for bad opcode bits. I'll have a think about the right way to approach this. https://llvm.org/PR52153
-
Michael Kruse authored
Instead of being inline and having a neverCalled() workaround to make it work in the debugger, define it as a regular exported function. Also add overloads for the C API types isl_* so it works with managed as well as unmanaged ISL objects.
-
Visa Hankala authored
The mips-specific includes have been unnecessary ever since the __clear_cache() builtin replaced cacheflush(). Differential Revision: https://reviews.llvm.org/D111486
-
Hsiangkai Wang authored
This reverts commit 97f0c637. As discussed in https://reviews.llvm.org/D110684, it increased the compile time and the binary size of clang more than 1%. I reverted this patch first to think about a better way to do it.
-
Stella Laurenzo authored
As discussed on discord, we have never actually been able to build with the project-wide published min version of 3.14.3. The buildbot that tests the Python configuration is currently pinned to 3.19.1, and there are a number of non-version/policy controlled features that Python building relies on that makes it unreliable with older versions. Some of the issues are pretty fundamental and I don't know how to do them on the older version. I think that, as an optional feature, at least advertising the PSA as in this patch is a good middle ground until the next project-wide CMake version bump. Also moves setup logic to a macro so that everyone can use it.
-
Philip Reames authored
-
Philip Reames authored
The newly introduced API for checking whether poison comes solely from flags which can be dropped was out of sync. This was noticed by a reviewer post commit. For the moment, disable the floating point flags. In a follow up change, I plan to add support in dropPoisonGeneratingFlags, but that deserves to be a change of it's own.
-
Mogball authored
Precursor: https://reviews.llvm.org/D110200 Removed redundant ops from the standard dialect that were moved to the `arith` or `math` dialects. Renamed all instances of operations in the codebase and in tests. Reviewed By: rriddle, jpienaar Differential Revision: https://reviews.llvm.org/D110797
-
Jinsong Ji authored
This patch enable profile test for supported options on AIX. Reviewed By: w2yehia Differential Revision: https://reviews.llvm.org/D110945
-