Skip to content

Commit e5cd4b2

Browse files
jayfoadxgupta
authored andcommitted
[AMDGPU] New llvm.amdgcn.wave.id intrinsic (llvm#79325)
This is only valid on targets with architected SGPRs.
1 parent 58dd204 commit e5cd4b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/include/llvm/IR/IntrinsicsAMDGPU.td

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2648,6 +2648,10 @@ def int_amdgcn_global_load_tr_b128 : AMDGPULoadIntrinsic<global_ptr_ty>;
26482648
def int_amdgcn_wave_id :
26492649
DefaultAttrsIntrinsic<[llvm_i32_ty], [], [NoUndef<RetIndex>, IntrNoMem, IntrSpeculatable]>;
26502650

2651+
// i32 @llvm.amdgcn.wave.id()
2652+
def int_amdgcn_wave_id :
2653+
DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable]>;
2654+
26512655
//===----------------------------------------------------------------------===//
26522656
// Deep learning intrinsics.
26532657
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)