- May 22, 2021
-
-
Sam Clegg authored
Prior to this change build with `-shared/-pie` and using TLS (but without -shared-memory) would hit this assert: "Currenly only a single data segment is supported in PIC mode" This is because we were not including TLS data when merging data segments. However, when we build without shared-memory (i.e. without threads) we effectively lower away TLS into a normal active data segment.. so we were ending up with two active data segments: the merged data, and the lowered TLS data. To fix this problem we can instead avoid combining data segments at all when running in shared memory mode (because in this case all segment initialization is passive). And then in non-shared memory mode we know that TLS has been lowered and therefore we can can and should combine all segments. So with this new behavior we have two different modes: 1. With shared memory / mutli-threaded: Never combine data segments since it is not necessary. (All data segments as passive already). 2. Wihout shared memory / single-threaded: Combine *all* data segments since we treat TLS as normal data. (We end up with a single active data segment). Differential Revision: https://reviews.llvm.org/D102937
-
Jon Roelofs authored
-
Yaxun (Sam) Liu authored
-
-
Martin Storsjö authored
If multiple instances of the -arm-implicit-it option is passed to the backend, it errors out. Also fix cases where there are multiple -Wa,-mimplicit-it; the existing tests indicate that the last one specified takes effect, while in practice it passed double options, which didn't work as intended. Differential Revision: https://reviews.llvm.org/D102812
-
Saleem Abdulrasool authored
This adds the {s,u,m}badaddr CSR aliases as well as the sptbr alias. These are for compatibility with binutils. Furthermore, these are used by the RISC-V Proxy Kernel and are required to enable building the Proxy Kernel with the LLVM IAS. The aliases here are deprecated. These are being introduced in order to provide a compatibility story for the existing GNU toolchain, which still supports the deprecated spelling in the assembler. However, in order to encourage the migration of existing coding, we provide warnings indicating that the aliased CSRs are deprecated and should be replaced. Differential Revision: https://reviews.llvm.org/D101919 Reviewed By: Craig Topper -
AndreyChurbanov authored
Warnings on deprecated api cannot be suppressed if the library is not initialized. With this change it is possible to set KMP_WARNINGS=false to suppress the warnings. Differential Revision: https://reviews.llvm.org/D102676
-
Axel Y. Rivera authored
[LLD][COFF] PR49068: Include the IMAGE_REL_BASED_HIGHLOW relocation base type when the machine is 64 bits and the relocation type is ADDR32 The COFF driver produces an ABSOLUTE relocation base for an ADDR32 relocation type and the system is 64 bits (machine=AMD64). The relocation information won't be added in the output and could produce an incorrect address access during run-time. This change set checks if the relocation type is IMAGE_REL_AMD64_ADDR32 and if so, adds the relocated symbol as IMAGE_REL_BASED_HIGHLOW base. Differential Revision: https://reviews.llvm.org/D96619
-
Arthur Eubanks authored
These checks already exist as asserts when creating the corresponding instruction. Anybody creating these instructions already need to take care to not break these checks. Move the checks for success/failure ordering in cmpxchg from the verifier to the LLParser and BitcodeReader plus an assert. Add some tests for cmpxchg ordering. The .bc files are created from the .ll files with an llvm-as with these checks disabled. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D102803
-
zoecarver authored
This commit alphabetizes all includes in libcxx. This is a NFC. This can also serve as a pseudo "announcement" for how we should order these headers going forward (note: double underscores go before other headers). Differential Revision: https://reviews.llvm.org/D102941
-
David Goldblatt authored
These are baseline tests for D102864
-
Aart Bik authored
This revision completes the "dimension ordering" feature of sparse tensor types that enables the programmer to define a preferred order on dimension access (other than the default left-to-right order). This enables e.g. selection of column-major over row-major storage for sparse matrices, but generalized to any rank, as in: dimOrdering = affine_map<(i,j,k,l,m,n,o,p) -> (p,o,j,k,i,l,m,n)> Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D102856
-
Vitaly Buka authored
D102899 will change it behavour.
-
Vitaly Buka authored
Missing from D102694
-
Vitaly Buka authored
-
LLVM GN Syncbot authored
-
zoecarver authored
This is the second to last one! Based on D101396. Depends on D100255. Refs D101079 and D101193. Differential Revision: https://reviews.llvm.org/D101476
-
Florian Hahn authored
The option was used during the initial bringup, but it does not add any value at this point. Remove it. Reviewed By: anemet Differential Revision: https://reviews.llvm.org/D102930
-
Philip Reames authored
-
Vitaly Buka authored
It's probably fixed by D102886. Builder to watch https://lab.llvm.org/buildbot/#/builders/clang-cmake-armv7-full Reviewed By: hctim, cryptoad Differential Revision: https://reviews.llvm.org/D102887
-
George Rokos authored
The check for the TO flag when processing firstprivates is missing. As a result, sometimes the device copy of a firstprivate never gets initialized. Currectly we try to force lambda structs to be allocated immediately by marking them as a non-firstprivate, so that PrivateArgumentManagerTy::addArg allocates memory for them immediately. However, calling addArg with IsFirstPrivate=false makes the function skip initializing the device copy. Whether an argument is firstprivate and whether we need to allocate memory immediately are not synonyms, so this patch introduces one more control variable for immediate allocation and sets it apart from initialization. Differential Revision: https://reviews.llvm.org/D102890
-
Lang Hames authored
-
Lang Hames authored
Now that gtest has been updated to 1.10 which supports GTEST_SKIP, we can use that over return; Patch by Mats Larsen. Thanks Mats! Reviewed By: lhames, ikudrin Differential Revision: https://reviews.llvm.org/D102710
-
Simon Pilgrim authored
BTVER2 has a weaker f64 multiplier that other AVX1-era targets, so we need to bump the worst case cost slightly - llvm-mca reports the new vectorization in simplebb is beneficial on btver2, bdver2 and sandybridge AVX1 targets
-
Tony Tye authored
Add link to documentation for "AMD Instinct MI100 Instruction Set Architecture" to AMDGPUUsage.rst. Reviewed By: kzhuravl, rampitec, dp Differential Revision: https://reviews.llvm.org/D102859
-
maekawatoshiki authored
This reverts commit cea7a3fe. To investigate sanitizer-x86_64-linux-fast failure.
-
Benjamin Kramer authored
-
Simon Pilgrim authored
These are always lowered as xor ops, so are always cheap
-
Marius Brehler authored
Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D102922
-
Alexander Belyaev authored
Differential Revision: https://reviews.llvm.org/D102921
-
Philip Reames authored
-
Jinsong Ji authored
Copied from X86 and test powerpc triple. Preparing for AIX stack guard tests.
-
Alexander Belyaev authored
Differential Revision: https://reviews.llvm.org/D102722
-
- May 21, 2021
-
-
Navdeep Kumar authored
Add conversion of warp synchronous matrix-multiply accumulate GPU ops Add conversion of warp synchronous matrix-multiply accumulate GPU ops to NVVM ops. The following conversions are added :- 1.) subgroup_mma_load_matrix -> wmma.m16n16k16.load.[a,b,c]..row.stride 2.) subgroup_mma_store_matrix -> wmma.m16n16k16.store.d.[f16,f32].row.stride 3.) subgroup_mma_compute -> wmma.m16n16k16.mma.row.row.[f16,f32].[f16,f32] Reviewed By: bondhugula, ftynse Differential Revision: https://reviews.llvm.org/D95331
-
Florian Hahn authored
This patch adds support for lowering function calls with the `clang.arc.attachedcall` bundle. The goal is to expand such calls to the following sequence of instructions: callq @fn movq %rax, %rdi callq _objc_retainAutoreleasedReturnValue / _objc_unsafeClaimAutoreleasedReturnValue This sequence of instructions triggers Objective-C runtime optimizations, hence we want to ensure no instructions get moved in between them. This patch achieves that by adding a new CALL_RVMARKER ISD node, which gets turned into the CALL64_RVMARKER pseudo, which eventually gets expanded into the sequence mentioned above. The ObjC runtime function to call is determined by the argument in the bundle, which is passed through as a target constant to the pseudo. @ahatanak is working on using this attribute in the front- & middle-end. Together with the front- & middle-end changes, this should address PR31925 for X86. This is the X86 version of 46bc40e5, which added similar support for AArch64. Reviewed By: ab Differential Revision: https://reviews.llvm.org/D94597 -
Jon Chesterfield authored
[libomptarget][amdgpu] Mark alloc, free weak to facilitate local experimentation There are a lot of different ways we might implement the devicertl local alloc and free functions. Via host, local buffers (stack or arena), specialising per kernel etc. It is not yet clear what the right design is. This change makes the alloc and free functions weak, so one can override them from local tests while comparing options. Not strictly necessary, as a comparable patch can be applied locally each time, but would be convenient for out of tree dev. Plan would be to drop the weak attribute at the same time as introducing a working allocator to trunk. Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D102499
-
Jim Lin authored
Check if it has no signed zeros flag (nsz) in getNegatedExpression for x86. This patch fixed miscompilation: https://alive2.llvm.org/ce/z/XxwBAJ Reviewed By: RKSimon, spatel Differential Revision: https://reviews.llvm.org/D90901
-
Jim Lin authored
Differential Revision: https://reviews.llvm.org/D102621
-
maekawatoshiki authored
This patch changes LoopUnrollAndJamPass from FunctionPass to LoopNest pass. The next patch will utilize LoopNest to effectively handle loop nests. Reviewed By: Whitney Differential Revision: https://reviews.llvm.org/D99149
-
Matt Arsenault authored
SelectionDAG forces us to have a weird ABI for 16-bit values without legal 16-bit operations, but currently GlobalISel bypasses this and sometimes ends up using the gfx8+ ABI in some contexts. Make sure we're testing the normal ABI to avoid a test change in a future patch.
-