[Mlir-commits] [flang] [mlir] [mlir][acc] Adds attr to acc.present to identify default clause origin (PR #169114)
Razvan Lupusoru
llvmlistbot at llvm.org
Fri Nov 21 14:40:22 PST 2025
================
@@ -570,6 +570,8 @@ Operation *ACCImplicitData::generateDataClauseOpForCandidate(
newDataOp = acc::PresentOp::create(builder, loc, var,
/*structured=*/true, /*implicit=*/true,
accSupport.getVariableName(var));
+ newDataOp->setAttr(acc::getFromDefaultClauseAttrName(),
+ builder.getBoolAttr(true));
----------------
razvanlupusoru wrote:
A `UnitAttr` should be better so that having the attribute means it is from default(present) and not having it means it is not.
https://github.com/llvm/llvm-project/pull/169114
More information about the Mlir-commits
mailing list