- Jul 20, 2023
-
-
Matthias Springer authored
Commutative ops were previously folded with a special rule in `OperationFolder`. This change turns the folding into a proper `OpTrait` folder. Differential Revision: https://reviews.llvm.org/D155687
-
Advenam Tacet authored
This patch is part of our efforts to support container annotations with (almost) every allocator. Annotating std::deque with default allocator is implemented in D132092. Support in ASan API exests since rG1c5ad6d2. The motivation for a research and those changes was a bug, found by Trail of Bits, in a real code where an out-of-bounds read could happen as two strings were compared via a `std::equals` function that took `iter1_begin`, `iter1_end`, `iter2_begin` iterators (with a custom comparison function). When object `iter1` was longer than `iter2`, read out-of-bounds on `iter2` could happen. Container sanitization would detect it. If you have any questions, please email: - advenam.tacet@trailofbits.com - disconnect3d@trailofbits.com Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D146815
-
Edoardo Sanguineti authored
As @ldionne pointed out to me in a newer revision, there is a //REQUIRE comment in both files edited by this patch that prevents the test to run on some platforms where it should actually run. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D155755
-
David Green authored
It appears that vscale values truncated to i1 causes mismatches in the constant types when created in getNode. https://godbolt.org/z/TaaTo86ne. Differential Revision: https://reviews.llvm.org/D155626
-
Ilya Leoshkevich authored
In order to generate relocations or to apply fixups after the layout has been computed, the targets need to know the offsets of the respective operands. There are indirect ways to figure them out in some cases, for example, on SystemZ, the first memory operand is always at offset 2, and the second one is always at offset 4. But there are no such tricks for the immediate operands on SystemZ, so one has to refer to individual instruction encodings. This information, however, is available to TableGen. Generate the getOperandBitOffset() method to access it, and use it to simplify getting memory operand offsets on SystemZ. This also paves the way for implementing symbolic immediates on this platform. For the multi-lit operands, getOperandBitOffset() returns the offset of the first lit. An alternative way to obtain offsets would be to pass them to the encoder methods, but this would require reworking all targets. Also, VarLenCodeEmitter already does this, but adopting it requires reworking the respective targets without other significant benefits. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D155329
-
Rik Huijzer authored
In https://reviews.llvm.org/D151611, a check was added to the tensor verifier to emit an error on negative tensor dimensions. This check allowed for dynamic dimensions, hence negative dimensions were still able to get through the verifier. This is a problem in situations such as #60558, where the dynamic dimension is converted to a static (and possibly negative) dimension by another pass in the compiler. This patch fixes that by doing another check during the `StaticTensorGenerate` conversion, and return a failure if the dimension is negative. As a side-note, I have to admit that I do not know why returning a failure in `StaticTensorGenerate` gives a nice "tensor dimensions must be non-negative" error. I suspect that the verifier runs again when `return failure()` is called, but I am not sure. Fixes #60558. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D155728
-
wangpc authored
We provide a way to specify arguments in the form of `name=value` so that we don't have to specify all optional arguments before the one we'd like to change. Required arguments can alse be specified in this way. Note that the argument can only be specified once regardless of the way (named or positional) to specify and positional arguments should be put before named arguments. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D152998
-
Fangrui Song authored
For a relocation, we don't differentiate the two cases: * the symbol index is 0 * the symbol index is non zero, the type is not STT_SECTION, and the name is empty. Clang generates such local symbols for RISC-V linker relaxation. So we may print ``` Offset Info Type Symbol's Value Symbol's Name + Addend 000000000000001c 0000000100000039 R_RISCV_32_PCREL 0000000000000000 0 // llvm-readobj 0x1C R_RISCV_32_PCREL - 0x0 ``` while GNU readelf prints "<null>", which is clearer. Let's match the GNU behavior. Related to https://reviews.llvm.org/D81842 ``` 000000000000001c 0000000100000039 R_RISCV_32_PCREL 0000000000000000 <null> + 0 // llvm-readobj 0x1C R_RISCV_32_PCREL <null> 0x0 ``` Reviewed By: jhenderson, kito-cheng Differential Revision: https://reviews.llvm.org/D155353 -
Fangrui Song authored
-
wangpc authored
The removed code assumed that we can define classes inside a multiclass, so the name of outer multiclass is concatenated to the qualified name. But for current TableGen grammar, we can't define classes in multiclass, so it is unnecessary. This commit is requested in D152998.
-
Corentin Jabot authored
Fixes build failure introduce by 47ccfd7a.
-
Nuno Lopes authored
Undef was being used to populate unused vector lanes. While at it, switch extractelement to use poison as the OOB value (per LangRef)
-
Craig Topper authored
Reviewed By: wangpc Differential Revision: https://reviews.llvm.org/D155787
-
Fangrui Song authored
StringMap iteration order is not guaranteed to be deterministic (https://llvm.org/docs/ProgrammersManual.html#llvm-adt-stringmap-h).
-
Fangrui Song authored
StringMap iteration order is not guaranteed to be deterministic (https://llvm.org/docs/ProgrammersManual.html#llvm-adt-stringmap-h).
-
Corentin Jabot authored
Reviewed By: #clang-language-wg, aaron.ballman Differential Revision: https://reviews.llvm.org/D154290
-
Freddy Ye authored
For more details about these instructions, please refer to the latest ISE document: https://www.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html Reviewed By: pengfei, skan Differential Revision: https://reviews.llvm.org/D155145
-
Fangrui Song authored
StringMap iteration order is not guaranteed to be deterministic (https://llvm.org/docs/ProgrammersManual.html#llvm-adt-stringmap-h). Sort by DIE offset (which looks like a pre-order traversal order).
-
Danila Malyutin authored
This can be thought as a subcase of `x & ((1 << nbits) - 1)` where x == -1 Differential Revision: https://reviews.llvm.org/D155622
-
Danila Malyutin authored
Check that vreg_width-1 mask is only removed for shifts Differential Revision: https://reviews.llvm.org/D155734
-
Timm Bäder authored
-
Timm Bäder authored
-
Timm Bäder authored
-
Craig Topper authored
We can replace several "let AsmString =".
-
Freddy Ye authored
For more details about these instructions, please refer to the latest ISE document: https://www.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html Reviewed By: pengfei, skan Differential Revision: https://reviews.llvm.org/D155148
-
Fangrui Song authored
StringMap iteration order is not guaranteed to be deterministic (https://llvm.org/docs/ProgrammersManual.html#llvm-adt-stringmap-h). Tested by `TEST_F(InMemoryFileSystemTest, DirectoryIteration)`.
-
Craig Topper authored
This gives us a common place to put the TSFlags and the Namespace. Removes TSFlags declaration duplication for D155690. Reviewed By: wangpc Differential Revision: https://reviews.llvm.org/D155744
-
Fangrui Song authored
StringMap iteration order is not guaranteed to be deterministic (https://llvm.org/docs/ProgrammersManual.html#llvm-adt-stringmap-h).
-
Fangrui Song authored
Similar to the llvm::sort call in DebugMapObject::print.
-
Fangrui Song authored
-
Yaxun (Sam) Liu authored
Currently CUDA/HIP defines their own language standards in LanguageStandards.def but they are redundant. They are the same as stdc++14. The fact that CUDA/HIP uses c++* in option -std= indicates that they have the same language standards as C++. The CUDA/HIP specific language features are conveyed through language options, not language standards features. It makes sense to let CUDA/HIP uses the same default language standard as C++. Reviewed by: Siu Chi Chan, Artem Belevich Differential Revision: https://reviews.llvm.org/D155539 Fixes: SWDEV-407685
-
Paul Kirth authored
This reverts commit c9953d98 and a forward fix in 3a45b843. D14677 causes some failure on windows bots that the forward fix did not address. Thus I'm reverting until the underlying cause can me triaged.
-
Kai Luo authored
-
Mel Chen authored
The test cases for selecting increasing integer induction variable. Reviewed By: fhahn, shiva0217 Differential Revision: https://reviews.llvm.org/D153936
-
Fangrui Song authored
Use a MapVector to stabilize the order and simplify future changes like D142862 that change the StringMap hash function.
-
Fangrui Song authored
Entries of the same DJB hash are in the hash lookup table/name table are ordered by the iteration order of `Entries` (a StringMap). Change `Entries` to a MapVector to stabilize the order and simplify future changes like D142862 that change the StringMap hash function.
-
LLVM GN Syncbot authored
-
Kelvin Li authored
Co-authored-by:
Paul Scoropan <1paulscoropan@gmail.com> Differential Revision: https://reviews.llvm.org/D155235
-
Freddy Ye authored
For more details about these instructions, please refer to the latest ISE document: https://www.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D155147
-
Lang Hames authored
Moves the llvm-jitlink tool statistics out of the Session struct and into a new LLVMJITLinkStatistics class. Also removes the `-show-sizes` option. Each statistic added will now have its own option. The two previous stats (total size of all blocks before pruning and after fixups) are now available as -pre-prune-total-block-size and -post-fixup-total-block-size. This change should make it easier to add new statistics.
-