[clang] clang/AMDGPU: Error on -mwavefrontsize64 for wave32-only targets (PR #249250)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 5 08:26:22 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)) {
----------------
jhuber6 wrote:
Does this error for things like gfx1030 that support both? Presumably that would have the w32 feature, but I don't know how it's encoded through these flags.
https://github.com/llvm/llvm-project/pull/249250
More information about the cfe-commits
mailing list