diff options
author | Mats Petersson <mats.petersson@arm.com> | 2024-09-13 12:57:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-13 12:57:11 +0100 |
commit | 8e10a3f80e264aaa186ab3cc74fea840f453c66d (patch) | |
tree | df56f0e380a0b13204a3556e23b6af9197e61350 /llvm/unittests/CodeGen/MachineInstrTest.cpp | |
parent | 992a64aad388b4e809ac3123ea1d48fed4f35244 (diff) | |
download | llvm-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