[all-commits] [llvm/llvm-project] b86150: [DIrectX backend] emit metadata for entry.

Xiang Li via All-commits all-commits at lists.llvm.org
Wed Dec 21 12:01:51 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b861507912d037801546c50613ed91d36279a469
      https://github.com/llvm/llvm-project/commit/b861507912d037801546c50613ed91d36279a469
  Author: Xiang Li <python3kgae at outlook.com>
  Date:   2022-12-21 (Wed, 21 Dec 2022)

  Changed paths:
    M llvm/lib/Target/DirectX/DXILMetadata.cpp
    M llvm/lib/Target/DirectX/DXILMetadata.h
    M llvm/lib/Target/DirectX/DXILResource.cpp
    M llvm/lib/Target/DirectX/DXILTranslateMetadata.cpp
    M llvm/test/CodeGen/DirectX/Metadata/shaderModel-as.ll
    M llvm/test/CodeGen/DirectX/Metadata/shaderModel-cs.ll
    M llvm/test/CodeGen/DirectX/Metadata/shaderModel-gs.ll
    M llvm/test/CodeGen/DirectX/Metadata/shaderModel-hs.ll
    M llvm/test/CodeGen/DirectX/Metadata/shaderModel-ms.ll
    M llvm/test/CodeGen/DirectX/Metadata/shaderModel-ps.ll
    M llvm/test/CodeGen/DirectX/Metadata/shaderModel-vs.ll
    M llvm/test/CodeGen/DirectX/UAVMetadata.ll
    A llvm/test/CodeGen/DirectX/empty_cs_entry.ll
    A llvm/test/CodeGen/DirectX/lib_entry.ll

  Log Message:
  -----------
  [DIrectX backend] emit metadata for entry.

New named metadata "dx.entryPoints" is added to save all entries.

Each entry is in format of
!{ptr to function, name, signature, resource table, extra}

For compute shader, the extra will save num of threads in format of {i32 x, i32 y, i32 z}

For library profile, an empty entry will be added to save the resource table for the library.

Signature and resource table metadata is not generated yet.

Differential Revision: https://reviews.llvm.org/D131807




More information about the All-commits mailing list