[clang] [llvm] [HLSL] Add -HV option translation to clang-dxc.exe (PR #83938)

Joshua Batista via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 11 10:49:25 PDT 2024


================
@@ -8545,6 +8545,11 @@ def dxc_entrypoint : Option<["--", "/", "-"], "E", KIND_JOINED_OR_SEPARATE>,
                      Group<dxc_Group>,
                      Visibility<[DXCOption]>,
                      HelpText<"Entry point name">;
+def dxc_hlsl_version : Option<["/", "-"], "HV", KIND_JOINED_OR_SEPARATE>,
+                     Group<dxc_Group>,
+                     Visibility<[DXCOption]>,
+                     HelpText<"HLSL Version">,
+                     Values<"2016, 2017, 2018, 2021, 202x">;
----------------
bob80905 wrote:

I've decided to use NormalizedValues instead of values, but I no longer need access to valid values thanks to Xiang's suggestion. So I think I should just leave the values there for documentation's sake, but the values won't actually be read by option translation.

https://github.com/llvm/llvm-project/pull/83938


More information about the llvm-commits mailing list