[PATCH] D157582: [Driver][DXC] Handle -Fo and -Fc flags
Justin Bogner via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 9 23:00:33 PDT 2023
bogner created this revision.
bogner added reviewers: beanz, python3kgae.
Herald added subscribers: Anastasia, hiraditya, mcrosier.
Herald added a project: All.
bogner requested review of this revision.
Herald added subscribers: llvm-commits, cfe-commits, MaskRay.
Herald added projects: clang, LLVM.
This splits the backend and assemble actions for HLSL inputs and
handles the options in GetNamedOutputPath instead of aliasing `-o`.
This also moves how we default to emitting asm to stdout, since doing
this in the HLSL toolchain rather than the driver pollutes how the
clang driver works as well.
When both options are specified we disable collapsing the assemble
action and attempt to generate both outputs. Note that while this
handles the driver aspects, we can't actually run in that mode for now
since -cc1as doesn't understand DXIL as an input yet.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D157582
Files:
clang/include/clang/Driver/Options.td
clang/include/clang/Driver/Types.def
clang/include/clang/Driver/Types.h
clang/lib/Driver/Driver.cpp
clang/lib/Driver/ToolChains/HLSL.cpp
clang/lib/Driver/Types.cpp
clang/test/Driver/dxc_dxv_path.hlsl
clang/test/Driver/dxc_output.hlsl
llvm/lib/MC/MCParser/AsmParser.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157582.548879.patch
Type: text/x-patch
Size: 11685 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230810/7fccd61e/attachment.bin>
More information about the cfe-commits
mailing list