[Mlir-commits] [flang] [mlir] [Flang][OpenACC] add loop annotations to acc.loop (PR #216769)
Scott Manley
llvmlistbot at llvm.org
Tue Aug 18 05:32:09 PDT 2026
================
@@ -70,6 +70,8 @@ static mlir::acc::LoopOp createACCLoopFromOriginal(
mlir::ArrayAttr{}, origLoop.getCacheOperands(),
origLoop.getPrivateOperands(), origLoop.getFirstprivateOperands(),
origLoop.getReductionOperands(), combinedAttr);
+ // Preserve discardable attributes such as loopAnnotation.
+ newLoop->setDiscardableAttrs(origLoop->getDiscardableAttrDictionary());
----------------
rscottmanley wrote:
Ive decided to simply not propagate here for now, I didn't intend to make OpenACC Dialect related changes in this PR
https://github.com/llvm/llvm-project/pull/216769
More information about the Mlir-commits
mailing list