aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/CodeGen/MachineInstrTest.cpp
diff options
context:
space:
mode:
authorMats Petersson <mats.petersson@arm.com>2024-09-13 12:57:11 +0100
committerGitHub <noreply@github.com>2024-09-13 12:57:11 +0100
commit8e10a3f80e264aaa186ab3cc74fea840f453c66d (patch)
treedf56f0e380a0b13204a3556e23b6af9197e61350 /llvm/unittests/CodeGen/MachineInstrTest.cpp
parent992a64aad388b4e809ac3123ea1d48fed4f35244 (diff)
downloadllvm-8e10a3f80e264aaa186ab3cc74fea840f453c66d.zip
llvm-8e10a3f80e264aaa186ab3cc74fea840f453c66d.tar.gz
llvm-8e10a3f80e264aaa186ab3cc74fea840f453c66d.tar.bz2
[flang][OpenMP] don't privatise loop index marked shared (#108176)
Mark the symbol with OmpShared, and then check that later in lowering to avoid making a local loop index. OpenMP 5.2 says: "Loop iteration variables of loops that are not associated with any OpenMP directive maybe listed in data-sharing attribute clauses on the surrounding teams, parallel or taskgenerating construct, and on enclosed constructs, subject to other restrictions." Tests updated to match the extra OmpShared attribute. Add regression test for lowering to hlfir. Closes #102961 --------- Co-authored-by: Tom Eccles <tom.eccles@arm.com>
Diffstat (limited to 'llvm/unittests/CodeGen/MachineInstrTest.cpp')
0 files changed, 0 insertions, 0 deletions