Skip to content

Commit

Permalink
[AMDGPU] New llvm.amdgcn.wave.id intrinsic (llvm#79325)
Browse files Browse the repository at this point in the history
This is only valid on targets with architected SGPRs.
  • Loading branch information
jayfoad authored and Shivam Gupta committed Aug 23, 2024
1 parent 3460ded commit c8d9a11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions llvm/include/llvm/IR/IntrinsicsAMDGPU.td
Original file line number Diff line number Diff line change
Expand Up @@ -2648,6 +2648,10 @@ def int_amdgcn_global_load_tr_b128 : AMDGPULoadIntrinsic<global_ptr_ty>;
def int_amdgcn_wave_id :
DefaultAttrsIntrinsic<[llvm_i32_ty], [], [NoUndef<RetIndex>, IntrNoMem, IntrSpeculatable]>;

// i32 @llvm.amdgcn.wave.id()
def int_amdgcn_wave_id :
DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable]>;

//===----------------------------------------------------------------------===//
// Deep learning intrinsics.
//===----------------------------------------------------------------------===//
Expand Down

0 comments on commit c8d9a11

Please sign in to comment.