- Jul 01, 2023
-
-
Justin Bogner authored
These tests only work if the targets in the input are available.
-
Ethan Luis McDonough authored
This patch extends the logic for lowering loop construct reductions to parallel block reductions. Reviewed By: kiranchandramohan Differential Revision: https://reviews.llvm.org/D154182
-
Valentin Clement authored
-
usama hameed authored
Without rpath information, the test fails on some Darwin platforms since the binary fails to find the shared library. rdar://110010041 Differential Revision: https://reviews.llvm.org/D154003
-
Jeffrey Sandoval authored
For OpenMP offload, Clang emits global symbols containing the string '<captured>', which contains characters that are invalid in PTX. Extend the existing pass that replaces '.' and '@' characters with '_$_' to also replace '<' and '>' characters. Reviewed By: cchen Differential Revision: https://reviews.llvm.org/D154241
-
Valentin Clement authored
Parser support reached OpenACC 3.3 specification. Bump the numbers to reflect the latest specs. Reviewed By: razvanlupusoru, awarzynski Differential Revision: https://reviews.llvm.org/D154249
-
Aiden Grossman authored
Currently the shm_unlink is never called on the auxiliary memory shared memory, so it stays around after running llvm-exegesis (including running the llvm-exegesis tests). This patch adds the auxiliary memory shared memory name to the SharedMemoryNames list so that it gets unlinked when the destructor of SubprocessMemory is called.
-
Nikita Popov authored
This reverts commit 20f0c68f. https://reviews.llvm.org/D153966#4464594 reports an optimization regression in Rust. Additionally this change has caused an unexpected 0.3% compile-time regression.
-
Andrzej Warzynski authored
This change updates the lowering of `vector.transfer_write` to SCF when scalable vectors are used. Specifically, when lowering `vector.transfer_write` to a loop of `vector.extractelement` ops, make sure that the upper bound of the generated loop is scaled by `vector.vscale`: ``` %10 = vector.vscale %11 = arith.muli %10, %c16 : index scf.for %arg2 = %c0 to %11 step %c1 ``` For reference, this is the current version (i.e. before this change): ``` scf.for %arg2 = %c0 to %c16 step %c1 ``` Note that this only valid for fixed-width vectors. Differential Revision: https://reviews.llvm.org/D154226 -
Kun Wu authored
Differential Revision: https://reviews.llvm.org/D154243
-
Dhruva Chakrabarti authored
With https://reviews.llvm.org/D137524, memory scope and ordering attributes are being used to generate the required instructions for atomic inc/dec on AMDGPU. This patch adds the memory scope attribute to the atomic::inc API and uses the device scope in reduction. Without the device scope in atomic_inc, the default system scope leads to unnecessary L2 write-backs/invalidates. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D154172
-
Matt Arsenault authored
Use pragma omp declare target to reduce the IR noise around the call we're actually trying to test.
-
Matt Arsenault authored
The * was in the wrong place so this was missed by the script.
-
Matt Arsenault authored
This will allow libraries to drop some of the special casing based on wave size.
-
Matt Arsenault authored
-
Valery N Dmitriev authored
The patch fixes corner case when no of scalar instructions required scheduling for vectorized node. Differential Revision: https://reviews.llvm.org/D154175
-
Thomas Lively authored
The codegen routine introduced in 18077e9f did not account for vectors with more than 16 lanes. Remove the incorrect assertion and bail out of the optimization when encountering this case. Add test cases that previously triggered the assertion. Unfortunately, these test cases now have terrible codegen, but that is at least better than crashing. Fixes #63500. Differential Revision: https://reviews.llvm.org/D154124
-
Jean Perier authored
HLFIR lowering was currently hitting errors like "not yet implemented: intrinsic: z0$iso_c_binding$c_associated_c_ptr". These error were caused by HLFIR lowering using the name with the full context instead of the ultimate one. I do not want to change proc.GetName() because I think it may be best if it retains the full context for its usages in semantics, so I fixed the helper to get the name in lowering to HLFIR. Differential Revision: https://reviews.llvm.org/D154230
-
Jean Perier authored
Currently, when a (legacy) DEC structure contained other DEC structure declarations, the related component names were not added to the containing DerivedTypeDetails component_names. This lead to bugs in later phase when visiting the components (like in when lowering the type to FIR/MLIR). When an EntityDecl is visited and the scope is a DEC structure, add the entity to the component names of this DEC structure. Differential Revision: https://reviews.llvm.org/D154216
-
Valentin Clement authored
Lowering of the default clause was missing on the acc.data operation. This patch lowers the default clause to its corresponding attribute. Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D154162
-
Valentin Clement authored
Lower async and wait clauses to the correponding attributes and operands on the acc.data operation. Depends on D154131 Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D154155
-
Simon Pilgrim authored
Reduced duplicate checks where we can
-
Jin Xin Ng authored
__sanitizer_get_allocated_begin and __sanitizer_get_allocated_size_fast were introduced recently in D147005 and D151360, but not added here, leading to linker errors. Differential Revision: https://reviews.llvm.org/D153680
-
Valentin Clement authored
Lower default clause to the correct attribute for compute operation. Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D154165
-
Valentin Clement authored
OpenACC 3.2 allowed the wait clause to the data construct. This patch adds a unit attribute and a variadic operand to the data operation to model the wait clause in a similar way it was added to other data operation. The attribute models the presence of the clause without any argument. When arguments are provided they are placed in the wait operand. Depends on D154111 Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D154131
-
Valentin Clement authored
OpenACC 3.2 allowed the async clause to the data construct. This patch adds a unit attribute and an optional operand to the data operation to model the data clause in a similar way it was added to other data operation. The attribute models the presence of the clause without any argument. When an argument is provided it is placed in the async operand. Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D154111
-
LLVM GN Syncbot authored
-
Hamish Knight authored
Fix a couple of issues with the handling of the current working directory in ASTUnit: - Use `createPhysicalFileSystem` instead of `getRealFileSystem` to avoid affecting the process' current working directory, and set it at the top of `ASTUnit::LoadFromCommandLine` such that the driver used for argument parsing and the ASTUnit share the same VFS. This ensures that '-working-directory' correctly sets the VFS working directory in addition to the FileManager working directory. - Ensure we preserve the FileSystemOptions set on the FileManager when re-creating it (as `ASTUnit::Reparse` will clear the currently set FileManager). rdar://110697657 Reviewed By: bnbarham, benlangmuir Differential Revision: https://reviews.llvm.org/D154134
-
Yaxun (Sam) Liu authored
currently clang passes -mllvm options to the device lld linker plugin when compiling HIP. This is against default clang behavior which is only passing -mllvm options to linker plugin specified through -Wl options. This patch lets clang only pass -Xoffload-linker -mllvm= options to device lld linker plugin. Fixes: https://github.com/llvm/llvm-project/issues/63604 Reviewed by: Joseph Huber, Matt Arsenault Differential Revision: https://reviews.llvm.org/D154145
-
Matt Arsenault authored
It was shockingly difficult to get identical checks out of the 3 languages. The visibility, dso_local and fp-contract settings seem to differ unless I force every test function to static. update_cc_test_checks also isn't smart enough when the attribute groups slightly differ.
-
Matt Arsenault authored
This is the same as !range except for one edge case.
-
Matt Arsenault authored
This only worked if the same values were the min or max. We also seem to be missing proper assembler tests for this.
-
Matt Arsenault authored
Apparently the maximum alignment no longer fits in 32-bits now, which overflows a 32-bit offset and would fail on the isPowerOf2 assert.
-
Joseph Huber authored
This patch makes sure that we always build the RPC server. The proposed used for this is to begin integrating this server implementation into `libomptarget`. That requires that we build this server ahead of time when using a `LLVM_ENABLE_PROJECTS` build. Make a few tweaks to ensure that the GCC compiler which may be used for this build doesn't complain. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D154105
-
Joseph Huber authored
This patch adds the other two methods to the server so the external users can use the interface through the obfuscated interface. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D154224
-
Amir Ayupov authored
This reverts commit c15e9b68. The issue appears unrelated as the crash happened in the BOLTed binary, not instrumented binary.
-
Fangrui Song authored
Fix https://github.com/llvm/llvm-project/issues/63579 ``` % cat a.c void foo() {} % clang --target=arm-none-eabi -mthumb -mno-unaligned-access -fsanitize=kcfi a.c -S -o - | grep p2align .p2align 1 % clang --target=armv6m-none-eabi -fsanitize=function a.c -S -o - | grep p2align .p2align 1 ``` Ensure that -fsanitize={function,kcfi} instrumented functions are aligned by at least 4, so that loading the type hash before the function label will not cause a misaligned access. This is especially important for -mno-unaligned-access configurations that don't set `setMinFunctionAlignment` to 4 or greater. With this patch, the generated assembly for the examples above will contain `.p2align 2` before the type hash. If `__attribute__((aligned(N)))` or `-falign-functions=N` is specified, the larger alignment will be used. Reviewed By: simon_tatham, samitolvanen Differential Revision: https://reviews.llvm.org/D154125
-
Yuanfang Chen authored
missed this after rebase
-
- Jun 30, 2023
-
-
Artem Belevich authored
We've ran into an issue where the pass breaks a handful of our internal tests and need a way to temporarily disable the pass while we're investigating. Differential Revision: https://reviews.llvm.org/D154106
-
Ivan Kosarev authored
The removed logic was added in <https://reviews.llvm.org/rG0c93c9ecee0624f8469f5a971a09fbc9e9cc1061>, but now doesn't seem to be needed. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D154220
-