[MLIR][ROCDL] Add conversion for gpu.lane_id to ROCDL
Creates rocdl.lane_id op with llvm conversion to:
__device__ static unsigned int __lane_id() {
return __builtin_amdgcn_mbcnt_hi(
-1, __builtin_amdgcn_mbcnt_lo(-1, 0));
}
Reviewed By: krzysz00
Differential Revision: https://reviews.llvm.org/D154666
parent
d1417f43
Please register or sign in to comment