[flang] [llvm] [Flang][OpenMP] Initial defaultmap implementation (PR #135226)
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Mon May 12 07:23:10 PDT 2025
================
@@ -2231,6 +2232,146 @@ genSingleOp(lower::AbstractConverter &converter, lower::SymMap &symTable,
queue, item, clauseOps);
}
+static clause::Defaultmap::ImplicitBehavior
+getDefaultmapIfPresent(DefaultMapsTy &defaultMaps, mlir::Type varType) {
----------------
kparzysz wrote:
std::map has "at" that works for "const this". If the given key is not present in the map, it will abort. The operator [] will insert the key with a default-initialized value, so the map cannot be const for it to work.
https://github.com/llvm/llvm-project/pull/135226
More information about the llvm-commits
mailing list