[flang-commits] [flang] [flang] Added fir.dummy_scope operation to preserve dummy arguments association. (PR #90642)
Slava Zakharin via flang-commits
flang-commits at lists.llvm.org
Tue Apr 30 11:46:16 PDT 2024
================
@@ -3074,6 +3074,7 @@ def fir_DeclareOp : fir_Op<"declare", [AttrSizedOperandSegments,
AnyRefOrBox:$memref,
Optional<AnyShapeOrShiftType>:$shape,
Variadic<AnyIntegerType>:$typeparams,
+ Optional<I1>:$dummy_scope,
----------------
vzakhari wrote:
I do not have a strong preference for the result type, so I picked an existing one. A dedicated type is probably more robust, e.g. if some code tries to use the dummy-scope op's result in arithmetic it will be an error. Do you think a dedicated type will be better?
https://github.com/llvm/llvm-project/pull/90642
More information about the flang-commits
mailing list