mirror of https://github.com/llvm/torch-mlir
Add TorchToArith rewrite pattern for AtenGtFloatOp
parent
99115dcdc8
commit
d403e43a28
|
@ -453,11 +453,14 @@ public:
|
|||
patterns.add<
|
||||
ConvertAtenIntComparisonOp<AtenLeIntOp, arith::CmpIPredicate::sle>>(
|
||||
typeConverter, context);
|
||||
target.addIllegalOp<AtenGeFloatOp, AtenGeFloatIntOp, AtenNeFloatIntOp,
|
||||
AtenGtFloatIntOp>();
|
||||
target.addIllegalOp<AtenGeFloatOp, AtenGtFloatOp, AtenGeFloatIntOp,
|
||||
AtenNeFloatIntOp, AtenGtFloatIntOp>();
|
||||
patterns.add<
|
||||
ConvertAtenFloatComparisonOp<AtenGeFloatOp, arith::CmpFPredicate::UGE>>(
|
||||
typeConverter, context);
|
||||
patterns.add<
|
||||
ConvertAtenFloatComparisonOp<AtenGtFloatOp, arith::CmpFPredicate::UGT>>(
|
||||
typeConverter, context);
|
||||
patterns.add<ConvertAtenFloatComparisonOp<AtenGeFloatIntOp,
|
||||
arith::CmpFPredicate::UGE>>(
|
||||
typeConverter, context);
|
||||
|
|
Loading…
Reference in New Issue