Two new dxc mode options -O and -Od are added for dxc mode.
-O is just alias of existing cc1 -O option.
-Od will be lowered into -O0 and -dxc-opt-disable.
-dxc-opt-disable is cc1 option added to for build ShaderFlags.
Paths
| Differential D128845
[HLSL]Add -O and -Od option for dxc mode. ClosedPublic Authored by python3kgae on Jun 29 2022, 12:29 PM.
Details Summary Two new dxc mode options -O and -Od are added for dxc mode. -dxc-opt-disable is cc1 option added to for build ShaderFlags.
Diff Detail
Event TimelineComment Actions Looks good apart from my uncertainty as to what -fcgl should or shouldn't imply
python3kgae marked an inline comment as done. Comment ActionsChange default to O3 implement to HLSL driver and update test. python3kgae added inline comments.
This revision is now accepted and ready to land.Sep 13 2022, 12:32 PM Closed by commit rGf712c0131f3b: [HLSL]Add -O and -Od option for dxc mode. (authored by python3kgae). · Explain WhySep 13 2022, 9:26 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 459833 clang/include/clang/Driver/Options.td
clang/lib/CodeGen/CGHLSLRuntime.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Driver/ToolChains/HLSL.cpp
clang/test/CodeGenHLSL/disable_opt.hlsl
clang/test/Driver/dxc_O.hlsl
clang/test/Driver/dxc_fcgl.hlsl
|
nit: remove extra whitespace change.