Skip to content

Commit 5605f17

Browse files
Lewuathefrgossen
authored andcommitted
[mlir][complex] Mark all supported operation illegal explicitly for complex to libm
We can mark all supported operations illegal explicitly to ensure no convertible ops remain. Differential Revision: https://reviews.llvm.org/D131877
1 parent 6d17254 commit 5605f17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mlir/lib/Conversion/ComplexToLibm/ComplexToLibm.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ void ConvertComplexToLibmPass::runOnOperation() {
131131
ConversionTarget target(getContext());
132132
target.addLegalDialect<func::FuncDialect>();
133133
target.addIllegalOp<complex::PowOp, complex::SqrtOp, complex::TanhOp,
134-
complex::AbsOp, complex::AngleOp>();
134+
complex::CosOp, complex::SinOp, complex::ConjOp,
135+
complex::LogOp, complex::AbsOp, complex::AngleOp>();
135136
if (failed(applyPartialConversion(module, target, std::move(patterns))))
136137
signalPassFailure();
137138
}

0 commit comments

Comments
 (0)