[flang-commits] [flang] [Flang][MIF] Adding support of intrinsics with coarray argument (PR #192944)
Dan Bonachea via flang-commits
flang-commits at lists.llvm.org
Thu Apr 23 20:46:02 PDT 2026
================
@@ -64,22 +73,35 @@ llvm::LogicalResult mif::NumImagesOp::verify() {
// ThisImageOp
//===----------------------------------------------------------------------===//
+void mif::ThisImageOp::build(mlir::OpBuilder &builder,
+ mlir::OperationState &result, mlir::Value coarray,
+ mlir::Value dim, mlir::Value team) {
+ mlir::Type resultTy = builder.getI32Type();
----------------
bonachea wrote:
For consistency this particular case should probably be 64-bit, because the result of `THIS_IMAGE (COARRAY, DIM [, TEAM])` is a cosubscript, which may meaningfully be a value that cannot be represented in 32 bits.
That being said it's very unlikely real codes will ever exercise this case, so it's not a high priority.
https://github.com/llvm/llvm-project/pull/192944
More information about the flang-commits
mailing list