[llvm-branch-commits] [clang] [HLSL][DirectX] Add the Qdx-rootsignature-strip driver option (PR #154454)
Chris B via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Aug 21 06:43:30 PDT 2025
================
@@ -4601,6 +4601,16 @@ void Driver::BuildActions(Compilation &C, DerivedArgList &Args,
Actions.push_back(C.MakeAction<BinaryTranslatorJobAction>(
LastAction, types::TY_DX_CONTAINER));
}
+ if (TC.requiresObjcopy(Args)) {
+ Action *LastAction = Actions.back();
+ // llvm-objcopy expects a DXIL container, which can either be
+ // validated (in which case they are TY_DX_CONTAINER), or unvalidated
+ // (TY_OBJECT).
+ if (LastAction->getType() == types::TY_DX_CONTAINER ||
----------------
llvm-beanz wrote:
Should we be running this before validation rather than after? What does DXC do?
https://github.com/llvm/llvm-project/pull/154454
More information about the llvm-branch-commits
mailing list