[Mlir-commits] [mlir] Change AMDGPU target initialization condition (PR #182367)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sat Feb 21 00:27:44 PST 2026


xys-syx wrote:

> Please update the PR description with more motivation for this change

The old 

`MLIR_ENABLE_ROCM_CONVERSIONS`

 variable was hardcoded to 0 in the Bazel overlay, so AMDGPU/ROCm support was not automatically enabled in Bazel builds when LLVM build with AMDGPU Target. NVPTX already uses LLVM_HAS_NVPTX_TARGET from llvm/Config/Targets.h which works properly in Bazel, so this PR does the same for AMDGPU.

https://github.com/llvm/llvm-project/pull/182367


More information about the Mlir-commits mailing list