- Jun 23, 2023
-
-
Sindhu Chittireddy authored
Replace getAs with castAs and add assert if needed. Differential revision: https://reviews.llvm.org/D153236
-
Igor Kirillov authored
Adds the capability to recognize SelectInst that appear in the IR. These instructions are generated during scalable vectorization for reduction and when the code contains conditions inside the loop body or when "-prefer-predicate-over-epilogue=predicate-dont-vectorize" is set. Differential Revision: https://reviews.llvm.org/D152558
-
Jun Zhang authored
Signed-off-by:
Jun Zhang <jun@junz.org> Differential Revision: https://reviews.llvm.org/D153572
-
Jon Chesterfield authored
This makes the interface less error prone. The acquire was previously forgotten. Release is currently missing if recv() is the last operation made before close. Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D153571
-
Craig Topper authored
The GPRF64 has the same spill size as GPR and is only used for RV64. There's no real reason to have it as a separate class other than for type inference for isel patterns in tablegen. This patch adds f64 to the GPR register class when XLen=64. I use f32 when XLen=32 even though we don't make use of it just to avoid the oddity. isel patterns have been updated to fix the lack of type infererence. I might do similar for GPRF16 and GPRF32 or I might change them to use an optimized spill size instead of always using XLen. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D153110
-
Yuanfang Chen authored
For https://bugs.chromium.org/p/llvm/issues/detail?id=46 Differential Revision: https://reviews.llvm.org/D153473
-
Craig Topper authored
According to https://wiki.riscv.org/display/HOME/Recently+Ratified+Extensions these were ratified in April 2023. Reviewed By: VincentWu Differential Revision: https://reviews.llvm.org/D153161
-
Christian Ulmann authored
This commit ensures that an empty list of result attributes is not imported as an empty `ArrayAttr`. Instead, the attribute is just not added to the `LLVMFuncOp`. Reviewed By: gysit Differential Revision: https://reviews.llvm.org/D153553
-
- Jun 22, 2023
-
-
Arthur Eubanks authored
Required for phase ordering changes to not regress Rust code with D145265. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D153391
-
Arthur Eubanks authored
Helps with debugging issues caught by the verifier. Plumbed through both normal clang compile and ThinLTO. Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D153468
-
Paul Kirth authored
This is a similar change to one proposed for GCC: https://inbox.sourceware.org/gcc-patches/20230414170942.1695672-1-patrick@rivosinc.com/ The changes in this patch are based on the proposal by Hans Boehm to more closely match the intended semantics for sequentially consistent stores and to allow some platforms to avoid an ABI break when switching to more performant atomic instructions. Platforms that have already compiled code using the existing mappings will also have more time to gradually replace that code in preparation of the switch. Further details can be found in the psABI proposal: https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/378. This patch implements a mapping that is stronger than the one outlined in table A.6 of the RISC-V unprivileged spec to be future compatible with table A.7 of the same document. The related discussion can be found at https://lists.riscv.org/g/tech-unprivileged/topic/risc_v_memory_model_topics/92916241 The major change to RISC-V code generation is that we will now emit a trailing fence for sequentially consistent stores. The new code sequence should have the following form: ``` fence rw,w; s{b|h|w|d}; fence rw,rw; ``` Other changes and optimizations like using amoswap will be handled separately. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D149486
-
Ties Stuij authored
This patch adds the LLVM-side plumbing for the following relocations: - R_ARM_THM_ALU_ABS_G0_NC - R_ARM_THM_ALU_ABS_G1_NC - R_ARM_THM_ALU_ABS_G2_NC - R_ARM_THM_ALU_ABS_G3 (see section 5.6.1.5, Static Thumb16 relocations, of the AArch32 ELF Arm ABI: https://github.com/ARM-software/abi-aa/blob/844a79fd4c77252a11342709e3b27b2c9f590cf1/aaelf32/aaelf32.rst#5615static-thumb16-relocations) Which can respectivly be generated by prefixing assembly symbols with: - :lower0_7: - :lower8_15: - :upper0_7: - :upper8_15: LLD support for these relocations will be added in a follow-up patch Reviewed By: john.brawn, MaskRay Differential Revision: https://reviews.llvm.org/D149443
-
David Truby authored
This flag enables Fortran 2003 polymorphism. It is marked experimental and not included in --help. Reviewed By: tblah, awarzynski Differential Revision: https://reviews.llvm.org/D153281
-
Simi Pallipurath authored
This reverts commit d8851384. Reason: Applied the fix for the Asan buildbot failures.
-
Nikita Popov authored
When eliding an argument copy, we need to update the chain to ensure the argument reads are performed before later writes. However, the code doing this only handled this for the first part of the argument. If the argument had multiple parts, the chains of the later parts were dropped. Make sure we preserve all chains. Fixes https://github.com/llvm/llvm-project/issues/63430.
-
Nikita Popov authored
Doesn't really matter for the larger purpose of the test, but avoid the use of undef indices and instead use the loop induction variable as index, which is what was likely intended here.
-
Akash Banerjee authored
Add lowering support for the use_device_ptr and use_Device_addr clauses for the Target Data directive. Depends on D152822 Differential Revision: https://reviews.llvm.org/D152824
-
Akash Banerjee authored
Minor reordering of clauses in the assembly format for Target Data op to make it closer to the OpenMP standard. Differential Revision: https://reviews.llvm.org/D152822
-
Peter Klausler authored
An unconditional EraseSymbol() call was deleting a generic interface symbol when the generic had a module procedure of the same name as a specific procedure, and the module procedure's definition appeared in the same module. Also clean up some applications of the MODULE attribute to symbols created along the way. Differential Revision: https://reviews.llvm.org/D153478
-
Nikita Popov authored
assume(false) is immediate UB, so fold it to (non-terminator) unreachable.
-
Florian Hahn authored
Make sure the test keeps testing for the original issue after D153202.
-
Peter Klausler authored
Fortran requires that a USE with renaming prevent the USE'd symbol from also being associated into a scope without renaming. The implementation in name resolution gets confused in the case of a USE with renaming using the same name ("x => x"). Clean things up. Fixes LLVM bug https://github.com/llvm/llvm-project/issues/63397. Differential Revision: https://reviews.llvm.org/D153452 -
Nikita Popov authored
Treat non-terminator unreachable the same as unreachable, and remove guaranteed-to-transfer instructions before it.
-
Nikita Popov authored
-
Nikita Popov authored
-
Peter Klausler authored
Expression folding currently unconditionally rewrites "1*j" to "j", which is wrong when "j" is a variable, as it transforms an expression into a variable and can lead to incorrect associations in contexts like an actual argument or an ASSOCIATE selector. Transform "1*j" to a parenthesized "(j)" when "j" is a variable. Fixes LLVM bug https://github.com/llvm/llvm-project/issues/63259. Differential Revision: https://reviews.llvm.org/D153457
-
Peter Klausler authored
When a LEN type parameter of one PDT is being used as the value of a LEN type parameter in another PDT, expression rewriting can loop infinitely due to an incorrect assumption that the same PDT's parameters are being referenced. Fixes LLVM bug https://github.com/llvm/llvm-project/issues/63198 Differential Revision: https://reviews.llvm.org/D153465
-
Nikita Popov authored
Instruction after a non-terminator unreachable are ... unreachable, so remove them. Reuse the same logic we use for removing instructions from dead blocks.
-
Nikita Popov authored
-
Nikita Popov authored
Even if the value happens to be undef, we should preserve these so they get turned into an unreachable terminator later.
-
Peter Klausler authored
When a specific MIN/MAX intrinsic function (e.g. MAX1) reference has an actual argument error, ensure that a later attempt to fold the call into a constant doesn't crash due to a missing argument. Fixes https://github.com/llvm/llvm-project/issues/63140 Differential Revision: https://reviews.llvm.org/D153470
-
Nikita Popov authored
-
Peter Klausler authored
The current code has redundancy with the infrastructure for declaration checking that can be replaced by better usage of the parse tree walking framework. This also fixes LLVM flang bug #58971. Differential Revision: https://reviews.llvm.org/D153385
-
Peter Klausler authored
-
Paul Robinson authored
Differential Revision: https://reviews.llvm.org/D153462
-
Haojian Wu authored
cleanups
-
Mitch Phillips authored
This reverts commit 9246df70. Reason: This patch broke the UBSan buildbots. See more information in the original phabricator review: https://reviews.llvm.org/D139092
-
Jay Foad authored
-
David Green authored
I believe that for fp reductions we can use the imported tablegen patterns for selection, as opposed to going via selectReduction. Integer reductions are more difficult, as the return types in selection DAG will be promoted to i32. Differential Revision: https://reviews.llvm.org/D153244
-
Pravin Jagtap authored
Atomic optimizer is turned on by default through D152649. This patch removes the usage of old command line option amdgpu-atomic-optimizations and transfer the responsibility to `amdgpu-atomic-optimizer-strategy`. We can safely remove old option when LLPC remove its all usage. Reviewed By: foad, arsenm, #amdgpu, cdevadas Differential Revision: https://reviews.llvm.org/D153007
-