- Oct 29, 2022
-
-
Arthur Eubanks authored
This reverts commit 4ea6ffb7. Breaks various backends.
-
Arthur Eubanks authored
-
Erich Keane authored
concept When we failed the lookup of the function, we tried to form a RecoveryExpr that caused us to recursively re-check the same constraint, which caused us to try to double-insert the satisfaction into the cache. This patch makes us just return the inner-cached version instead. We DO end up double-evaluating thanks to the recovery-expr, but there isn't a good way around that.
-
Arthur Eubanks authored
These have been no-op for a while and keeping them around may be confusing. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D136789
-
Craig Topper authored
We can use tail undisturbed vslide1down to insert into the vector. This should make D136640 unneeded. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D136738
-
Arthur Eubanks authored
Part of gradually removing the legacy PM optimization pipeline. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D136622
-
Arthur Eubanks authored
And some options that only throw errors with the new PM. Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D136621
-
Caroline Concatto authored
This patch adds the assembly/disassembly for the following instructions: BMOPA: Bitwise exclusive NOR population count outer product and accumulate. BMOPS: Bitwise exclusive NOR population count outer product and subtract. SMOPA (2-way): Signed integer sum of outer products and accumulate. SMOPS (2-way): Signed integer sum of outer products and subtract. UMOPA (2-way): Unsigned integer sum of outer products and accumulate. UMOPS (2-way): Signed integer sum of outer products and accumulate. The reference can be found here: https://developer.arm.com/documentation/ddi0602/2022-09 Differential Revision: https://reviews.llvm.org/D136077
-
Aaron Ballman authored
The changes in this paper add a new recommended practice. I had originally marked Clang as supporting this paper because we're not obligated to follow a recommended practice. However, in retrospect, it seems more useful to document whether we implement the recommendation or not. This adds a test for those changes.
-
Caroline Concatto authored
This patch adds the assembly/disassembly for the following instructions: SMLALL: (multiple and indexed vector): Multi-vector signed integer multiply-add long long by indexed element. (multiple and single vector): Multi-vector signed integer multiply-add long long by vector. (multiple vectors): Multi-vector signed integer multiply-add long long. SMLSLL: (multiple and indexed vector): Multi-vector signed integer multiply-subtract long long by indexed element. (multiple and single vector): Multi-vector signed integer multiply-subtract long long by vector. (multiple vectors): Multi-vector signed integer multiply-subtract long long. SUMLALL: (multiple and indexed vector): Multi-vector signed by unsigned integer multiply-add long long by indexed element. (multiple and single vector): Multi-vector signed by unsigned integer multiply-add long long by vector. UMLALL: (multiple and indexed vector): Multi-vector unsigned integer multiply-add long long by indexed element. (multiple and single vector): Multi-vector unsigned integer multiply-add long long by vector. (multiple vectors): Multi-vector unsigned integer multiply-add long long. UMLSLL: (multiple and indexed vector): Multi-vector unsigned integer multiply-subtract long long by indexed element. (multiple and single vector): Multi-vector unsigned integer multiply-subtract long long by vector. (multiple vectors): Multi-vector unsigned integer multiply-subtract long long. USMLALL: (multiple and indexed vector): Multi-vector unsigned by signed integer multiply-add long long by indexed element. (multiple and single vector): Multi-vector unsigned by signed integer multiply-add long long by vector. (multiple vectors): Multi-vector unsigned by signed integer multiply-add long long. The reference can be found here: https://developer.arm.com/documentation/ddi0602/2022-09 It also adds a new immediate: uimm2s4range for off2 uimm1s4range for o1 to represent the vector select offset. The new operands have the range between the first and the last vector position. Depends on : D135785 Differential Revision: https://reviews.llvm.org/D136075 -
Simon Pilgrim authored
When legalizing a smax/smin/umax/umin op, if we know that the upper half is all sign bits, then we can perform the op on the lower half and then sign extend the result to the upper half. Alive2: https://alive2.llvm.org/ce/z/rk8Rfd Fixes #58630
-
Simon Pilgrim authored
If we have sufficient sign bits, we should be able to expand the IMINMAX using only the lower half (and then sign-extend the result to the upper half)
-
Timm Bäder authored
-
Matt Devereau authored
These tests are a precommit for https://reviews.llvm.org/D135876
-
- Oct 28, 2022
-
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D136423
-
Timm Bäder authored
visit (lowercase V) sets DiscardValue to false and calls Visit (uppercase V). So we can't just call Visit (uppercase V) ourselves, since then we aren't handling DiscardValue correctly. This is currently irrelevant but will make a difference later. Also, the naming isn't my fault and might change later.
-
Yaxun (Sam) Liu authored
Add an option --[no-]offload-add-rpath to control whether to pass -rpath to linker for HIP runtime library. By default it is off to match gcc/clang behavior for not adding -rpath for runtime library by default. Reviewed by: Artem Belevich Differential Revision: https://reviews.llvm.org/D136854
-
Kevin P. Neal authored
-
Nikita Popov authored
-
Craig Topper authored
Although i32 type is illegal in the backend, RV64I has pretty good support for i32 types by using W instructions. By adding n32 to the DataLayout string, middle end optimizations will consider i32 to be a native type. One known effect of this is enabling LoopStrengthReduce on loops with i32 induction variables. This can be beneficial because C/C++ code often has loops with i32 induction variables due to the use of `int` or `unsigned int`. If this patch exposes performance issues, those are better addressed by tuning LSR or other passes. Reviewed By: asb, frasercrmck Differential Revision: https://reviews.llvm.org/D116735
-
Shilei Tian authored
-
Momchil Velikov authored
The `FunctionSpecialization` pass needs loop analysis results for its cost function. For this purpose, it computes the `DominatorTree` and `LoopInfo` for a function in `getSpecializationBonus`. This function, however, is called O(number of call sites x number of arguments), but the DominatorTree/LoopInfo can be computed just once. This patch plugs into the PassManager infrastructure to obtain LoopInfo for a function and removes ad-hoc computation from `getSpecializatioBonus`. Reviewed By: ChuanqiXu, labrinea Differential Revision: https://reviews.llvm.org/D136332
-
Eduard Zingerman authored
Callsite `DISubprogram` entries are not generated for: - builtin functions; - external functions with reserved names (e.g. names starting from "__"). This limitation was added by the commit [1] as a workaround for the situation described in [2] that triggered the IR verifier error. The goal of the present commit is to lift this limitation by adjusting the IR verifier logic. The logic behind [1] is to avoid the following situation: - a `DISubprogram` is added for some builtin function; - there is some location where this builtin is also emitted by a transformation (w/o debug location); - the `Verifier::visitCallBase` sees a call to a function with `DISubprogram` but w/o debug location and emits an error. Here is an updated example of such situation taken from [2]: ``` extern "C" int memcmp(void *, void *, long); struct a { int b; int c; int d; }; struct e { int f[1000]; }; bool foo(e g, e &h) { // DISubprogram for memcmp is created here when [1] is commented out return memcmp(&g, &h, sizeof(e)); } bool bar(a &g, a &h) { // memcmp might be generated here by MergeICmps return g.b == h.b && g.c == h.c && g.d == h.d; } ``` This triggers the verifier error when: - compiled for AArch64: `clang++ -c -g -Oz -target aarch64-unknown-linux-android21 test.cpp`; - [1] check is commented out. Instead of forbidding generation of `DISubprogram` entries as in [1] one can instead adjust the verifier to additionally check if callee has a body. Functions w/o bodies cannot be inlined and thus verifier warning is not necessary. E.g. `llvm::InlineFunction` requires functions for which `GlobalValue::isDeclaration() == false`. [1] 568db780 [2] https://bugs.chromium.org/p/chromium/issues/detail?id=1022296 Differential Revision: https://reviews.llvm.org/D136041 -
Timm Bäder authored
They get allocated when calling initialize() on a primitive array. And they get free'd when the array is fully initialized. However, when that never happens, they get leaked. Fix that by calling the destructor of global variables. Differential Revision: https://reviews.llvm.org/D136826
-
Timm Bäder authored
Randomly noticed this. We need to honor DiscardResult here. Differential Revision: https://reviews.llvm.org/D136013
-
Timm Bäder authored
When assigning to them, we can't classify the expression type, because that doesn't contain the right information. And when reading from them, we need to do the extra deref, just like we do when reading from a DeclRefExpr. Differential Revision: https://reviews.llvm.org/D136012
-
Timm Bäder authored
Remove the only use with the version we already use in VisitDeclRefExpr().
-
Nicolai Hähnle authored
TableGen executables are supposed to never be linked against libLLVM-*.so, even when LLVM_LINK_LLVM_DYLIB=ON, presumably for cross-compilation. It turns out that clang-tblgen *did* link against libLLVM-*.so, indirectly so via the clangSupport. This lead to a regression in what should have been unrelated work of cleaning up ManagedStatics in LLVMSupport. A running clang-tblgen process ended up with two copies of a cl::opt static global: - one from libLLVMSupport linked statically into clang-tblgen as a direct dependency - one from libLLVMSupport linked into libLLVM-*.so, which clang-tblgen linked against due to the clangSupport dependency For a bit more context, see the discussion at https://discourse.llvm.org/t/flang-aarch64-dylib-buildbot-need-help-understanding-a-regression-in-clang-tblgen/64871/ None of the potential solutions I could find are perfect. Presumably one possible solution would be to remove "Support" from the explicit dependencies of clang-tblgen. However, relying on the transitive inclusion via clangSupport seems risky, and in any case this wouldn't address the issue of clang-tblgen surprisingly linking against libLLVM-*.so. This change instead creates a second version of the clangSupport library that is explicitly linked statically, to be used by clang-tblgen. v2: - define an alias so that clang-tblgen can always link against "clangSupport_tablegen" - use add_llvm_library(... BUILDTREE_ONLY ...) v3: - use the object library version of clangSupport if available Differential Revision: https://reviews.llvm.org/D134637
-
Alexander Belyaev authored
https://discourse.llvm.org/t/rfc-interface-for-destination-style-ops/64056 Differential Revision: https://reviews.llvm.org/D136943
-
John Brawn authored
This reverts commit 628467e5. This is causing a miscompile in ffmpeg when compiled for armv7.
-
Sanjay Patel authored
This bug was introduced with D136713 / 54eeadcf . As an enhancement, we could cast operands to the expected type, but we need to make sure that is done correctly (zext vs. sext). It's also possible (but seems unlikely) that an operand can have a type larger than the result type. Fixes #58661
-
Qiongsi Wu authored
This patch passes on the `vec-extabi` mabi option on AIX. Reviewed By: w2yehia Differential Revision: https://reviews.llvm.org/D136874
-
Kadir Cetinkaya authored
This was stated as 9.3, but as pointed out in https://discourse.llvm.org/t/rfc-bump-minimal-requirements-apple-clang-9-3-10-0-0-before-4th-tue-in-january/66156/7?u=kadircet 9.3 doesn't exist, hence this was effectively 10.0. This patch merely reflects the reality more closely. Differential Revision: https://reviews.llvm.org/D136609
-
Martin Storsjö authored
This fixes the following warning: ../tools/clang/lib/AST/Interp/Disasm.cpp: In member function ‘void clang::interp::Function::dump(llvm::raw_ostream&) const’: ../tools/clang/lib/AST/Interp/Disasm.cpp:43:25: warning: cast from type ‘const clang::interp::Function*’ to type ‘void*’ casts away qualifiers [-Wcast-qual] 43 | OS << " " << (void*)this << ":\n"; | ^~~~ -
Haojian Wu authored
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D135366
-
Haojian Wu authored
-
Kristof Beyls authored
They stopped a while ago. Differential Revision: https://reviews.llvm.org/D136876
-
Nenad Mikša authored
When printing NTTP template types, ensure that type name of the NTTP is printed. Fixes #57562 Differential Revision: https://reviews.llvm.org/D134453
-
Aaron Ballman authored
-