From 0d5d3555ef0ffd3c41e7dc52728e03b7aae08dcf Mon Sep 17 00:00:00 2001 From: Nirvedh Meshram <96096277+nirvedhmeshram@users.noreply.github.com> Date: Wed, 11 Sep 2024 15:02:38 -0500 Subject: [PATCH] Update legalizations for LowerGpuOpsToROCDLOps (#108266) LLVM::FAbsOp and LLVM::SqrtOp are legal after https://github.com/llvm/llvm-project/pull/102971 --- mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp b/mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp index 93e8b080a4f672..29926719129dc5 100644 --- a/mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp +++ b/mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp @@ -329,10 +329,9 @@ void mlir::configureGpuToROCDLConversionLegality(ConversionTarget &target) { target.addLegalDialect<::mlir::LLVM::LLVMDialect>(); target.addLegalDialect(); target.addIllegalDialect(); - target.addIllegalOp(); + target.addIllegalOp(); // TODO: Remove once we support replacing non-root ops. target.addLegalOp();