[flang-commits] [flang] [NFC][flang] Introduce FortranObjectViewOpInterface. (PR #166841)
Razvan Lupusoru via flang-commits
flang-commits at lists.llvm.org
Thu Nov 6 14:06:21 PST 2025
================
@@ -3285,6 +3324,12 @@ def fir_DeclareOp
attr-dict `:` functional-type(operands, results)
}];
+ let extraClassDeclaration = [{
+ // FortranObjectViewOpInterface methods:
+ mlir::Value getViewSource(mlir::OpResult) { return getMemref(); }
+ std::optional<std::int64_t> getViewOffset(mlir::OpResult) { return 0; }
----------------
razvanlupusoru wrote:
Is this correct for common block variables?
https://github.com/llvm/llvm-project/pull/166841
More information about the flang-commits
mailing list