[Mlir-commits] [mlir] [MLIR][NVVM] Remove irrelevant guards (PR #97345)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Jul 1 13:44:24 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Mehdi Amini (joker-eph)

<details>
<summary>Changes</summary>

This code does not seem to involve the NVPTX backend anywhere.

---
Full diff: https://github.com/llvm/llvm-project/pull/97345.diff


2 Files Affected:

- (modified) mlir/include/mlir/InitAllPasses.h (-2) 
- (modified) mlir/lib/Dialect/GPU/Pipelines/GPUToNVVMPipeline.cpp (-3) 


``````````diff
diff --git a/mlir/include/mlir/InitAllPasses.h b/mlir/include/mlir/InitAllPasses.h
index fedd7737f9ea4..1b9c1b193ace6 100644
--- a/mlir/include/mlir/InitAllPasses.h
+++ b/mlir/include/mlir/InitAllPasses.h
@@ -98,9 +98,7 @@ inline void registerAllPasses() {
   bufferization::registerBufferizationPipelines();
   sparse_tensor::registerSparseTensorPipelines();
   tosa::registerTosaToLinalgPipelines();
-#if LLVM_HAS_NVPTX_TARGET
   gpu::registerGPUToNVVMPipeline();
-#endif
 }
 
 } // namespace mlir
diff --git a/mlir/lib/Dialect/GPU/Pipelines/GPUToNVVMPipeline.cpp b/mlir/lib/Dialect/GPU/Pipelines/GPUToNVVMPipeline.cpp
index f4573030a4579..fb440756e0c1d 100644
--- a/mlir/lib/Dialect/GPU/Pipelines/GPUToNVVMPipeline.cpp
+++ b/mlir/lib/Dialect/GPU/Pipelines/GPUToNVVMPipeline.cpp
@@ -38,7 +38,6 @@
 
 using namespace mlir;
 
-#if LLVM_HAS_NVPTX_TARGET
 namespace {
 
 //===----------------------------------------------------------------------===//
@@ -126,5 +125,3 @@ void mlir::gpu::registerGPUToNVVMPipeline() {
       "code.",
       buildLowerToNVVMPassPipeline);
 }
-
-#endif // LLVM_HAS_NVPTX_TARGET

``````````

</details>


https://github.com/llvm/llvm-project/pull/97345


More information about the Mlir-commits mailing list