[all-commits] [llvm/llvm-project] f712c0: [HLSL]Add -O and -Od option for dxc mode.
Xiang Li via All-commits
all-commits at lists.llvm.org
Tue Sep 13 21:26:36 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f712c0131f3b2d7b95ff4e21e8050943c01565d6
https://github.com/llvm/llvm-project/commit/f712c0131f3b2d7b95ff4e21e8050943c01565d6
Author: Xiang Li <python3kgae at outlook.com>
Date: 2022-09-13 (Tue, 13 Sep 2022)
Changed paths:
M clang/include/clang/Driver/Options.td
M clang/lib/CodeGen/CGHLSLRuntime.cpp
M clang/lib/Driver/ToolChains/Clang.cpp
M clang/lib/Driver/ToolChains/HLSL.cpp
A clang/test/CodeGenHLSL/disable_opt.hlsl
A clang/test/Driver/dxc_O.hlsl
M clang/test/Driver/dxc_fcgl.hlsl
Log Message:
-----------
[HLSL]Add -O and -Od option for dxc mode.
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.
Reviewed By: beanz
Differential Revision: https://reviews.llvm.org/D128845
More information about the All-commits
mailing list