We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b872062 commit 068259bCopy full SHA for 068259b
mlir/lib/Conversion/ArithToEmitC/ArithToEmitC.cpp
@@ -84,7 +84,7 @@ class CmpFOpConversion : public OpConversionPattern<arith::CmpFOp> {
84
matchAndRewrite(arith::CmpFOp op, OpAdaptor adaptor,
85
ConversionPatternRewriter &rewriter) const override {
86
87
- if (!isa<FloatType>(adaptor.getRhs().getType())) {
+ if (!emitc::isFloatOrOpaqueType(adaptor.getRhs().getType())) {
88
return rewriter.notifyMatchFailure(op.getLoc(),
89
"cmpf currently only supported on "
90
"floats, not tensors/vectors thereof");
0 commit comments