[Mlir-commits] [mlir] [mlir][EmitC] Add an `emitc.conditional` operator (PR #84883)
Simon Camphausen
llvmlistbot at llvm.org
Tue Mar 12 02:26:16 PDT 2024
================
@@ -54,6 +54,31 @@ class ArithOpConversion final : public OpConversionPattern<ArithOp> {
return success();
}
};
+
+class SelectOpConversion : public OpConversionPattern<arith::SelectOp> {
+public:
+ using OpConversionPattern<arith::SelectOp>::OpConversionPattern;
+
+ LogicalResult
+ matchAndRewrite(arith::SelectOp selectOp, OpAdaptor adaptor,
+ ConversionPatternRewriter &rewriter) const override {
+
+ auto dstType = getTypeConverter()->convertType(selectOp.getType());
----------------
simon-camp wrote:
```suggestion
Type dstType = getTypeConverter()->convertType(selectOp.getType());
```
https://github.com/llvm/llvm-project/pull/84883
More information about the Mlir-commits
mailing list