[llvm] [AMDGPU] Remove default wavefrontsize attribute in asm parser (PR #97617)
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 3 11:58:30 PDT 2024
================
@@ -1408,7 +1408,20 @@ class AMDGPUAsmParser : public MCTargetAsmParser {
copySTI().ToggleFeature("southern-islands");
}
- setAvailableFeatures(ComputeAvailableFeatures(getFeatureBits()));
+ StringRef FS = getSTI().getFeatureString();
+ FeatureBitset FB = getFeatureBits();
+ int isWave32 = FS.contains("+wavefrontsize32");
+ int isWave64 = FS.contains("+wavefrontsize64");
+ // Reset default wavefrontsize features.
+ if (isWave32 + isWave64 == 1) {
+ if (isWave32 && FB[AMDGPU::FeatureWavefrontSize64])
----------------
rampitec wrote:
We do exactly the same in the codegen: https://llvm.org/doxygen/AMDGPUSubtarget_8cpp_source.html#l00085
https://github.com/llvm/llvm-project/pull/97617
More information about the llvm-commits
mailing list