- Sep 11, 2023
-
-
Sergio Afonso authored
Re-land commit 3787fd94 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
-
Felipe de Azevedo Piovezan authored
Querying the debug_str_offsets section requires parsing the top level DIE of the CU (as well as the section itself); the current getter, however, assumes this is done elsewhere. This patch changes the getter behavior to match what is done in other getter methods (e.g. `getCompilationDir` or `getVariableForAddress`), in other words, `extractDIEsIfNeeded` is now called prior to returning the debug_str_offsets contributions for the Unit. One way in which this bug manifested is when `dwarfdump --debug-str-offsets` is invoked: because the DIEs are never parsed, we incorrectly print an empty section (with no warnings or errors). Differential Revision: https://reviews.llvm.org/D159484
-
Ying Chen authored
Fix index typos, s.t. indexes in comments be same with riscv-v-spec v1.0 doc.
-
Giuliano Belinassi authored
Currently there is no PrintOnLeft attribute set, which results in an empty switch-case. When compiling this, MSVC issues a warning saying that the switch-case is empty. Fix this by using a macro and checking if this macro is defined or not. Links to D157394
-
Michael Halkenhäuser authored
Extend CMake variable `all_amdgpu_architectures` by `gfx941` and `gfx942`.
-
liqin.weng authored
Add basic handling for VP ops that can expand to Cast intrinsics Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D159491
-
liqin.weng authored
Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D159495
-
Balazs Benics authored
0954dc3f broke a build bot: https://lab.llvm.org/buildbot/#/builders/245/builds/13891 clang/test/Analysis/string.c Line 74: incompatible redeclaration of library function 'memcpy' Line 74: 'memcpy' is a builtin with type 'void *(void *, const void *, unsigned int)' Differential Revision: https://reviews.llvm.org/D159109
-
Matthias Springer authored
Mention that sizes of dynamic dims of tied OpResults/operands match at runtime.
-
Martin Lücke authored
Differential Revision: https://reviews.llvm.org/D153878
-
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.
-