Skip to content

[Comgr] Fix SPIR-V triple typo in setIsaName#2712

Merged
lamb-j merged 1 commit into
amd-stagingfrom
comgr/fix-spirv-triple-typo
May 29, 2026
Merged

[Comgr] Fix SPIR-V triple typo in setIsaName#2712
lamb-j merged 1 commit into
amd-stagingfrom
comgr/fix-spirv-triple-typo

Conversation

@lamb-j
Copy link
Copy Markdown
Collaborator

@lamb-j lamb-j commented May 28, 2026

The short-circuit in amd_comgr_action_info_set_isa_name checked for spir64-... but the canonical HIP SPIR-V triple is spirv64-... (LLVM Triple::spirv64) — matching parseTargetIdentifier (SWDEV-533122) and the strings CLR passes in. Introduced as a typo in 967115f.

Dead code on real inputs: nothing in CLR or the LLVM amd subtree passes spir64-amd-amdhsa-...amdgcnspirv. Fix aligns the two Comgr call sites with clang and CLR.

Discovered while reviewing #2710.

The short-circuit in amd_comgr_action_info_set_isa_name checked for
"spir64-..." but the canonical HIP SPIR-V triple is "spirv64-..."
(LLVM Triple::spirv64), matching parseTargetIdentifier (SWDEV-533122)
and the strings CLR passes in. Introduced as a typo in 967115f.

Also fix misplaced space in "StringRef(IsaName )==".
@lamb-j lamb-j requested a review from chinmaydd as a code owner May 28, 2026 22:56
@lamb-j lamb-j requested a review from theSK2005 May 28, 2026 22:58
@chinmaydd chinmaydd added the comgr Related to Code Object Manager label May 29, 2026
@lamb-j
Copy link
Copy Markdown
Collaborator Author

lamb-j commented May 29, 2026

!PSDB

@lamb-j lamb-j enabled auto-merge (squash) May 29, 2026 06:40
@lamb-j lamb-j merged commit 3a7dd6e into amd-staging May 29, 2026
118 of 120 checks passed
@lamb-j lamb-j deleted the comgr/fix-spirv-triple-typo branch May 29, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comgr Related to Code Object Manager

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants