set(LLVM_TARGET_DEFINITIONS GPUToNVVM.td)
mlir_tablegen(GPUToNVVM.cpp.inc -gen-rewriters)
add_public_tablegen_target(MLIRGPUToNVVMIncGen)

add_llvm_library(MLIRGPUtoNVVMTransforms
  LowerGpuOpsToNVVMOps.cpp
  )

add_dependencies(GPUToNVVMTransforms
  MLIRGPUToNVVMIncGen)

target_link_libraries(MLIRGPUtoNVVMTransforms
  LLVMSupport
  MLIRGPU
  MLIRLLVMIR
  MLIRNVVMIR
  MLIRPass
  )

set(LLVM_TARGET_DEFINITIONS GPUToNVVM.td)
mlir_tablegen(GPUToNVVM.cpp.inc -gen-rewriters)
add_public_tablegen_target(MLIRGPUToNVVMIncGen)

add_llvm_library(MLIRGPUtoNVVMTransforms
  LowerGpuOpsToNVVMOps.cpp
  )

add_dependencies(MLIRGPUtoNVVMTransforms
  MLIRGPUToNVVMIncGen)

target_link_libraries(MLIRGPUtoNVVMTransforms
  LLVMSupport
  MLIRGPU
  MLIRLLVMIR
  MLIRNVVMIR
  MLIRPass
  )

Fix OSS target name GPUtoNVVMTransforms -> MLIRGPUtoNVVMTransforms
Fix OSS target name GPUtoNVVMTransforms -> MLIRGPUtoNVVMTransforms

This unbreaks the `cmake -G Ninja ../llvm -DLLVM_BUILD_EXAMPLES=ON -DLLVM_TARGETS_TO_BUILD="host"`
 in my local OSS build

PiperOrigin-RevId: 275452330
