| commit | a8ef75e758982d8e66790ffe26fcc6f1d9648e88 | [log] [tgz] |
|---|---|---|
| author | Finn Plummer <finn.c.plum@gmail.com> | Wed Jun 25 14:06:46 2025 -0700 |
| committer | GitHub <noreply@github.com> | Wed Jun 25 14:06:46 2025 -0700 |
| tree | 8e56c373d8b760e71d8cc473ba5282b35a2a134f | |
| parent | ce1c1a0e6d6b8dcae19a2b51e01246dd8850691f [diff] |
[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>
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.