Issue 126584
Summary [HLSL] Generate Root Signature Descriptor Table Metadata from AST
Labels HLSL
Assignees inbelic
Reporter inbelic
    This issue handles the generation of root signature LLVM IR metadata from the parsed AST. Specifically, we will handle this for the `DescriptorTable` and `DescriptorTableClause`.

We will again follow the representation of a list of "root elements" following the defined [metadata representation](https://github.com/llvm/wg-hlsl/blob/main/proposals/0002-root-signature-in-clang.md#metadata-schema).

AC:
- [ ] Define `CGHLSLRuntime::addRootSignature` in `CGRuntime.h`
- [ ] Implement `CGHLSLRuntime::addRootSignature` in `CGRuntime.cpp`
- [ ] Implement metadata generation for `DescriptorTable` and `DescriptorTableClause` in `HLSLRootSignatures.[h|cpp]`
- [ ] Add usage of `addRootSignature` to `emitEntryFunction` in `CGRuntime.cpp`
- [ ] Add tests of generated metadata using `emit-llvm` in `CodeGenHLSL/RootSignatures.hlsl`
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to