================
@@ -4324,6 +4324,28 @@ mlir::LogicalResult
CIRToLLVMCmpOpLowering::matchAndRewrite(
return cmpOp.emitError() << "unsupported type for CmpOp: " << type;
}
+mlir::LogicalResult CIRToLLVMFCmpOpLowering::matchAndRewrite(
+ cir::FCmpOp FCmpOp, OpAdaptor adaptor,
+ mlir::ConversionPatternRewriter &rewriter) const {
+ mlir::Type type = FCmpOp.getLhs().getType();
+ if (!mlir::isa<cir::FPTypeInterface>(type))
+ return FCmpOp.emitError() << "unsupported type for FCmpOp: " << type;
----------------
andykaylor wrote:
Yes, it should be possible to get here with a non-float type the verifier would
reject it.
https://github.com/llvm/llvm-project/pull/244577
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits