[flang-commits] [flang] [Flang][OpenMP][MLIR] Add attach and ref map type lowering to MLIR (PR #177301)
Michael Klemm via flang-commits
flang-commits at lists.llvm.org
Thu Jan 22 06:11:12 PST 2026
================
@@ -1507,6 +1506,34 @@ bool ClauseProcessor::processMap(
mapTypeBits |= mlir::omp::ClauseMapFlags::ompx_hold;
}
+ if (refMod) {
+ switch (*refMod) {
+ case Map::RefModifier::RefPtee:
+ mapTypeBits |= mlir::omp::ClauseMapFlags::ref_ptee;
+ break;
+ case Map::RefModifier::RefPtr:
+ mapTypeBits |= mlir::omp::ClauseMapFlags::ref_ptr;
+ break;
+ case Map::RefModifier::RefPtrPtee:
+ mapTypeBits |= mlir::omp::ClauseMapFlags::ref_ptr_ptee;
----------------
mjklemm wrote:
Would it make sense to only have two bits and determine `ref_ptr_ptee` as both `ref_ptee` and `ref_ptr` are set in the flags?
https://github.com/llvm/llvm-project/pull/177301
More information about the flang-commits
mailing list