[Mlir-commits] [mlir] Expand the MemRefToEmitC pass - Adding scalars (PR #148055)
Jacques Pienaar
llvmlistbot at llvm.org
Fri Jul 11 13:20:52 PDT 2025
================
@@ -132,7 +144,17 @@ struct ConvertGetGlobal final
matchAndRewrite(memref::GetGlobalOp op, OpAdaptor operands,
ConversionPatternRewriter &rewriter) const override {
- auto resultTy = getTypeConverter()->convertType(op.getType());
+ MemRefType type = op.getType();
+ Type resultTy;
+ if (type.getRank() == 0)
+ resultTy = emitc::LValueType::get(
----------------
jpienaar wrote:
Why does this need to be LValue, while one below not?
https://github.com/llvm/llvm-project/pull/148055
More information about the Mlir-commits
mailing list