Skip to content

[HLSL] Add appropriate validation for MD_tbaa metadata kind #137386

Open
@bob80905

Description

@bob80905

The MD_tbaa metadata kind needs to be supported in LLVM for the DXIL Prepare pass.
Currently, if any MD_tbaa metadata kind is detected prior to the DXIL Prepare pass, it is removed thanks to the whitelist in llvm\lib\Target\DirectX\DXILPrepare.cpp under getCompatibleInstructionMDs. The whitelist needs to accomodate for MD_tbaa, and the whitelist needs extra logic to validate the MD_tbaa node in the same way that the dxil validator validates the MD_tbaa node.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HLSLHLSL Language Support

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions