[clang] [llvm] [HLSL] Add list of exported functions as named metadata node `dx.exports` (PR #102275)
Xiang Li via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 7 11:59:09 PDT 2024
python3kgae wrote:
> > Could this be an analysis pass which collect the list as a SmallVector<Function*> instead of creating the list in 'dx.exports' metadata?
>
> You mean the DXILFinalizeLinkage pass (coming soon) that needs a list of entries and exported functions should get the information from "hlsl.shader" and "hlsl.export" attributes on the functions? Instead of relying on the metadata?
I mean DXILFinalizeLinkage pass could use an analysis pass to get the list of export functions. The collecting of the list happens in the analysis pass. No need to create a named metadata and remove it later.
https://github.com/llvm/llvm-project/pull/102275
More information about the cfe-commits
mailing list