Skip to content

Commit

Permalink
[MLIR][NVVM] Remove irrelevant guards (#97345)
Browse files Browse the repository at this point in the history
This code does not seem to involve the NVPTX backend anywhere.
  • Loading branch information
joker-eph authored Jul 1, 2024
1 parent 58004e5 commit 59d7d4b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions mlir/include/mlir/InitAllPasses.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,7 @@ inline void registerAllPasses() {
bufferization::registerBufferizationPipelines();
sparse_tensor::registerSparseTensorPipelines();
tosa::registerTosaToLinalgPipelines();
#if LLVM_HAS_NVPTX_TARGET
gpu::registerGPUToNVVMPipeline();
#endif
}

} // namespace mlir
Expand Down
3 changes: 0 additions & 3 deletions mlir/lib/Dialect/GPU/Pipelines/GPUToNVVMPipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@

using namespace mlir;

#if LLVM_HAS_NVPTX_TARGET
namespace {

//===----------------------------------------------------------------------===//
Expand Down Expand Up @@ -126,5 +125,3 @@ void mlir::gpu::registerGPUToNVVMPipeline() {
"code.",
buildLowerToNVVMPassPipeline);
}

#endif // LLVM_HAS_NVPTX_TARGET

0 comments on commit 59d7d4b

Please sign in to comment.