Open jabcross opened 1 year ago
Am I doing something wrong? The function I'm trying to lower was was raised from C by cgeist, and manipulated. In this case, I'm doing constant propagation on one of the parameters.
Commit: fd4194b099ef
Input: (test.mlir)
module { func.func @addN_baked_4(%arg0: memref<1xi32>, %arg1: memref<1xi32>) { %c4_i32 = arith.constant 4 : i32 %0 = affine.load %arg0[0] : memref<1xi32> %1 = arith.addi %0, %c4_i32 : i32 affine.store %1, %arg1[0] : memref<1xi32> return } }
Command: polygeist-opt --convert-polygeist-to-llvm test.mlir
polygeist-opt --convert-polygeist-to-llvm test.mlir
Dump:
--convert-polygest-to-llvm expects the affine dialect to be already lowered.
--convert-polygest-to-llvm
Try running --lower-affine before that.
--lower-affine
Am I doing something wrong? The function I'm trying to lower was was raised from C by cgeist, and manipulated. In this case, I'm doing constant propagation on one of the parameters.
Commit: fd4194b099ef
Input: (test.mlir)
Command:
polygeist-opt --convert-polygeist-to-llvm test.mlir
Dump: