[clang] [CIR][SPIR-V] Set spir_kernel calling convention for AMDGCN-flavored HIP kernels (PR #214246)
Arseniy Obolenskiy via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 24 03:44:20 PDT 2026
================
@@ -26,7 +26,7 @@ void CIRDataLayout::reset(mlir::DataLayoutSpecInterface spec) {
if (mlir::DataLayoutEntryInterface entry =
spec.getSpecForIdentifier(addrSpKey))
if (auto val = llvm::dyn_cast<mlir::IntegerAttr>(entry.getValue()))
- programAddrSpace = val.getInt();
+ programAddrSpace = val.getUInt();
----------------
aobolensk wrote:
It is required for the CC change itself. The new test hits a case where the address space is stored as an unsigned IntegerAttr, and getInt() asserts on that.
I can potentially pre-commit this change not to interfere if needed
https://github.com/llvm/llvm-project/pull/214246
More information about the cfe-commits
mailing list