- Sep 28, 2022
-
-
Sanjay Patel authored
We don't combine generic shuffles together in IR, but select shuffles are a special-case because a select shuffle of a select shuffle is just another select shuffle; codegen is expected to efficiently lower those (select shuffles are also the canonical form of a vector select with constant condition).
-
Sanjay Patel authored
-
bipmis authored
-
Nathan Sidwell authored
Although using-enum's grammar is 'using elaborated-enum-specifier', the lookup for the enum is ordinary lookup (and not the tagged-type lookup that normally occurs wth an tagged-type specifier). Thus (a) we can find typedefs and (b) do not find enum tags hidden by a non-tag name (the struct stat thing). This reimplements that part of using-enum handling, to address DR2621, where clang's behaviour does not match std intent (and other compilers). Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D134283
-
rkayaith authored
Currently the generated pass declarations have to be enabled per-pass using multiple `GEN_PASS_DECL_{PASSNAME}` defines. This adds `GEN_PASS_DECL`, which enables the declarations for all passes in the group with a single macro. This is convenient for cases where a single header is used for all passes in the group. Reviewed By: mehdi_amini, mscuttari Differential Revision: https://reviews.llvm.org/D134766 -
Jon Chesterfield authored
The association between kernel and struct is done by symbol name. This doesn't work robustly for anonymous kernels as shown by the modified test case. An alternative association between function and struct can be constructed if necessary, probably though metadata, but on the basis that we currently miscompile anonymous kernels and that they are difficult to construct from application code and difficult to call from the runtime, this patch makes it a fatal error for now. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D134741
-
Sameer Sahasrabuddhe authored
A User like the PHINode may be visited multiple times for the same pointer along different def-use edges. The uninitialized state of OffsetInfo at the first visit needs to be distinct from the Unknown value that may be assigned after processing the PHINode. Without that, a PHINode with all inputs Unknown is never followed to its uses. This results in incorrect optimization because some interfering accessess are missed. Differential Revision: https://reviews.llvm.org/D134704
-
Benjamin Kramer authored
This reverts commit 97dfa536. It can make DSE crash. Reduced test case at https://reviews.llvm.org/P8291
-
Daniel Bertalan authored
If a value for a given key is not present, `DenseMap::operator[]` default-constructs one, which is wasteful when we don't do anything with it afterwards. Fix it by calling `lookup()` instead which only returns the default value, but does not modify the map. This speeds up linking a fair bit when only a small portion of all sections are specified in the order file, like in the case of Chromium Framework: N Min Max Median Avg Stddev x 25 3.727684 3.8808699 3.753552 3.7702461 0.0397282 + 25 3.6469049 3.7523289 3.6764321 3.6841622 0.025525047 Difference at 95.0% confidence -0.0860839 +/- 0.0189924 -2.28324% +/- 0.503745% (Student's t, pooled s = 0.0333906) Differential Revision: https://reviews.llvm.org/D134811 -
Matt Arsenault authored
Surprisingly these were getting legalized to something zero initialized. This fixes an infinite loop when combining some vector types. Also fixes zero initializing some undef values. SimplifyDemandedVectorElts / SimplifyDemandedBits are not checking for the legality of the output undefs they are replacing unused operations with. This resulted in turning vectors into undefs that were later re-legalized back into zero vectors.
-
Matt Devereau authored
For gathers which load in 8 and 16 bit data then use that data as an index, the index can be extended to 32 bits instead of 64 bits Differential Revision: https://reviews.llvm.org/D130692
-
Krzysztof Drewniak authored
Instead of using find_package(HIP) to find FindHIP.cmake, which doesn't seem to be the preferred way to find HIP anymore, use find_package(hip CONFIG) to find the HIP configuration. Give preference to ${ROCM_PATH} over ${ROCM_PATH}/hip in order to handle the fact that newer ROCm versions prefer the include path to use ${ROCM_PATH}/include/hip over ${ROCM_PATH}/hip/innclude/hip (the latter throws up a bunch of deprecation warnings) Then, instead of trying to manually find the host-side headers and runtime library by hand, use the hip::host and hip::amdhip64 libraries that the config module defines. This makes the CMake config much less error-prone and brings it in line with the recommended approach to finding HIP. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D134753 -
Florian Hahn authored
This reverts commit 1c62af3e. The commit causes the test below to fail. Revert for now to get the bots back to green. Failing test: lvm/test/Transforms/LoopVectorize/AArch64/masked-op-cost.ll
-
Nikita Popov authored
GetHostTriple is used by the runtimes build, so this cmake file must be exported. Otherwise it is not possible to build runtimes against a previously built LLVM. Differential Revision: https://reviews.llvm.org/D134730
-
Florian Hahn authored
Currently over 256 non-temporal loads are broken inefficently. For example, `v17i32` gets broken into 2 128-bit loads. It is better if we can use 256-bit loads instead. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D133421
-
Jon Chesterfield authored
A kernel may have an associated struct for laying out LDS variables. This patch puts that instance, if present, at a deterministic address by allocating it at the same time as the module scope instance. This is relatively likely to be where the instance was allocated anyway (~NFC) but will allow later patches to calculate where a given field can be found, which means a function which is only reachable from a single kernel will be able to access a LDS variable with zero overhead. That will be particularly helpful for applications that instantiate a function template containing LDS variables once per kernel. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D127052
-
Archibald Elliott authored
A change to D109517 during review stated it was disabling the crypto extensions by default in armv9a, but it also ended up removing two other non-crypto features: i8mm and bf16. This error was also made in D116158. This patch re-adds those two extensions to the feature bitmaps for the affected armv9a versions in the target parser. Differential Revision: https://reviews.llvm.org/D134647
-
Archibald Elliott authored
fp16 and bf16 values can be used in GCC's inline assembly using the "t" constraint, which means "VFP floating-point registers s0-s31" - fp16 and bf16 values are stored in S registers too. This change ensures that LLVM is compatible with GCC for programs that use fp16 and the 't' constraint. Fixes #57753 Differential Revision: https://reviews.llvm.org/D134553
-
David Truby authored
This patch changes the handling of complex number intrinsics that have C libm equivalents to call into those instead of calling the external pgmath library. Currently complex numbers to integer powers are excluded as libm has no powi equivalent function. Differential Revision: https://reviews.llvm.org/D134655
-
Anubhab Ghosh authored
This class was used for testing JITLink with -noexec option and also included slab allocation support. Its functionality has been replaced with InProcessDeltaMapper and MapperJITLinkMemoryManager. Differential Revision: https://reviews.llvm.org/D134781
-
David Spickett authored
All callers have been converted to the optional version. Depends on D134540 Reviewed By: clayborg Differential Revision: https://reviews.llvm.org/D134541
-
David Spickett authored
Depends on D134539 Reviewed By: clayborg Differential Revision: https://reviews.llvm.org/D134540
-
Louis Dionne authored
We should strive to have our own tests, except when there is overwhelming value in using another standard library's existing tests. The reason is that it ensures that implementations don't all start relying on the same interpretation of the Standard. The unique_ptr tests did not add any test coverage AFAICT, and the forward_like tests were moved to the style used everywhere in the libc++ test suite. Note that I got to this because this actually broke a downstream configuration where we use -ffreestanding. The signature of main() was not consistent with the signature we (need to) use everywhere in the test suite. Differential Revision: https://reviews.llvm.org/D134767
-
liqinweng authored
Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D134413
-
Florian Hahn authored
The argument is unused and can be removed.
-
Carl Ritson authored
Make MIMG NSA minimum addresses threshold an attribute that can be set on a function or configured via command line. This enables frontend tuning which allows increased NSA usage where beneficial. Reviewed By: foad Differential Revision: https://reviews.llvm.org/D134780
-
David Spickett authored
Depends on D134538 Reviewed By: clayborg Differential Revision: https://reviews.llvm.org/D134539
-
David Spickett authored
Depends on D134537 Reviewed By: clayborg Differential Revision: https://reviews.llvm.org/D134538
-
liqinweng authored
Reviewed By: Jimerlife Differential Revision: https://reviews.llvm.org/D134520
-
David Spickett authored
Depends on D134536 Reviewed By: clayborg Differential Revision: https://reviews.llvm.org/D134537
-
Florian Hahn authored
After deleting a loop, the block and loop dispositions need to be cleared. As we don't know which SCEVs in the loop/blocks may be impacted, completely clear the cache. This should also fix some cases where deleted loops remained in the LoopDispositions cache. This fixes a verification failure surfaced by D134531. Reviewed By: mkazantsev Differential Revision: https://reviews.llvm.org/D134613
-
Hui Xie authored
Differential Revision: https://reviews.llvm.org/D131495
-
Simon Pilgrim authored
[SLP] ScalarizationOverheadBuilder - demand all elements for scalarization if the extraction index is unknown / out of bounds Workaround for a chromium bug reported on D134605 - test case will be added later
-
Kristof Beyls authored
We are already using the Co-author-by git tag, but don't have documentation in our developer policy about it. Fix that. Differential Revision: https://reviews.llvm.org/D134740
-
Alvin Wong authored
Both LLD and GNU ld write global/static variables to the COFF symbol table with `IMAGE_SYM_TYPE_NULL` and `IMAGE_SYM_DTYPE_NULL` type. Map these symbols as 'Data' type in the symtab to allow these symbols to be used in expressions and printable. Reviewed By: labath, DavidSpickett Differential Revision: https://reviews.llvm.org/D134585
-
Alvin Wong authored
Forwarder exports do not point to a real function or variable. Instead they point to a string describing which DLL and symbol to forward to. Any imports which uses them will be redirected by the loader transparently. These symbols do not have much use in LLDB, but keep them just in case someone find it useful. Also set a synthesized name with the forwarder string for informational purpose. Reviewed By: labath Differential Revision: https://reviews.llvm.org/D134518
-
Alvin Wong authored
Reviewed By: labath Differential Revision: https://reviews.llvm.org/D134517
-
Alvin Wong authored
If a symbol is the same as an export symbol, mark it as 'Additional' to prevent the duplicated symbol from being repeated in some commands (e.g. `disas -n func`). If the RVA is the same but exported with a different name, only synchronize the symbol types. Reviewed By: labath Differential Revision: https://reviews.llvm.org/D134426
-
Alvin Wong authored
- Skip dummy/invalid export symbols. - Make the export ordinal of export symbols visible when dumping the symtab. - Stop setting the 'Debug' flag and set the 'External' flag instead to better match the meaning of export symbols. - Try to guess the type (code vs data) of the symbol from section flags. Reviewed By: labath Differential Revision: https://reviews.llvm.org/D134265
-
Alvin Wong authored
This reimplements `ObjectFilePECOFF::ParseSymtab` to replace the manual data extraction with what `COFFObjectFile` already provides. Also use `SymTab::AddSymbol` instead of resizing the SymTab then assigning each elements afterwards. Previously, ParseSymTab loads symbols from both the COFF symbol table and the export table, but if there are any entries in the export table, it overwrites all the symbols already loaded from the COFF symbol table. Due to the change to use AddSymbols, this no longer happens, and so the SymTab now contains all symbols from both tables as expected. The export symbols are now ordered by ordinal, instead of by the name table order. In its current state, it is possible for symbols in the COFF symbol table to be duplicated by those in the export table. This behaviour will be modified in a separate change. Reviewed By: labath Differential Revision: https://reviews.llvm.org/D134196
-