2014-10-15 23:08:06 +08:00
|
|
|
declare i32 @llvm.AMDGPU.read.workdim() nounwind readnone
|
|
|
|
|
|
|
|
define i32 @get_work_dim() nounwind readnone alwaysinline {
|
|
|
|
%x = call i32 @llvm.AMDGPU.read.workdim() nounwind readnone , !range !0
|
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
2014-12-31 23:27:59 +08:00
|
|
|
!0 = !{ i32 1, i32 4 }
|