Skip to content

Commit 83babf9

Browse files
committed
design review: rename to fdx-rootsig-version
1 parent 57b3121 commit 83babf9

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9288,8 +9288,8 @@ def fcgl : DXCFlag<"fcgl">, Alias<emit_pristine_llvm>;
92889288
def enable_16bit_types : DXCFlag<"enable-16bit-types">, Alias<fnative_half_type>,
92899289
HelpText<"Enable 16-bit types and disable min precision types."
92909290
"Available in HLSL 2018 and shader model 6.2.">;
9291-
def fdx_rootsig_ver :
9292-
Joined<["-"], "fdx-rootsig-ver=">,
9291+
def fdx_rootsig_version :
9292+
Joined<["-"], "fdx-rootsig-version=">,
92939293
Group<dxc_Group>,
92949294
Visibility<[ClangOption, CC1Option]>,
92959295
HelpText<"Root Signature Version">,
@@ -9299,7 +9299,7 @@ def fdx_rootsig_ver :
92999299
MarshallingInfoEnum<LangOpts<"HLSLRootSigVer">, "V1_1">;
93009300
def dxc_rootsig_ver :
93019301
Separate<["/", "-"], "force-rootsig-ver">,
9302-
Alias<fdx_rootsig_ver>,
9302+
Alias<fdx_rootsig_version>,
93039303
Group<dxc_Group>,
93049304
Visibility<[DXCOption]>;
93059305
def hlsl_entrypoint : Option<["-"], "hlsl-entry", KIND_SEPARATE>,

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3835,7 +3835,7 @@ static void RenderHLSLOptions(const ArgList &Args, ArgStringList &CmdArgs,
38353835
options::OPT_disable_llvm_passes,
38363836
options::OPT_fnative_half_type,
38373837
options::OPT_hlsl_entrypoint,
3838-
options::OPT_fdx_rootsig_ver};
3838+
options::OPT_fdx_rootsig_version};
38393839
if (!types::isHLSL(InputType))
38403840
return;
38413841
for (const auto &Arg : ForwardedArguments)

clang/lib/Driver/ToolChains/HLSL.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ HLSLToolChain::TranslateArgs(const DerivedArgList &Args, StringRef BoundArch,
296296
continue;
297297
}
298298
if (A->getOption().getID() == options::OPT_dxc_rootsig_ver) {
299-
DAL->AddJoinedArg(nullptr, Opts.getOption(options::OPT_fdx_rootsig_ver),
299+
DAL->AddJoinedArg(nullptr,
300+
Opts.getOption(options::OPT_fdx_rootsig_version),
300301
A->getValue());
301302
A->claim();
302303
continue;

clang/lib/Frontend/CompilerInvocation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,9 +636,9 @@ static bool FixupInvocation(CompilerInvocation &Invocation,
636636
Diags.Report(diag::err_drv_argument_not_allowed_with)
637637
<< "-hlsl-entry" << GetInputKindName(IK);
638638

639-
if (Args.hasArg(OPT_fdx_rootsig_ver) && !LangOpts.HLSL)
639+
if (Args.hasArg(OPT_fdx_rootsig_version) && !LangOpts.HLSL)
640640
Diags.Report(diag::err_drv_argument_not_allowed_with)
641-
<< "-fdx-rootsig-ver" << GetInputKindName(IK);
641+
<< "-fdx-rootsig-version" << GetInputKindName(IK);
642642

643643
if (Args.hasArg(OPT_fgpu_allow_device_init) && !LangOpts.HIP)
644644
Diags.Report(diag::warn_ignored_hip_only_option)

clang/test/AST/HLSL/RootSignatures-AST.hlsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-library -ast-dump \
22
// RUN: -disable-llvm-passes -o - %s | FileCheck %s
33
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-library -ast-dump \
4-
// RUN: -fdx-rootsig-ver=rootsig_1_0 \
4+
// RUN: -fdx-rootsig-version=rootsig_1_0 \
55
// RUN: -disable-llvm-passes -o - %s | FileCheck %s --check-prefix=CHECK-V1_0
66
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-library -ast-dump \
7-
// RUN: -fdx-rootsig-ver=rootsig_1_1 \
7+
// RUN: -fdx-rootsig-version=rootsig_1_1 \
88
// RUN: -disable-llvm-passes -o - %s | FileCheck %s --check-prefix=CHECK-V1_1
99

1010
// This test ensures that the sample root signature is parsed without error and

0 commit comments

Comments
 (0)