[Mlir-commits] [mlir] [mlir][emitc] Support conversion of arith.divsi and arith.remsi to EmitC (PR #93450)
Marius Brehler
llvmlistbot at llvm.org
Mon May 27 05:19:03 PDT 2024
================
@@ -394,6 +394,8 @@ void mlir::populateArithToEmitCPatterns(TypeConverter &typeConverter,
ArithConstantOpConversionPattern,
ArithOpConversion<arith::AddFOp, emitc::AddOp>,
ArithOpConversion<arith::DivFOp, emitc::DivOp>,
+ ArithOpConversion<arith::DivSIOp, emitc::DivOp>,
+ ArithOpConversion<arith::RemSIOp, emitc::RemOp>,
ArithOpConversion<arith::MulFOp, emitc::MulOp>,
----------------
marbre wrote:
NIT:
```suggestion
ArithOpConversion<arith::MulFOp, emitc::MulOp>,
ArithOpConversion<arith::RemSIOp, emitc::RemOp>,
```
Even though there is no strict oder here, we could try to introduce an partial alphabetical order.
https://github.com/llvm/llvm-project/pull/93450
More information about the Mlir-commits
mailing list