[flang-commits] [PATCH] D138121: [flang] Add hlfir.designate definition

Slava Zakharin via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Nov 17 08:37:43 PST 2022


vzakhari added inline comments.


================
Comment at: flang/include/flang/Optimizer/HLFIR/HLFIROps.td:202
+      "llvm::StringRef":$component, "mlir::Value":$component_shape,
+      "llvm::ArrayRef<std::variant<mlir::Value, std::tuple<mlir::Value, mlir::Value, mlir::Value>>>":$subscripts,
+      CArg<"mlir::ValueRange", "{}">:$substring,
----------------
jeanPerier wrote:
> vzakhari wrote:
> > Just curious if it is possible to use `llvm::ArrayRef<Subscript>` here.
> That would have been nice, but the "extraClassDeclaration" definitions are emitted after the builder declarations (I guess this could be changed by modifying MLIR tablegen processor, but I think it is not worth it just for this).
I see.  Thank you for checking!


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138121/new/

https://reviews.llvm.org/D138121



More information about the flang-commits mailing list