- Jul 26, 2023
-
-
Johannes Doerfert authored
-
Johannes Doerfert authored
This adds the deduction also if the function is not IPO amendable.
-
Johannes Doerfert authored
If the new signature has only readnone pointers we can remove any argmem effect from the function signature.
-
Johannes Doerfert authored
See @nosync_convergent_callee_test() in nosync.ll. The other changes are call sites now annotated with `nosync`.
-
Johannes Doerfert authored
-
Jonas Devlieghere authored
Increase the default timeouts when running under ASan. We had something similar before we adopted tablegen, but the larger timeouts got lost in the transition, possibly because tablegen's preprocessor support is very limited. This patch passes a new define (LLDB_SANITIZED) to lldb-tablegen on which we can base the default value. Differential revision: https://reviews.llvm.org/D156279
-
Florian Mayer authored
This has been in use for a long time without any issues. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D156267
-
Jim Lin authored
-
Mehdi Amini authored
-
Florian Mayer authored
They pass on x86_64 host, arm64 host, and Android. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D156273
-
Florian Mayer authored
Tested on Android and ARM Linux and it passes. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D156269
-
Fangrui Song authored
[unittest] Remove some tests from f5ae7e34 that current GlobPattern cannot handle
-
Fangrui Song authored
This restores D132311, which was reverted in 29c841ce (Sep 2022) due to certain files not buildable with GCC 7.3.0. The previous attempt was reverted by 6cd9608f (Dec 2020). This time, GCC 7.3.0 has existing build errors for a long time due to structured bindings for many files, e.g. ``` llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:9098:13: error: cannot decompose class type ‘std::pair<llvm::Value*, const llvm::SCEV*>’: both it and it s base class ‘std::pair<llvm::Value*, const llvm::SCEV*>’ have non-static data members for (auto [_, Stride] : Legal->getLAI()->getSymbolicStrides()) { ^~~~~~~~~~~ ``` ... and also some `error: duplicate initialization of` instances due to llvm/Transforms/IPO/Attributor.h. --- GCC 7.5.0 has a bug that, without this change, certain `SmallVector` with a `std::pair` element type like `SmallVector<std::pair<Instruction * const, Info>, 0> X;` lead to spurious ``` /tmp/opt/gcc-7.5.0/include/c++/7.5.0/type_traits:878:48: error: constructor required before non-static data member for ‘...’ has been parsed ``` Switching to std::is_trivially_{copy/move}_constructible fixes the error.
-
Vitaly Buka authored
OnUnmap tags to zero already.
-
Andrés Villegas authored
Switch the parse of command line options from llvm::cl to OptTable. The motivation for this change is to continue adding llvm based tools to the llvm driver multicall. For more information about the proposal and motivation, please see https://discourse.llvm.org/t/rfc-llvm-busybox-proposal/58494 Reviewed By: leonardchan Differential Revision: https://reviews.llvm.org/D155119
-
Ziqing Luo authored
`FixableGadget`s are not always associated with variables that are unsafe (warned). For example, they could be associated with variables whose unsafe operations are suppressed or that are not used in any unsafe operation. Such `FixableGadget`s will not be fixed. Removing these `FixableGadget` as early as possible helps improve the performance and stability of the analysis. Reviewed by: NoQ (Artem Dergachev), t-rasmud (Rashmi Mudduluru) Differential revision: https://reviews.llvm.org/D155524
-
Alfred Persson Forsberg authored
Adds PTHREAD_MUTEX_INITIALIZER for compiler-rt's builtins/emutls.c Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D156276
-
Michael Jones authored
It's necessary for the assert_fail function, so it needs to stay in for the moment. Reviewed By: alfredfo Differential Revision: https://reviews.llvm.org/D156275
-
Shubham Sandeep Rastogi authored
instead of DW_ELE_start_length in debug_rnglists section This patch tries to reduce the size of the debug_rnglist section by replacing the DW_RLE_start_length opcodes currently emitted by dsymutil in favor of using DW_RLE_base_addressx + DW_RLE_offset_pair instead. The DW_RLE_start_length is one AddressSize followed by a ULEB per entry, whereas, the DW_RLE_base_addressx + DW_RLE_offset_pair will use one ULEB for the base address, and then the DW_RLE_offset_pair is a pair of ULEBs. This will be more efficient. Differential Revision: https://reviews.llvm.org/D156166
-
Vitaly Buka authored
-
Qi Hu authored
When inline assembly code requests more registers than available, the MachineInstr::emitError function in the RegAllocFast pass emits an error but doesn't stop the pass, and then the compiler crashes later with an assertion failure. This commit, mimicking the RegAllocGreedy pass, assigns a random physical register, and therefore avoids the crash after producing the diagnostic. This problem has been observed for both rustc and clang, while it doesn't occur in gcc.
-
Fangrui Song authored
They cover some interesting cases when I was developing https://reviews.llvm.org/D156046
-
River Riddle authored
Zero region operations return true for both isBeforeAllRegions and isAfterAllRegions when using WalkStage. The bytecode walk only expects region holding operations in the after regions path, so guard against that.
-
Fangrui Song authored
Many sources show that xxh3 is much better than xxh64. This particular instance may or may not have noticeable difference, but this change moves us toward removing xxHash64. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D155992
-
Richard Smith authored
member. Previously, we wouldn't do this if the first member loaded is within a definition that's added to a class via an update record, which happens when template instantiation adds a class definition to a declaration that was imported from an AST file. This would lead to classes having member functions whose getParent returned a class declaration that wasn't the primary definition, which in turn caused the vtable builder to build broken vtables. I don't yet have a reduced testcase for the wrong-code bug here, because the setup required to get us into the broken state is very subtle, but have confirmed that this fixes it.
-
River Riddle authored
We currently only support lazy loading for regions that statically implement the IsolatedFromAbove trait, but that limits the amount of operations that can be lazily loaded. This review lifts that restriction by computing which operations have isolated regions when numbering, allowing any operation to be lazily loaded as long as it doesn't use values defined above. Differential Revision: https://reviews.llvm.org/D156199
-
River Riddle authored
We currently encode each region as a separate section, but the reader expects all of the regions to be in the same section. This updates the writer to match the behavior that the reader expects. Differential Revision: https://reviews.llvm.org/D156198
-
Alex Langford authored
As of 0beffb85 there is a CMake function to actually calculate the relative path to the clang resource directory. Currently we have some bespoke logic that looks in a few places, but with this new function we should be able to eliminate some complexity here. Also, I moved the functionality from LLDBConfig to LLDBStandalone since it is only used in standalone builds. Differential Revision: https://reviews.llvm.org/D156270
-
Vitaly Buka authored
In aliasing mode we tag only heap, not mmap, and can't pass. Still it's not clear why the test didn't fail before.
-
Nick Desaulniers authored
Consider the following statement: const char* foo = "foo"; For the sub-AST: `-ImplicitCastExpr <col:19> 'const char *' <NoOp> `-ImplicitCastExpr <col:19> 'char *' <ArrayToPointerDecay> `-StringLiteral <col:19> 'char[4]' lvalue "foo" The address of the StringLiteral can be emitted as the Constant. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D156185 -
Mehdi Amini authored
Differential Revision: https://reviews.llvm.org/D156253
-
Vitaly Buka authored
-
Nicolas Vasilache authored
This revision significantly simplifies the specification and implementation of mapping loops to GPU ids. Each type of mapping (block, warpgroup, warp, thread) now comes with 2 mapping modes: 1. a 3-D "grid-like" mode, subject to alignment considerations on threadIdx.x, on which predication may occur on a per-dimension 3-D sub-rectangle basis. 2. a n-D linearized mode, on which predication may only occur on a linear basis. In the process, better size and alignment requirement inference are introduced along with improved runtime verification messages. The `warp_dims` attribute was deemed confusing and is removed from the transform in favor of better size inference. Differential Revision: https://reviews.llvm.org/D155941 -
DianQK authored
Resolve https://github.com/llvm/llvm-project/issues/61932. We should add the validation. LLVM can't handle IR where subprogram definitions are nested within DICompositeType when doing LTO builds, because there's no good way to cross the CU boundary to insert a nested DISubprogram definition in one CU into a type defined in another CU. The test cases `cross-cu-inlining-2.ll` and `cross-cu-inlining-ranges.ll` can be deleted. In the `cross-cu-inlining-2.ll`, the low pc and high pc of the CU are also incorrect. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D152095
-
Vitaly Buka authored
-
Valentin Clement authored
The attribute on operations in ops.mlir were not DeclareAttr but DataClauseAttr with the acc.declare attribute name. Update the test and the verifier to work correctly with the expected DeclareAttr. Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D156262
-
Richard Smith authored
-
Chia-hung Duan authored
This removes the need of ScopedUnlock and make the future use of condition variable easier to wake up waiting threads. Reviewed By: cferris Differential Revision: https://reviews.llvm.org/D156147
-
Anna Thomas authored
This is a complete fix for CompleteLoadGroups introduced in D154309. We need to check for dependency between A and every member of the load Group of B. This patch also fixes another miscompile seen when we incorrectly sink stores below a depending load (see testcase in interleaved-accesses-sink-store-across-load.ll). This is fixed by releasing store groups correctly. Differential Revision: https://reviews.llvm.org/D155520
-
Nick Desaulniers authored
It looks like the definition was removed in cd21d541 but the declaration was not. Surprisingly (to me), that doesn't seem to produce any kind of diagnostic. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D156182
-