[flang-commits] [flang] [flang] Added storage specification for [hl]fir.declare. (PR #155325)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Tue Aug 26 08:08:01 PDT 2025
================
@@ -3203,6 +3205,9 @@ def fir_DeclareOp : fir_Op<"declare", [AttrSizedOperandSegments,
It must always be provided for characters and parametrized derived types
when memref is not a box value or address.
+ The storage and storage_offset operands are optional and are required
+ for FortranVariableStorageOpInterface, where they are documented.
+
----------------
tblah wrote:
It would be good to mention this for the HLFIR op too, and to explain the defaults assumed when these new attributes are not specified.
https://github.com/llvm/llvm-project/pull/155325
More information about the flang-commits
mailing list