[clang] clang/AMDGPU: Error on -mwavefrontsize64 for wave32-only targets (PR #249250)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 5 08:39:53 PST 2026
================
@@ -839,6 +839,15 @@ AMDGPUToolChain::TranslateArgs(const DerivedArgList &Args, BoundArch BA,
options::OPT_msramecc,
options::OPT_mno_sramecc);
}
+
+ Arg *Wave64Arg = DAL->getLastArg(options::OPT_mwavefrontsize64,
+ options::OPT_mno_wavefrontsize64);
+ if (Wave64Arg &&
+ Wave64Arg->getOption().matches(options::OPT_mwavefrontsize64) &&
+ Features.test(llvm::AMDGPU::FEAT_WAVEFRONTSIZE32)) {
----------------
arsenm wrote:
No, those don't have the baked in wavefront size feature bits. If this were broken the existing tests would fail
https://github.com/llvm/llvm-project/pull/249250
More information about the cfe-commits
mailing list