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 Sep 5, 2024
1 parent 1ba4f19 commit 166af3d
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 @@ -2689,6 +2689,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 166af3d

Please sign in to comment.