[PATCH] D131807: [DIrectX backend] emit metadata for entry.
Xiang Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 12 14:01:00 PDT 2022
python3kgae created this revision.
python3kgae added reviewers: bogner, beanz, pow2clk.
Herald added a subscriber: hiraditya.
Herald added a project: All.
python3kgae requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
New named metadata "dx.entryPoints" is added to save all entries.
Each entry is in format of
!{ptr to function, name, signature, resource table, extra}
For compute shader, the extra will save num of threads in format of {i32 x, i32 y, i32 z}
For library profile, an empty entry will be added to save the resource table for the library.
Signature and resource table metadata is not generated yet.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D131807
Files:
llvm/lib/Target/DirectX/DXILTranslateMetadata.cpp
llvm/test/CodeGen/DirectX/empty_cs_entry.ll
llvm/test/CodeGen/DirectX/lib_entry.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131807.452298.patch
Type: text/x-patch
Size: 7962 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220812/92fbc0f1/attachment.bin>
More information about the llvm-commits
mailing list