[all-commits] [llvm/llvm-project] cb6fe6: [Driver][DXC] Handle -Fo and -Fc flags

Justin Bogner via All-commits all-commits at lists.llvm.org
Tue Aug 15 16:39:33 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb6fe61be3dee67bb8b080c73dd2c48f2d0ce2c7
  Author: Justin Bogner <mail at justinbogner.com>
  Date:   2023-08-15 (Tue, 15 Aug 2023)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/include/clang/Driver/Types.def
    M clang/include/clang/Driver/Types.h
    M clang/lib/Driver/Driver.cpp
    M clang/lib/Driver/ToolChains/HLSL.cpp
    M clang/lib/Driver/Types.cpp
    M clang/test/Driver/dxc_dxv_path.hlsl
    A clang/test/Driver/dxc_output.hlsl
    M llvm/lib/MC/MCParser/AsmParser.cpp

  Log Message:
  [Driver][DXC] Handle -Fo and -Fc flags

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.

Differential Revision: https://reviews.llvm.org/D157582

More information about the All-commits mailing list