Adds Workgroup Processor Mode (WGP) to the HSA Metadata for Code Object v5/GFX10+.
The field is already present as an asm directive and in the compute program resource register but is also needed in the MD.
Details
Details
- Reviewers
kzhuravl - Commits
- rG9fa46200ea2f: [AMDGPU] Add `.workgroup_processor_mode` to v5 MD
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Indeed
(note the patch is still a WIP - tests are lacking,I should have included it in the title)
llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp | ||
---|---|---|
881 | Can you hide this generation check in a supportsWGP predicate in the subtarget |
llvm/test/CodeGen/AMDGPU/hsa-metadata-workgroup-processor-mode-v5.ll | ||
---|---|---|
7–8 | Can you also add checks for amdhsa_workgroup_processor_mode ASM directive? |
Can you hide this generation check in a supportsWGP predicate in the subtarget