fcgl option will make compilation stop after clang codeGen and output the llvm ir.
It is added to check clang codeGen output for HLSL.
It will be translated into -S -emit-llvm and -disable-llvm-passes.
Paths
| Differential D124983
[HLSL] add -fcgl option flag. ClosedPublic Authored by python3kgae on May 4 2022, 11:17 PM.
Details Summary fcgl option will make compilation stop after clang codeGen and output the llvm ir. It will be translated into -S -emit-llvm and -disable-llvm-passes.
Diff Detail
Unit TestsFailed Event Timelinepython3kgae added a child revision: D124813: [HLSL] Add clang builtin for HLSL..May 4 2022, 11:35 PM aaron.ballman added inline comments.
python3kgae added inline comments. python3kgae marked 2 inline comments as done. Comment ActionsAdd emit_pristine_llvm to make fcgl easier to understand. python3kgae retitled this revision from [HLSL} add -fcgl option flag. to [HLSL] add -fcgl option flag..May 6 2022, 12:26 AM Comment Actions LGTM aside from a tiny nit.
This revision is now accepted and ready to land.May 6 2022, 5:37 AM This revision was landed with ongoing or failed builds.May 6 2022, 11:42 AM Closed by commit rG3fa5eb4cfc06: [HLSL] add -fcgl option flag. (authored by python3kgae). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 427204 clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Driver/ToolChains/HLSL.cpp
clang/unittests/Driver/ToolChainTest.cpp
|
Any particular reason for this name? Naively, I have no idea what this does or how it relates to code generation.