29 #ifndef HIP_INCLUDE_HIP_HCC_DETAIL_LLVM_INTRINSICS_H 30 #define HIP_INCLUDE_HIP_HCC_DETAIL_LLVM_INTRINSICS_H 35 __attribute__((convergent))
36 ulong __llvm_amdgcn_icmp_i32(uint x, uint y, uint z) __asm("llvm.amdgcn.icmp.i32");
39 unsigned __llvm_amdgcn_groupstaticsize() __asm("llvm.amdgcn.groupstaticsize");
42 unsigned int __llvm_bitrev_b32(
unsigned int src0) __asm("llvm.bitreverse.i32");
45 uint64_t __llvm_bitrev_b64(uint64_t src0) __asm("llvm.bitreverse.i64");
49 __attribute__((const))
50 unsigned int __mbcnt_lo(
unsigned int x,
unsigned int y) __asm("llvm.amdgcn.mbcnt.lo");
54 __attribute__((const))
55 unsigned int __mbcnt_hi(
unsigned int x,
unsigned int y) __asm("llvm.amdgcn.mbcnt.hi");
58 int __llvm_amdgcn_ds_bpermute(
int index,
int src) __asm("llvm.amdgcn.ds.bpermute");
61 int __llvm_amdgcn_ds_permute(
int index,
int src) __asm("llvm.amdgcn.ds.permute");
64 int __llvm_amdgcn_ds_swizzle(
int index,
int pattern) __asm("llvm.amdgcn.ds.swizzle");
67 int __llvm_amdgcn_move_dpp(
int src,
int dpp_ctrl,
int row_mask,
int bank_mask,
68 bool bound_ctrl) __asm("llvm.amdgcn.mov.dpp.i32");