- May 10, 2023
-
-
Douglas Yung authored
This reverts commit 38db3795. This change was causing a test failure on the PS5 Windows bot: https://lab.llvm.org/buildbot/#/builders/216/builds/20982
-
Mehdi Amini authored
This is part of an on-going migration to adopt Properties inside MLIR. Differential Revision: https://reviews.llvm.org/D148895
-
Mehdi Amini authored
This is part of an on-going migration to adopt Properties inside MLIR. Differential Revision: https://reviews.llvm.org/D148894
-
Mehdi Amini authored
This is part of an on-going migration to adopt Properties inside MLIR. Differential Revision: https://reviews.llvm.org/D148893
-
Mehdi Amini authored
This is part of an on-going migration to adopt Properties inside MLIR. Differential Revision: https://reviews.llvm.org/D148892
-
Mehdi Amini authored
This is part of an on-going migration to adopt Properties inside MLIR. Differential Revision: https://reviews.llvm.org/D148891
-
Mehdi Amini authored
This is part of an on-going migration to adopt Properties inside MLIR. Differential Revision: https://reviews.llvm.org/D148890
-
Younan Zhang authored
This is caused by 7385cc38.
-
Noah Goldstein authored
Re-revert "[ValueTracking] Use knownbits interface for determining if `div`/`rem` are safe to speculate" Seems to be causing a bug in CorrelatedValuePropegation. Reverting while the issue is investigated. This reverts commit 6c667abf.
-
Jason Molenda authored
The old way of lldb reading the on-disk shared cache is still in the sources, but we use dyld SPI to inspect this binary now. This code is no longer called.
-
Fangrui Song authored
lit changes /dev/null to a special filename, and `"-dumpdir" "/dev/null-"` will fail.
-
Sami Tolvanen authored
-
Jie Fu authored
/data/llvm-project/mlir/lib/Target/LLVMIR/Dialect/OpenACC/OpenACCToLLVMIRTranslation.cpp:41:27: error: unused variable 'kCopyFlag' [-Werror,-Wunused-const-variable] static constexpr uint64_t kCopyFlag = kDeviceCopyinFlag | kHostCopyoutFlag; ^ 1 error generated. -
Nathan Sidwell authored
* Use 'if (T v = expr)' idiom * llvm.loop is a fixed metadata ID Differential Revision: https://reviews.llvm.org/D150109 Reviewed By: kazu
-
Christopher Ferris authored
In the secondary allocation routine, the StatsAllocated stat is increased by BlockSize. However, in the deallocate routine, the stat subtract uses CommitSize. CommitSize can be bigger than BlockSize so this can lead to a negative calculated stat. Since the stats are not guaranteed to be completely accurate, just add CommitSize during allocation. Reviewed By: Chia-hungDuan Differential Revision: https://reviews.llvm.org/D150169
-
Ivan Butygin authored
Make group ops uniform if `gpu.launch` is their direct parent. Differential Revision: https://reviews.llvm.org/D149183
-
Rahul Kayaith authored
This reverts commit 4d0d295b. This caused a buildbot failure: https://lab.llvm.org/buildbot/#/builders/61/builds/43479
-
Martin Storsjö authored
For MinGW targets, size_t isn't a compiler defined type, just like for unix targets. Differential Revision: https://reviews.llvm.org/D149999
-
Martin Storsjö authored
This fixes running tests with a toolchain that defaults to a MinGW target. Differential Revision: https://reviews.llvm.org/D149997
-
Martin Storsjö authored
Assume the MSVC style naming only for "windows-msvc" targets. Differential Revision: https://reviews.llvm.org/D149998
-
Valentin Clement authored
Remove old clause operands from acc.parallel operation since the new dataOperands is now in place. private, firstprivate and reductions will receive some redesign but are not part of the new dataOperands. Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D150207
-
Arthur Eubanks authored
-
Fangrui Song authored
When the final phase is linking, Clang currently places `.dwo` files in the current directory (like the `-c` behavior for multiple inputs). Strangely, -fdebug-compilation-dir=/-ffile-compilation-dir= is considered, which is untested. GCC has a more useful behavior that derives auxiliary filenames from the final output (-o). ``` gcc -c -g -gsplit-dwarf d/a.c d/b.c # a.dwo b.dwo gcc -g -gsplit-dwarf d/a.c d/b.c -o e/x # e/x-a.dwo e/x-b.dwo gcc -g -gsplit-dwarf d/a.c d/b.c # a-a.dwo a-b.dwo ``` Port a useful subset of GCC behaviors that are easy to describe to Clang. * Add a driver and cc1 option -dumpdir * When the final phase is link, add a default -dumpdir if not specified by the user * Forward -dumpdir to -cc1 command lines * tools::SplitDebugName prefers -dumpdir when constructing the .dwo filename GCC provides -dumpbase. If we use just one of -dumpdir and -dumpbase, -dumpbase isn't very useful as it appends a dash. ``` gcc -g -gsplit-dwarf -dumpdir e d/a.c # ea.dwo gcc -g -gsplit-dwarf -dumpdir e/ d/a.c # e/a.dwo gcc -g -gsplit-dwarf -dumpbase e d/a.c # e-a.dwo gcc -g -gsplit-dwarf -dumpbase e/ d/a.c # e/-a.dwo ``` If we specify both `-dumpdir` and `-dumpbase`, we can avoid the influence of the source filename when there is one input file. ``` gcc -g -gsplit-dwarf -dumpdir f/ -dumpbase x d/a.c # f/x.dwo gcc -g -gsplit-dwarf -dumpdir f/ -dumpbase x d/a.c d/b.c # f/x-a.dwo f/x-b.dwo ``` Given the above examples, I think -dumpbase is not useful. GCC -save-temps has interesting interaction with -dumpdir as -save-temps generated files are considered auxiliary files like .dwo files. For Clang, with this patch, -save-temps and -dumpdir are orthogonal, which is easier to explain. ``` gcc -g -gsplit-dwarf d/a.c -o e/x -dumpdir f/ -save-temps=obj # e/a.{i,s,o,dwo} gcc -g -gsplit-dwarf d/a.c -o e/x -save-temps=obj -dumpdir f/ # f/a.{i,s,o,dwo} clang -g -gsplit-dwarf d/a.c -o e/x -save-temps=obj -dumpdir f/ # e/a.{i,s,o} f/a.dwo ``` Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D149193 -
Florian Hahn authored
Add missing test coverage for D150029.
-
Alexey Vishnyakov authored
Reviewed By: MaskRay, dmgreen Differential Revision: https://reviews.llvm.org/D147931
-
Valentin Clement authored
The lowerbound was not correctly normalized to 0 when the bound are generated for an array without subscripts. ``` integer :: a(11:20) !$acc enter data create(a) ``` Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D150208
-
Zhenkai Weng authored
IRMutation::mutateModule() currently requires the bitcode size of the module. To compute the bitcode size, one way is to write the module to a buffer using BitcodeWriter and calculating the buffer size. This would be fine for a single mutation, but infeasible for repeated mutations due to the large overhead. It turns out that the only IR strategy weight calculation method that depends on the current module size is InstDeleterStrategy, which deletes instructions more frequently as the module size approaches a given max size. However, there is no real need for the size to be in bytes of bitcode, so we can use a different metric. One alternative is to let the size be the number of objects in the Module, including instructions, basic blocks, globals, and aliases. Although getting the number of instructions is still O(n), it should have significantly less overhead than BitcodeWriter. This suggestion would cause a change to the IRMutator API, since IRMutator::mutateModule() c...
-
Alex Langford authored
The LEB128 type defined by the DWARF standard is explicitly a variable-length encoding of an integer. LLDB had defined `uleb128` and `sleb128` types to be 32-bit but in many places in both LLVM and LLDB we treat the maximum width of LEB128 types to be 64, so let's remove these types and be consistent. Differential Revision: https://reviews.llvm.org/D150222
-
Slava Zakharin authored
The implied-do index value has 'index' type, and it has to be converted to the original ac-do-variable's data type. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D150150
-
Slava Zakharin authored
-
Fangrui Song authored
-
Valentin Clement authored
Since the new data operand operations have been added in D148389 and adopted on acc.data in D149673, the old clause operands are no longer needed. The LegalizeDataOpForLLVMTranslation will become obsolete when all operations will be cleaned. For the time being only the appropriate part are being removed. processOperands will also receive some updates once all the operands will be coming from an acc data operand operation. Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D150155
-
Aaron Ballman authored
This addresses the ARM issue found by: https://lab.llvm.org/buildbot/#/builders/109/builds/63726 (This test wouldn't run for me locally, hence missing it in the last fix.)
-
Aaron Ballman authored
It seems we were testing the behavior of the debug messages!
-
Ben Langmuir authored
Avoid inferring new submodules for headers in ASTWriter's collection of affecting modulemap files, since we don't want to pick up dependencies that didn't actually exist during parsing. rdar://109112624 Differential Revision: https://reviews.llvm.org/D150151
-
Valentin Clement authored
This reverts commit 626aa851.
-
Aaron Ballman authored
While investigating a bug in Clang, I noticed that -Wframe-larger-than was emitting extra debug information along with the diagnostic. It turns out that 2e1e2f52 fixed an issue with the diagnostic, but accidentally left in some debug code that was exposed in all builds. So now we no longer emit things like: 8/4294967304 (0.00%) spills, 4294967296/4294967304 (100.00%) variables along with the diagnostic
-
Aaron Ballman authored
This addresses the issues found by: https://lab.llvm.org/buildbot/#/builders/30/builds/34937
-
Valentin Clement authored
The lowerbound was not correctly normalized to 0 when the bound are generated for an array without subscripts. ``` integer :: a(11:20) !$acc enter data create(a) ``` Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D150208
-