Skip to content

Commit 8092933

Browse files
authored
[RISCV][AArch64] Don't allow -mvscale-min/max options to be passed to the clang driver. (#68065)
The driver doesn't have code to pass these down to cc1. It just prints an unused option warning. Remove them from the driver.
1 parent 9b51200 commit 8092933

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4589,13 +4589,11 @@ def msve_vector_bits_EQ : Joined<["-"], "msve-vector-bits=">, Group<m_aarch64_Fe
45894589
} // let Flags = [TargetSpecific]
45904590

45914591
def mvscale_min_EQ : Joined<["-"], "mvscale-min=">,
4592-
Group<m_aarch64_Features_Group>, Flags<[NoXarchOption]>,
4593-
Visibility<[ClangOption, CC1Option, FC1Option]>,
4592+
Visibility<[CC1Option, FC1Option]>,
45944593
HelpText<"Specify the vscale minimum. Defaults to \"1\". (AArch64/RISC-V only)">,
45954594
MarshallingInfoInt<LangOpts<"VScaleMin">>;
45964595
def mvscale_max_EQ : Joined<["-"], "mvscale-max=">,
4597-
Group<m_aarch64_Features_Group>, Flags<[NoXarchOption]>,
4598-
Visibility<[ClangOption, CC1Option, FC1Option]>,
4596+
Visibility<[CC1Option, FC1Option]>,
45994597
HelpText<"Specify the vscale maximum. Defaults to the"
46004598
" vector length agnostic value of \"0\". (AArch64/RISC-V only)">,
46014599
MarshallingInfoInt<LangOpts<"VScaleMax">>;

0 commit comments

Comments
 (0)