diff options
author | Finn Plummer <finn.c.plum@gmail.com> | 2025-06-25 14:06:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-25 14:06:46 -0700 |
commit | a8ef75e758982d8e66790ffe26fcc6f1d9648e88 (patch) | |
tree | 8e56c373d8b760e71d8cc473ba5282b35a2a134f /llvm/lib/Bitcode | |
parent | ce1c1a0e6d6b8dcae19a2b51e01246dd8850691f (diff) | |
download | llvm-a8ef75e758982d8e66790ffe26fcc6f1d9648e88.zip llvm-a8ef75e758982d8e66790ffe26fcc6f1d9648e88.tar.gz llvm-a8ef75e758982d8e66790ffe26fcc6f1d9648e88.tar.bz2 |
[DirectX] Strip `dx.rootsignatures` metadata during `dxil-prepare` (#145746)
The `dx.rootsignatures` metadata is not recognized in DXIL, so failure
to remove this will cause validation errors.
This metadata is parsed (within `RootSignatureAnalysisWrapper`) into its
binary format. As such, once it has been used to construct the binary
form, it can be safely discarded without loss of information.
This pr ensures that the dxil prepare pass will depend and preserve on
the root signature analysis so that it runs before the metadata is
removed.
- Update `DXILPrepare.cpp` to preserve and depend on
`RootSignatureAnalysisWrapper`
- Update test to demonstrate order is correct
- Provide test-case to demonstrate the metadata is removed
Resolves https://github.com/llvm/llvm-project/issues/145437.
----------
Co-authored-by: Justin Bogner <mail@justinbogner.com>
Diffstat (limited to 'llvm/lib/Bitcode')
0 files changed, 0 insertions, 0 deletions