llvm-project
74a4d815 - [HLSL][DirectX] Add the Qdx-rootsignature-strip driver option (#154454)

Commit
72 days ago
[HLSL][DirectX] Add the Qdx-rootsignature-strip driver option (#154454) This pr adds the `Qstrip-rootsignature` as a `DXC` driver option. To do so, this pr introduces the `BinaryModifyJobClass` as an `Action` to modify a produced object file before its final output. Further, it registers `llvm-objcopy` as the tool to modify a produced `DXContainer` on the `HLSL` toolchain. This allows us to specify the `Qstrip-rootsignature` option to `clang-dxc` which will invoke `llvm-objcopy` with a `--remove-section=RTS0` argument to implement its functionality. Resolves: https://github.com/llvm/llvm-project/issues/150275.
Author
Parents
Loading