Skip to content

Commit 59d7d4b

Browse files
authored
[MLIR][NVVM] Remove irrelevant guards (#97345)
This code does not seem to involve the NVPTX backend anywhere.
1 parent 58004e5 commit 59d7d4b

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

mlir/include/mlir/InitAllPasses.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ inline void registerAllPasses() {
9898
bufferization::registerBufferizationPipelines();
9999
sparse_tensor::registerSparseTensorPipelines();
100100
tosa::registerTosaToLinalgPipelines();
101-
#if LLVM_HAS_NVPTX_TARGET
102101
gpu::registerGPUToNVVMPipeline();
103-
#endif
104102
}
105103

106104
} // namespace mlir

mlir/lib/Dialect/GPU/Pipelines/GPUToNVVMPipeline.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838

3939
using namespace mlir;
4040

41-
#if LLVM_HAS_NVPTX_TARGET
4241
namespace {
4342

4443
//===----------------------------------------------------------------------===//
@@ -126,5 +125,3 @@ void mlir::gpu::registerGPUToNVVMPipeline() {
126125
"code.",
127126
buildLowerToNVVMPassPipeline);
128127
}
129-
130-
#endif // LLVM_HAS_NVPTX_TARGET

0 commit comments

Comments
 (0)