llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
26.8k stars 10.98k forks source link

[DirectX] Bidirectional translation of DXIL shader entry points #66016

Open bogner opened 9 months ago

bogner commented 9 months ago

We currently lower entry point info to DXIL metadata in DXILTranslateMetadata using dxil::createEntryMD. This should leverage #63835 rather than reading the attributes directly, and we'll need the reverse transformation to happen in DXILUpgrade.

AC:

bogner commented 3 weeks ago

We don't need a full blown abstraction - we'll leverage #63835 for the translation to DXIL and we'll need to teach DXILUpgrade to handle the entry point, but we shouldn't need anything complicated here.