Skip to content

[HLSL] Add appropriate transform/validation of tbaa metadata kind #137386

@bob80905

Description

@bob80905

The MD_tbaa metadata has a backwards incompatible representation, with respect to the LLVM 3.7 representation DXIL uses.

This issue is resolved when we continue to emit the DXIL compatible version of the metadata.

Note: DXC vs upstream llvm representations.

AC:

  • Transform MD_tbaa metadata nodes into DXIL compatible dx.tbaa metadata nodes (DXILTranslateMetadata)
  • Update the allow-list in DXILTranslateMetadata
  • Add DXC equivalent validations for dx.tbaa
  • Update the bitcode writer to replace dx.tbaa back to MD_tbaa
  • Add applicable testing

Metadata

Metadata

Assignees

No one assigned

    Labels

    HLSLHLSL Language Support

    Type

    No type

    Projects

    Status

    Active

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions