Skip to content

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

@inbelic

Description

@inbelic

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 (LLVM 3.7) 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.

AC:

  • Update DXILTranslateMetadata.cpp to transform any llvm tbaa metadata to its DXIL equivalent and add it to the white list
  • Add test cases of the passes removing/transforming respective metadata

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions