- Sep 11, 2023
-
-
Sameer Sahasrabuddhe authored
The only real requirement is that entry and loop intrinsics should not be preceded by convergent operations in the same basic block. They do not need to be the first in the block. Relaxing the constraint on the entry and loop intrinsics avoids having to make changes in the construction of LLVM IR, such as getFirstInsertionPt(). It also avoids added complexity in the lowering to Machine IR, where COPY instructions may be added to the start of the basic block.
-
Guray Ozen authored
The 'TargetAttr' workflow was recently introduced to serialization for 'MLIR->LLVM->PTX'. #65857 removes previous passes (gpu::Serialization* passes) because they are duplicates. This PR removes the use of gpu::Serialization* passes in SM_90 integration tests, and enables the 'TargetAttr' workflow. It also moves the transform dialect specific test to a new folder.
-
Balazs Benics authored
By not checking if the first byte of the buffer is accessible, we missed some reports in the Juliet benchmark. (Juliet CWE-124 Buffer Underwrite: memcpy, memmove) https://discourse.llvm.org/t/patches-inspired-by-the-juliet-benchmark/73106 Depends on D159108 Differential Revision: https://reviews.llvm.org/D159109
-
Balazs Benics authored
By not checking if the first byte of the destination of strcpy and strncpy is writable, we missed some reports in the Juliet benchmark. (Juliet CWE-124 Buffer Underwrite: strcpy, strncpy) https://discourse.llvm.org/t/patches-inspired-by-the-juliet-benchmark/73106 Differential Revision: https://reviews.llvm.org/D159108
-
Sergio Afonso authored
Changes in this commit make some gfortran tests crash the compiler. It is likely trying to dereference undefined symbol pointers. This reverts commit 3787fd94.
-
Max Iyengar authored
This patch adds 8 missing intrinsics as specified in the Arm ACLE document section 2.12.1.1 : [[ https://arm-software.github.io/acle/neon_intrinsics/advsimd.html#rounding-3 | https://arm-software.github.io/acle/neon_intrinsics/advsimd.html#rounding-3]] The intrinsics implemented are: - vrnd32z_f64 - vrnd32zq_f64 - vrnd64z_f64 - vrnd64zq_f64 - vrnd32x_f64 - vrnd32xq_f64 - vrnd64x_f64 - vrnd64xq_f64 Reviewed By: dmgreen Differential Revision: https://reviews.llvm.org/D158626
-
Hristo Hristov authored
-
Matthias Springer authored
Use `getConstantIntValue` instead of matching for `arith::ConstantOp`.
-
Mikhail Goncharov authored
- fixed build for linux (clang was missing) - removed /monolithic-.. from build directory - it does not add anything and makes path longer for windows which is not great; - added env-based configuration to control cache and agent targeting; - print (s)ccache stats to file not to pullute normal log.
-
David Spickett authored
This already applies to enable and disable, delete was missing a check. This cannot be tested properly with the current completion tests, but it will be when I make them more strict in a follow up patch.
-
Simon Pilgrim authored
Revert rGa8cef6b5 "[X86] promoteExtBeforeAdd - add support for or/xor 'addlike' patterns" Investigating reports of issues with second stage clang builds
-
jeanPerier authored
Intrinsic resolution currently does not resolve constant length information for character transformational (with "sameChar") where the argument has constant length but is not a variable or a constant expression. It is not required to fold those expressions (only inquiry on constant expression or variable with constant length is required to be a constant expression). But constant length information for character is valuable for lowering, so I think this is a nice and easy to have.
-
Jeremy Morse authored
Continuing the patch series to get rid of debug intrinsics [0], instruction insertion needs to be done with iterators rather than instruction pointers, so that we can communicate information in the iterator class. This patch adds an iterator-taking insertBefore method and converts various call sites to take iterators. These are all sites where such debug-info needs to be preserved so that a stage2 clang can be built identically; it's likely that many more will need to be changed in the future. At this stage, this is just changing the spelling of a few operations, which will eventually become signifiant once the debug-info bearing iterator is used. [0] https://discourse.llvm.org/t/rfc-instruction-api-changes-needed-to-eliminate-debug-intrinsics-from-ir/68939 Differential Revision: https://reviews.llvm.org/D152537
-
Sergio Afonso authored
This patch adds support for storing OpenMP REQUIRES information in the semantics symbols for programs/subprograms and modules/submodules, and populates them during directive resolution. A pass is added to name resolution that makes sure this information is also propagated across top-level programs, functions and subprograms. Storing REQUIRES information inside of semantics symbols will also allow supporting the propagation of this information across Fortran modules. This will come as a separate patch. The `bool DirectiveAttributeVisitor::Pre(const parser::SpecificationPart &x)` method is removed since it resulted in specification parts being visited twice. This is patch 3/5 of a series splitting D149337 to simplify review. Differential Revision: https://reviews.llvm.org/D157983
-
David Sherwood authored
-
Andrzej Warzyński authored
Make sure that when calculating the expected mask for `vector.contract`, scalable sizes are correctly taken into account. Depends on: #65724
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D156506
-
Michael Halkenhäuser authored
Fixes: https://github.com/llvm/llvm-project/issues/65104 When a user assigns devices to target regions it may happen that different identifiers will map onto the same id within different plugins. This will lead to situations where callbacks will become much harder to read, as ambiguous identifiers are reported. We fix this by collecting the index-offset upon general RTL initialization. Which in turn, allows to calculate the unique, user-observable device id.
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D156400
-
Guillaume Chatelet authored
This PR adds tests for the `src/__support/CPP` folder to the bazel build system.
-
Guillaume Chatelet authored
-
Kiran Chandramohan authored
Changes are to work correctly in the presence of hlfir.declare, and hlfir.assign (instead of fir.store).
-
Simon Pilgrim authored
Fold zext(addlike(x, C)) --> add(zext(x), C_zext) if its likely to help us create LEA instructions Addresses some regressions exposed by D155472
-
Simon Pilgrim authored
[X86] lea-2.ll - add test showing failure to fold shl(zext(or(x,c1)),c2) 'addlike' into LEA instruction
-
Nathan Gauër authored
This commits adds the minimal required bits to build a logical SPIR-V compute shader using LLC. - Skip OpenCL-only capabilities & extensions for Logical SPIR-V. - Generate required metadata for entrypoints from HLSL frontend. - Fix execution mode to GLCompute in logical. The main issue is the lack of "vulkan" bit in the triple. This might need to be added as a vendor? Because as-is, SPIRV32/64 assumes OpenCL, and then, SPIRV assumes Vulkan. This is ok-ish today, but not correct. Differential Revision: https://reviews.llvm.org/D156424
-
Cullen Rhodes authored
This patch changes vector type conversion to return failure on n-D scalable vector types instead of asserting. This is an alternative approach to #65261 that aims to enable lowering of Vector ops directly to ArmSME intrinsics where possible, and seems more consistent with other type conversions. It's trivial to hit the assert at the moment and it could be interpreted as n-D scalable vector types being a bug, when they're valid types in the Vector dialect. By returning failure it will generally fail more gracefully, particularly for release builds or other builds where assertions are disabled.
-
Viktoriia Bakalova authored
-
Nathan Gauër authored
Clang implements SPIR-V with both Physical32 and Physical64 addressing models. This commit adds a new triple value for the Logical addressing model. Differential Revision: https://reviews.llvm.org/D155978
-
Carl Ritson authored
Add handling for subrange updates in LiveInterval preservation. This requires extending MachineBasicBlock::SplitCriticalEdge to also update subrange intervals. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D158144
-
Andrzej Warzyński authored
This is just a small fix that makes sure that `vector.contract` works with scalable vectors. Rather than duplicating all the roundtrip tests for vector.contract, I'm treating scalable vectors as an edge case and just adding a couple to verify that this works.
-
Matthew Mirvish authored
Some clang multilib configurations (such as the one currently used in the [beta ARM LLVM toolchain](https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm)) wind up only reporting the C++ include paths properly if they get passed the correct target. This patch ensures the `--target` (or `-target`) arguments are correctly sent to the queried driver.
-
Jingu Kang authored
If there are copy instructions between uaddlv and urshr for transfer from gpr to fpr, and vice versa, try to remove them. Differential Revision: https://reviews.llvm.org/D159265
-
Julian Schmidt authored
Support for extracting lambda expressions, e.g. extracting a lambda from a callexpr (e.g. algorithms/ranges) to a named variable. Reviewed By: nridge Differential Revision: https://reviews.llvm.org/D141757
-
Viktoriia Bakalova authored
Differential Revision: https://reviews.llvm.org/D156659
-
martinboehme authored
I'm not sure why we had this originally, but the function seems to have a pretty onerous contract anyway for a function that is externally available, so it seems better not to keep it around.
-
David Spickett authored
Added in 90db4193. Typo in the if, should have been "riscv-...".
-
Nathan Gauër authored
Testing commit access.
-
Fangrui Song authored
-
David Spickett authored
This follows the RISC-V work done in 4b40ced4. This uses AArch64's target parser instead. We just list the names, without the "+" on them, which matches RISC-V's format. ``` $ ./bin/clang -target aarch64-linux-gnu --print-supported-extensions clang version 18.0.0 (https://github.com/llvm/llvm-project.git 154da8aec20719c82235a6957aa6e461f5a5e030) Target: aarch64-unknown-linux-gnu Thread model: posix InstalledDir: <...> All available -march extensions for AArch64 aes b16b16 bf16 brbe crc crypto cssc <...> ``` Since our extensions don't have versions in the same way there's just one column with the name in. Any extension without a feature name (including the special "none") is not listed as those cannot be passed to -march, they're just for the backend. For example the MTE extension can be added with "+memtag" but MTE2 and MTE3 do not have feature names so they cannot be added to -march. This does not attempt to tackle the fact that clang allows invalid combinations of AArch64 extensions, it simply lists the possible options. It's still up to the user to ask for something sensible. Equally, this has no context of what CPU is being selected. Neither does the RISC-V option, the user has to be aware of that. I've added a target parser test, and a high level clang test that checks RISC-V and AArch64 work and that Intel, that doesn't support this, shows the correct error.
-
Brad Smith authored
62281227 was commited, but I noticed one spot was missed in the DragonFly Driver.
-