Skip to content

Populate predicate map before any other variable is translated - #256

Open
maarquitos14 wants to merge 1 commit into
ROCm:amd-stagingfrom
maarquitos14:maronas/fix-predicate-map-population
Open

Populate predicate map before any other variable is translated#256
maarquitos14 wants to merge 1 commit into
ROCm:amd-stagingfrom
maarquitos14:maronas/fix-predicate-map-population

Conversation

@maarquitos14

Copy link
Copy Markdown
Contributor

In multi-TU HIP programs we can find __clang_gpu_used_external which appears before llvm.amdgcn.feature.predicate.ids and it recursively triggers function translation which ends up resolving spec constants against an empty FeaturePredicateMap. This patch populates the map before translating any variable.

@maarquitos14
maarquitos14 requested review from AlexVlx and MrSidims July 22, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant