Skip to content

Commit 9f2d8cd

Browse files
committed
[flang][clang][docs] Split out Clang specific doc text for -mrvv-vector-bits
Flang does not set the preprocessor define.
1 parent 594d57e commit 9f2d8cd

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4660,11 +4660,15 @@ def menable_experimental_extensions : Flag<["-"], "menable-experimental-extensio
46604660
def mrvv_vector_bits_EQ : Joined<["-"], "mrvv-vector-bits=">, Group<m_Group>,
46614661
Visibility<[ClangOption, FlangOption]>,
46624662
HelpText<"Specify the size in bits of an RVV vector register">,
4663-
DocBrief<"Defaults to the vector length agnostic value of \"scalable\". "
4664-
"Accepts power of 2 values between 64 and 65536. Also accepts "
4665-
"\"zvl\" to use the value implied by -march/-mcpu. On Clang, value "
4666-
"will be reflected in __riscv_v_fixed_vlen preprocessor define "
4667-
"(RISC-V only)">;
4663+
DocBrief<!strconcat(
4664+
"Defaults to the vector length agnostic value of \"scalable\". "
4665+
"Accepts power of 2 values between 64 and 65536. Also accepts "
4666+
"\"zvl\" to use the value implied by -march/-mcpu.",
4667+
!cond(
4668+
// Flang does not set the preprocessor define.
4669+
!eq(GlobalDocumentation.Program, "Flang") : "",
4670+
true: " The value will be reflected in __riscv_v_fixed_vlen preprocessor define"),
4671+
" (RISC-V only)")>;
46684672

46694673
def munaligned_access : Flag<["-"], "munaligned-access">, Group<m_Group>,
46704674
HelpText<"Allow memory accesses to be unaligned (AArch32/AArch64/LoongArch/RISC-V only)">;

0 commit comments

Comments
 (0)