[all-commits] [llvm/llvm-project] 43dc31: [DirectX] add thread/group id DXIL operations.

Xiang Li via All-commits all-commits at lists.llvm.org
Fri Jul 1 10:56:22 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 43dc319049516c586f5ece974e618baf40d737a5
      https://github.com/llvm/llvm-project/commit/43dc319049516c586f5ece974e618baf40d737a5
  Author: Xiang Li <python3kgae at outlook.com>
  Date:   2022-07-01 (Fri, 01 Jul 2022)

  Changed paths:
    M llvm/include/llvm/IR/CMakeLists.txt
    M llvm/include/llvm/IR/Intrinsics.td
    A llvm/include/llvm/IR/IntrinsicsDirectX.td
    M llvm/lib/IR/Function.cpp
    M llvm/lib/Target/DirectX/DXIL.td
    M llvm/lib/Target/DirectX/DXILOpLowering.cpp
    A llvm/test/CodeGen/DirectX/comput_ids.ll

  Log Message:
  -----------
  [DirectX] add thread/group id DXIL operations.

Add DXIL operation for thread/group id operations.

ID  Name	                     Description
93  ThreadId	                 reads the thread ID
94  GroupId	                  reads the group ID (SV_GroupID)
95  ThreadIdInGroup	          reads the thread ID within the group (SV_GroupThreadID)
96  FlattenedThreadIdInGroup	 provides a flattened index for a given thread within a given group (SV_GroupIndex)

Also add llvm intrinsic which map to these intrinsics to DXIL operation.

Reviewed By: beanz

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




More information about the All-commits mailing list