Skip to content

[DirectX] Implement pass to transform tbaa LLVM metadata to DXIL version #139610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks
inbelic opened this issue May 12, 2025 · 0 comments
Open
2 tasks

[DirectX] Implement pass to transform tbaa LLVM metadata to DXIL version #139610

inbelic opened this issue May 12, 2025 · 0 comments

Comments

@inbelic
Copy link
Contributor

inbelic commented May 12, 2025

From #137386 (comment).

We need to account for when the modern metadata representation (eg tbaa) has changed from DXC. The upstream representation version is what is generated when with code-gen in clang but we will need to lower it to be the DXIL compliant metadata.

In this case, it would entail removing metadata that is unknown in DXIL. As part of this change, we should move the current whitelist of metadata removal to this pass: #136386.

This issue is ready for refinement when we have decided where the pass should be located (DXILTranslateMetadata or new a new DXIL pass).

With that noted, it raises the following implementation questions:

AC:

  • Define a pass that translates modern metadata into a DXIL compliant metadata representation
  • Add test cases of the passes removing/transforming respective metadata
@inbelic inbelic self-assigned this May 12, 2025
@inbelic inbelic moved this to Planning in HLSL Support May 12, 2025
@damyanp damyanp removed the status in HLSL Support May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant