[flang-commits] [flang] [flang][codegen] Update FIR codegen to use mlir.llvm opaque pointers (PR #69692)
Markus Böck via flang-commits
flang-commits at lists.llvm.org
Fri Oct 20 03:05:14 PDT 2023
================
@@ -2448,14 +2465,17 @@ struct XArrayCoorOpConversion
operands.slice(coor.subcomponentOffset(),
coor.getSubcomponent().size()));
args.append(indices.begin(), indices.end());
- rewriter.replaceOpWithNewOp<mlir::LLVM::GEPOp>(coor, ty, casted, args);
+ rewriter.replaceOpWithNewOp<mlir::LLVM::GEPOp>(coor, llvmPtrTy,
+ elementType, addr, args);
return mlir::success();
}
// The array was not boxed, so it must be contiguous. offset is therefore an
// element offset and the base type is kept in the GEP unless the element
// type size is itself dynamic.
- mlir::Value base;
+ mlir::Type gepObjectType;
+ llvm::SmallVector<mlir::LLVM::GEPArg> args;
+ ;
----------------
zero9178 wrote:
```suggestion
```
https://github.com/llvm/llvm-project/pull/69692
More information about the flang-commits
mailing list