- Sep 28, 2022
-
-
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
-
Simon Pilgrim authored
-
wanglei authored
Defines LoongArch registers for getExceptionPointerRegister() and getExceptionSelectorRegister(). Differential Revision: https://reviews.llvm.org/D134709
-
River Riddle authored
Since version 0.10 we've: * Added support for viewing/editing bytecode files
-
Muhammad Omair Javaid authored
GetErrcMessages.cmake module makes use of cmake's try_run which by default builds its sources in debug mode unless configured with CMAKE_TRY_COMPILE_CONFIGURATION. Debug builds on Windows sometimes fail when appropraite DLLs are not included in path. Also on Windows on Arm machines debug builds sometimes fail to link the correct debug DLLs. To fix this I am setting CMAKE_TRY_COMPILE_CONFIGURATION to active build configuration of currently configured LLVM project. This makes sure we select same build type for try_run/try_compile cmake modules as currently configured LLVM project. Reviewed By: zero9178 Differential Revision: https://reviews.llvm.org/D133482
-
Igor Kirillov authored
Fixes #57572 Generally LICM pass is responsible for sinking out code that calculates invariant address inside loop as it only needed to be calculated once. But in rare case it does not happen we will not be vectorizing the loop. Differential Revision: https://reviews.llvm.org/D133687
-
jacquesguan authored
Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D134718
-
Cullen Rhodes authored
These instructions are flag setting so the ptest is redundant, the TableGen class wasn't setting the element size for the predicate causing the checks in AArch64InstrInfo::optimizePTestInstr to fail.
-
Cullen Rhodes authored
-
Christian Sigg authored
The 'RUN' command was missing the input file argument.
-
River Riddle authored
Normal compilation doesn't care about tracking references, and shouldn't pay the compilation time cost.
-
Chenbing Zheng authored
-