[Mlir-commits] [mlir] [MLIR] Testing arith-to-emitc conversions using opaque types (PR #137936)
Simon Camphausen
llvmlistbot at llvm.org
Fri May 2 06:46:32 PDT 2025
================
@@ -572,21 +588,33 @@ class ShiftOpConversion : public OpConversionPattern<ArithOp> {
op.getLoc(), rhsType, "sizeof", ArrayRef<Value>{eight});
width = rewriter.create<emitc::MulOp>(op.getLoc(), rhsType, eight,
sizeOfCall.getResult(0));
- } else {
+ } else if (!retIsOpaque) {
----------------
simon-camp wrote:
You could invert the condition and swap the branches.
https://github.com/llvm/llvm-project/pull/137936
More information about the Mlir-commits
mailing list