[clang] [HIPSPV] Preserve device debug info requested via -g (PR #210504)
Paulius Velesko via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 21 04:22:47 PDT 2026
pvelesko wrote:
You're right. Tested it: on **rusticl** it's fine — the debug module loads and a full `-g` build succeeds. But on **Mali-G52** the ARM driver rejects the debug SPIR-V at `clCreateProgramWithIL` with `-30`. Since the HIPSPV toolchain force-disables device debug today (`adjustDebugInfoKind` clobbers `-g` to `NoDebugInfo`), `-g` works on Mali now — this PR would break that. We already have `CHIP_MALI_GPU_WORKAROUNDS` for these Mali SPIR-V issues, though, so we can just strip the non-semantic debug instructions at load time there.
https://github.com/llvm/llvm-project/pull/210504
More information about the cfe-commits
mailing list