================ @@ -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:
No, I added that logic myself. I've manually checked all the valid values and emit an error if there are no matches in HLSL.cpp:263. Regardless, I wouldn't need that logic, because I need to perform a unique transformation exhaustively in every valid case, and if there are no matching valid cases, then I emit an error with `else`. https://github.com/llvm/llvm-project/pull/83938 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits