================
@@ -1008,6 +1008,29 @@ struct ConvertOpConversion : public
fir::FIROpConversion<fir::ConvertOp> {
rewriter.replaceOpWithNewOp<mlir::LLVM::BitcastOp>(convert, toTy, op0);
return mlir::success();
}
+ // Pointer to MemRef conversion.
+ if (mlir::isa<mlir::MemRefType>(toFirTy)) {
----------------
clementval wrote:
This is the FIR CodeGen pass. Shouldn't your change go into a separate CodeGen
pass that deal with the operations you are lowering to?
https://github.com/llvm/llvm-project/pull/168703
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits