diff options
author | Xiang Li <python3kgae@outlook.com> | 2022-06-16 10:49:21 -0700 |
---|---|---|
committer | Xiang Li <python3kgae@outlook.com> | 2022-07-01 10:56:07 -0700 |
commit | 43dc319049516c586f5ece974e618baf40d737a5 (patch) | |
tree | 3eadfa99c10275d34c63d2a0fa6e51f648c47f24 /llvm/lib/IR/Function.cpp | |
parent | 6450daddd20a83327118c0c6fa8f844a99cd1f0f (diff) | |
download | llvm-43dc319049516c586f5ece974e618baf40d737a5.zip llvm-43dc319049516c586f5ece974e618baf40d737a5.tar.gz llvm-43dc319049516c586f5ece974e618baf40d737a5.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r-- | llvm/lib/IR/Function.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index 778e230..53df943 100644 --- a/llvm/lib/IR/Function.cpp +++ b/llvm/lib/IR/Function.cpp @@ -36,6 +36,7 @@ #include "llvm/IR/IntrinsicsAMDGPU.h" #include "llvm/IR/IntrinsicsARM.h" #include "llvm/IR/IntrinsicsBPF.h" +#include "llvm/IR/IntrinsicsDirectX.h" #include "llvm/IR/IntrinsicsHexagon.h" #include "llvm/IR/IntrinsicsMips.h" #include "llvm/IR/IntrinsicsNVPTX.h" |