diff --git a/mlir/include/mlir/InitAllPasses.h b/mlir/include/mlir/InitAllPasses.h index fedd7737f9ea45..1b9c1b193ace6e 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 f4573030a4579f..fb440756e0c1d5 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