[PATCH] D127990: [DirectX] add thread/group id DXIL operations.

Xiang Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 16 10:52:43 PDT 2022


python3kgae created this revision.
python3kgae added reviewers: MaskRay, tstellar, pete, jdoerfert, sheredom, kuhar, antiagainst, nhaehnle, rnk, nikic, beanz, pow2clk, bogner.
Herald added subscribers: StephenFan, hiraditya, mgorny.
Herald added a project: All.
python3kgae requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D127990

Files:
  llvm/include/llvm/IR/CMakeLists.txt
  llvm/include/llvm/IR/Intrinsics.td
  llvm/include/llvm/IR/IntrinsicsDXIL.td
  llvm/lib/Target/DirectX/DXIL.td
  llvm/lib/Target/DirectX/DXILOpLowering.cpp
  llvm/test/CodeGen/DirectX/comput_ids.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127990.437605.patch
Type: text/x-patch
Size: 6873 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220616/f7347e66/attachment.bin>


More information about the llvm-commits mailing list