diff --git a/mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp b/mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp --- a/mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp +++ b/mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp @@ -72,7 +72,7 @@ target.addIllegalDialect(); target.addIllegalOp(); + LLVM::Log2Op, LLVM::SinOp, LLVM::SqrtOp>(); target.addIllegalOp(); target.addLegalDialect(); // TODO: Remove once we support replacing non-root ops. @@ -115,6 +115,8 @@ "__ocml_log2_f64"); patterns.insert>(converter, "__ocml_sin_f32", "__ocml_sin_f64"); + patterns.insert>(converter, "__ocml_sqrt_f32", + "__ocml_sqrt_f64"); patterns.insert>(converter, "__ocml_tanh_f32", "__ocml_tanh_f64"); }