- Jun 10, 2022
-
-
Alex Brachet authored
CLANG_MODULE_CACHE_PATH can be used to change where clang should put the module cache, or can be set to "" to disable caching entirely. Differential revision: https://reviews.llvm.org/D126678
-
Matthias Springer authored
This simplifies the bufferization itself and is in preparation of connecting with the sparse compiler. Differential Revision: https://reviews.llvm.org/D126814
-
Matthias Springer authored
CallOp result are not equivalent to an OpOperand if the OpOperand bufferizes out-of-place. Differential Revision: https://reviews.llvm.org/D126813
-
Nico Weber authored
Fixes link of many binaries if RISCV is enabled but most other targets aren't.
-
Matthias Springer authored
Users should explicitly run `-buffer-results-to-out-params` instead. The purpose of this change is to remove `finalizeBuffers`, which made it difficult to extend the bufferization to custom buffer types. Differential Revision: https://reviews.llvm.org/D126253
-
Matthias Springer authored
The buffer deallocation pass must now be run explicitly when `allow-return-alloc` is set. This results in a few extra buffer copies in unoptimized test cases. The proper way to avoid such copies is to relax the OpOperand/OpResult aliasing contract on ops such as scf.for. Some of these copies can also be avoided by improving the buffer deallocation pass. Differential Revision: https://reviews.llvm.org/D126252
-
Kito Cheng authored
-
Jonas Devlieghere authored
Include a reference to the documentation for "on demand symbols" in the documentation index. This will ensure the page shows up in the side bar on the website.
-
Jonas Devlieghere authored
Add table with custom LLDB asserts to the documentation. Differential revision: https://reviews.llvm.org/D127410
-
Jonas Devlieghere authored
-
- Jun 09, 2022
-
-
Florian Mayer authored
-
Florian Mayer authored
include the invalid LIBCXX_ABI_NAMESPACE to ease debugging. Reviewed By: #libc, jloser, ldionne Differential Revision: https://reviews.llvm.org/D127257
-
Kito Cheng authored
In order to make sure the stack point is right through the EH region, we also need to restore stack pointer from the frame pointer if we don't preserve stack space within prologue/epilogue for outgoing variables, normally it's just checking the variable sized object is present or not is enough, but we also don't preserve that at prologue/epilogue when have vector objects in stack. Example to show what happened: ``` try { sp adjust for outgoing args. // 1. Sp changed. func_call // 2. Exception raised sp restore // Oh, not restored } catch { // 3. And now we are here. } // 4. Prepare to return!, restore return address from stack, but...sp is wrong. // 5. Screw up! ``` Reviewed By: rogfer01 Differential Revision: https://reviews.llvm.org/D126861 -
Kito Cheng authored
The testcase show the stack pointer isn't recovered when we got exception from `_Z3fooiiiiiiiiiiPi`, and then we screw up due to restore return address from wrong stack pointer. NOTE: Trigger conditions: 1. Frame pointer is required. 2. Stack has out-going argument 3. Vector extension is enabled. Another run-able testcase: $ clang++ -target riscv64-unknown-linux-gnu -march=rv64gcv test.cpp ``` void __attribute__((noinline)) foo(int, int, int, int, int, int, int, int, int, int, int *){ throw int(0); } int main(int argc, char **argv) { int exception_value = 1; try { foo(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); } catch (int i) { exception_value = i; } return exception_value; } ``` Reviewed By: rogfer01 Differential Revision: https://reviews.llvm.org/D126860 -
Yuanqiang Liu authored
The operation `shape.concat` was used for type shape only. We now enable it for extent tensors. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D127321
-
Jun Zhang authored
The intent of this patch is to selectively carry some states over to the Builder so we won't lose the information of the previous symbols. This used to be several downstream patches of Cling, it aims to fix errors in Clang Interpreter when trying to use inline functions. Before this patch: clang-repl> inline int foo() { return 42;} clang-repl> int x = foo(); JIT session error: Symbols not found: [ _Z3foov ] error: Failed to materialize symbols: { (main, { x, $.incr_module_1.__inits.0, __orc_init_func.incr_module_1 }) } Co-authored-by:Axel Naumann <Axel.Naumann@cern.ch> Signed-off-by:
Jun Zhang <jun@junz.org> Differential Revision: https://reviews.llvm.org/D126781
-
Johannes Doerfert authored
This reverts commit da50dab1. Patch broke AMD GPU OpenMP offload buildbots. https://lab.llvm.org/buildbot/#/builders/193/builds/13246
-
Simon Moll authored
-
Johannes Doerfert authored
For the longest time we used `AAValueSimplify` and `genericValueTraversal` to determine "potential values". This was problematic for many reasons: - We recomputed the result a lot as there was no caching for the 9 locations calling `genericValueTraversal`. - We added the idea of "intra" vs. "inter" procedural simplification only as an afterthought. `genericValueTraversal` did offer an option but `AAValueSimplify` did not. Thus, we might end up with "too much" simplification in certain situations and then gave up on it. - Because `genericValueTraversal` was not a real `AA` we ended up with problems like the infinite recursion bug (#54981) as well as code duplication. This patch introduces `AAPotentialValues` and replaces the `AAValueSimplify` uses with it. `genericValueTraversal` is folded into `AAPotentialValues` as are the instruction simplifications performed in `AAValueSimplify` before. We further distinguish "intra" and "inter" procedural simplification now. `AAValueSimplify` was not deleted as we haven't ported the re-materialization of instructions yet. There are other differences over the former handling, e.g., we may not fold trivially foldable instructions right now, e.g., `add i32 1, 1` is not folded to `i32 2` but if an operand would be simplified to `i32 1` we would fold it still. We are also even more aware of function/SCC boundaries in CGSCC passes, which is good. Fixes: https://github.com/llvm/llvm-project/issues/54981
-
Johannes Doerfert authored
By default we should try to eliminate unused stores and simplify values stored while we are at it.
-
Johannes Doerfert authored
When determining liveness via Attributor::isAssumedDead(...) we might end up without a liveness AA or with one pointing into another function. Neither is helpful and we will avoid both from now on.
-
Jay Foad authored
-
Levon authored
This CL allows to use minidump save-core functionality (https://reviews.llvm.org/D108233) via SBProcess interface. After adding a support from gdb-remote client (https://reviews.llvm.org/D101329) if the plugin name is empty the plugin manager will try to save the core directly from the process plugin. See https://github.com/llvm/llvm-project/blob/main/lldb/source/Core/PluginManager.cpp#L696 To have an ability to save the core with minidump plugin I added plugin name as a parameter in SBProcess::SaveCore. Reviewed By: clayborg Differential Revision: https://reviews.llvm.org/D125325
-
Philip Reames authored
The majority of the cost appears to be forming the indices vector. Differential Revision: https://reviews.llvm.org/D127141
-
Florian Hahn authored
This reverts commit 1fbdbb55. All known issues surfaced by this patch should have been fixed now. The fixes included fixing issues with SCEV expansion in LV and DA's reliance on LCSSA phis.
-
Yitzhak Mandelbaum authored
This patch adds partial support for tracking (i.e. modeling) the contents of an optional value. Specifically, it supports tracking the value after it is accessed. We leave tracking constructed/assigned contents to a future patch. Differential Revision: https://reviews.llvm.org/D124932
-
Gabor Marton authored
Depends on D126560. `getKnownValue` has been changed by the parent patch in a way that simplification was removed. This is not correct when the function is called by the Checkers. Thus, a new internal function is introduced, `getConstValue`, which simply queries the constraint manager. This `getConstValue` is used internally in the `SimpleSValBuilder` when a binop is evaluated, this way we avoid the recursion into the `Simplifier`. Differential Revision: https://reviews.llvm.org/D127285
-
Simon Moll authored
Clang-format InstructionSimplify and convert all "FunctionName"s to "functionName". This patch does touch a lot of files but gets done with the cleanup of InstructionSimplify in one commit. This is the alternative to the less invasive clang-format only patch: D126783 Reviewed By: spatel, rengolin Differential Revision: https://reviews.llvm.org/D126889
-
Simon Pilgrim authored
[DAG] combineInsertEltToShuffle - if EXTRACT_VECTOR_ELT fails to match an existing shuffle op, try to replace an undef op if there is one. This should fix a number of shuffle regressions in D127115 where the re-ordered combines mean we fail to fold a EXTRACT_VECTOR_ELT/INSERT_VECTOR_ELT sequence into a BUILD_VECTOR if we extract from more than one vector source.
-
Johannes Doerfert authored
We accidentally checked for constants before we looked for registered simplification callbacks. The latter needs to take precedence though.
-
Andrew Turner authored
As with Linux placce the Counters array in the __libfuzzer_extra_counters section. This fixes the test on FreeBSD. Reviewed by: vitalybuka Differential Revision: https://reviews.llvm.org/D125902
-
Matthias Springer authored
This commit allows for One-Shot Bufferize to be used through the transform dialect. No op handle is currently returned for the bufferized IR. Differential Revision: https://reviews.llvm.org/D125098
-
Yuki Okushi authored
Differential Revision: https://reviews.llvm.org/D127065
-
Yuki Okushi authored
The code expanded from kmp_barrier.h uses some `KMP_INTERNAL_*`s, so the definitions have to be placed before it. Fixes #55815 Differential Revision: https://reviews.llvm.org/D126873
-
Timm Bäder authored
The driver stripts the first argument. Without the compiler name, the test depends on whether GCC_INSTALL_PREFIX is set or not. See https://reviews.llvm.org/D125862
-
Haojian Wu authored
We did that for .cpp, but forgot the headers. Differential Revision: https://reviews.llvm.org/D127388
-
Mark de Wever authored
- Updates the image to use Ubuntu Jammy. - Installs GCC-12 as preparation to migrate to that GCC version. NOTE: This is a re-application of f2f0dba8, which was reverted in 2b5e3ef8 due to an issue with the CI nodes. The CI nodes have since then been updated and this appears to be fine. Differential Revision: https://reviews.llvm.org/D126666
-
Aaron Ballman authored
-
Christian Kandeler authored
Analogous to 632545e8. Reviewed By: hokein Differential Revision: https://reviews.llvm.org/D127397
-
Alex Zinenko authored
This relies on the existing TileAndFuse pattern for tensor-based structured ops. It complements pure tiling, from which some utilities are generalized. Depends On D127300 Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D127319
-