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

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Jul 1 15:36:02 PDT 2024


Author: Mehdi Amini
Date: 2024-07-02T00:35:59+02:00
New Revision: 59d7d4bc325495b251eb5959b779344298af32f0

URL: https://github.com/llvm/llvm-project/commit/59d7d4bc325495b251eb5959b779344298af32f0
DIFF: https://github.com/llvm/llvm-project/commit/59d7d4bc325495b251eb5959b779344298af32f0.diff

LOG: [MLIR][NVVM] Remove irrelevant guards (#97345)

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

Added: 
    

Modified: 
    mlir/include/mlir/InitAllPasses.h
    mlir/lib/Dialect/GPU/Pipelines/GPUToNVVMPipeline.cpp

Removed: 
    


################################################################################
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


        


More information about the Mlir-commits mailing list