[llvm] [AMDGPU] Move EU and Wave Queries into TargetParser (PR #215681)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 21 19:21:45 PDT 2026


================
@@ -194,6 +194,20 @@ LLVM_ABI unsigned getAddressableNumSGPRs(Triple::SubArchType SubArch);
 LLVM_ABI unsigned getSGPRAllocGranule(GPUKind AK);
 LLVM_ABI unsigned getSGPRAllocGranule(Triple::SubArchType SubArch);
 
+/// \returns Number of SIMDs a work-group's waves run on for the target and
+/// full-SIMD mode setting.
+LLVM_ABI unsigned getWorkGroupSIMDs(GPUKind AK, bool FullSIMDMode);
----------------
shiltian wrote:

How about `getNumSIMDsPerEU`? I find writing `getNumElements` as `getElements` really weird.

https://github.com/llvm/llvm-project/pull/215681


More information about the llvm-commits mailing list