diff options
author | jyu2-git <jennifer.yu@intel.com> | 2024-05-15 08:20:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-15 08:20:25 -0700 |
commit | 8e00703be9ceb41d9b80c2bc8f024a9610b9aaa1 (patch) | |
tree | e5ae697bc35c5c4e3c6add67595203b6b06e49d1 /llvm/lib/Bitcode | |
parent | dcf3102be8458fe7588f9d11315beddfca4323b0 (diff) | |
download | llvm-8e00703be9ceb41d9b80c2bc8f024a9610b9aaa1.zip llvm-8e00703be9ceb41d9b80c2bc8f024a9610b9aaa1.tar.gz llvm-8e00703be9ceb41d9b80c2bc8f024a9610b9aaa1.tar.bz2 |
[Clang][OpenMP] Fix runtime problem when explicit map both pointer and pointee (#92210)
ponter int *p for following map, test currently crash.
map(p, p[:100]) or map(p, p[1])
Currly IR looks like
// &p, &p, sizeof(int), TARGET_PARAM | TO | FROM
// &p, p[0], 100sizeof(float) TO | FROM
Worrking IR is
// map(p, p[0:100]) to map(p[0:100])
// &p, &p[0], 100*sizeof(float), TARGET_PARAM | TO | FROM | PTR_AND_OBJ
The change is add new argument AreBothBasePtrAndPteeMapped in
generateInfoForComponentList
Use that to skip map for map(p), when processing map(p[:100]) generate
map with right flag.
Diffstat (limited to 'llvm/lib/Bitcode')
0 files changed, 0 insertions, 0 deletions