This is an archive of the discontinued LLVM Phabricator instance.

[Driver][DXC] Handle -Fo and -Fc flags
ClosedPublic

Authored by bogner on Aug 9 2023, 11:00 PM.

Details

Summary

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.

Diff Detail

Event Timeline

bogner created this revision.Aug 9 2023, 11:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2023, 11:00 PM
bogner requested review of this revision.Aug 9 2023, 11:00 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 9 2023, 11:00 PM
beanz accepted this revision.Aug 15 2023, 2:50 PM
This revision is now accepted and ready to land.Aug 15 2023, 2:50 PM
This revision was automatically updated to reflect the committed changes.