2018-07-12 04:25:49 +08:00
|
|
|
; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck -allow-deprecated-dag-overlap %s
|
|
|
|
; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 | FileCheck -allow-deprecated-dag-overlap %s
|
2016-05-27 01:02:56 +08:00
|
|
|
; RUN: opt < %s -S -mtriple=nvptx-nvidia-cuda -nvvm-intr-range \
|
2018-07-12 04:25:49 +08:00
|
|
|
; RUN: | FileCheck -allow-deprecated-dag-overlap --check-prefix=RANGE --check-prefix=RANGE_20 %s
|
2016-05-27 01:02:56 +08:00
|
|
|
; RUN: opt < %s -S -mtriple=nvptx-nvidia-cuda \
|
|
|
|
; RUN: -nvvm-intr-range -nvvm-intr-range-sm=30 \
|
2018-07-12 04:25:49 +08:00
|
|
|
; RUN: | FileCheck -allow-deprecated-dag-overlap --check-prefix=RANGE --check-prefix=RANGE_30 %s
|
2012-05-05 04:18:50 +08:00
|
|
|
|
|
|
|
define ptx_device i32 @test_tid_x() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %tid.x;
|
2016-07-08 00:40:17 +08:00
|
|
|
; RANGE: call i32 @llvm.nvvm.read.ptx.sreg.tid.x(), !range ![[BLK_IDX_XY:[0-9]+]]
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.tid.x()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_tid_y() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %tid.y;
|
2016-07-08 00:40:17 +08:00
|
|
|
; RANGE: call i32 @llvm.nvvm.read.ptx.sreg.tid.y(), !range ![[BLK_IDX_XY]]
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.tid.y()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_tid_z() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %tid.z;
|
2016-07-08 00:40:17 +08:00
|
|
|
; RANGE: call i32 @llvm.nvvm.read.ptx.sreg.tid.z(), !range ![[BLK_IDX_Z:[0-9]+]]
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.tid.z()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_tid_w() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %tid.w;
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.tid.w()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_ntid_x() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %ntid.x;
|
2016-07-08 00:40:17 +08:00
|
|
|
; RANGE: call i32 @llvm.nvvm.read.ptx.sreg.ntid.x(), !range ![[BLK_SIZE_XY:[0-9]+]]
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.ntid.x()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_ntid_y() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %ntid.y;
|
2016-07-08 00:40:17 +08:00
|
|
|
; RANGE: call i32 @llvm.nvvm.read.ptx.sreg.ntid.y(), !range ![[BLK_SIZE_XY]]
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.ntid.y()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_ntid_z() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %ntid.z;
|
2016-07-08 00:40:17 +08:00
|
|
|
; RANGE: call i32 @llvm.nvvm.read.ptx.sreg.ntid.z(), !range ![[BLK_SIZE_Z:[0-9]+]]
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.ntid.z()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_ntid_w() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %ntid.w;
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.ntid.w()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_laneid() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %laneid;
|
2016-07-08 00:40:17 +08:00
|
|
|
; RANGE: call i32 @llvm.nvvm.read.ptx.sreg.laneid(), !range ![[LANEID:[0-9]+]]
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.laneid()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
2016-05-27 01:02:56 +08:00
|
|
|
define ptx_device i32 @test_warpsize() {
|
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, WARP_SZ;
|
|
|
|
; RANGE: call i32 @llvm.nvvm.read.ptx.sreg.warpsize(), !range ![[WARPSIZE:[0-9]+]]
|
|
|
|
; CHECK: ret;
|
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.warpsize()
|
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
2012-05-05 04:18:50 +08:00
|
|
|
define ptx_device i32 @test_warpid() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %warpid;
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.warpid()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_nwarpid() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %nwarpid;
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.nwarpid()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_ctaid_y() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %ctaid.y;
|
2016-07-08 00:40:17 +08:00
|
|
|
; RANGE: call i32 @llvm.nvvm.read.ptx.sreg.ctaid.y(), !range ![[GRID_IDX_YZ:[0-9]+]]
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.ctaid.y()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_ctaid_z() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %ctaid.z;
|
2016-07-08 00:40:17 +08:00
|
|
|
; RANGE: call i32 @llvm.nvvm.read.ptx.sreg.ctaid.z(), !range ![[GRID_IDX_YZ]]
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.ctaid.z()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
2016-05-27 01:02:56 +08:00
|
|
|
define ptx_device i32 @test_ctaid_x() {
|
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %ctaid.x;
|
2016-07-08 00:40:17 +08:00
|
|
|
; RANGE_30: call i32 @llvm.nvvm.read.ptx.sreg.ctaid.x(), !range ![[GRID_IDX_X:[0-9]+]]
|
|
|
|
; RANGE_20: call i32 @llvm.nvvm.read.ptx.sreg.ctaid.x(), !range ![[GRID_IDX_YZ]]
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.ctaid.x()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
2016-05-27 01:02:56 +08:00
|
|
|
define ptx_device i32 @test_ctaid_w() {
|
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %ctaid.w;
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.ctaid.w()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_nctaid_y() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %nctaid.y;
|
2016-07-08 00:40:17 +08:00
|
|
|
; RANGE: call i32 @llvm.nvvm.read.ptx.sreg.nctaid.y(), !range ![[GRID_SIZE_YZ:[0-9]+]]
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.nctaid.y()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_nctaid_z() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %nctaid.z;
|
2016-07-08 00:40:17 +08:00
|
|
|
; RANGE: call i32 @llvm.nvvm.read.ptx.sreg.nctaid.z(), !range ![[GRID_SIZE_YZ]]
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.nctaid.z()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
2016-05-27 01:02:56 +08:00
|
|
|
define ptx_device i32 @test_nctaid_x() {
|
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %nctaid.x;
|
2016-07-08 00:40:17 +08:00
|
|
|
; RANGE_30: call i32 @llvm.nvvm.read.ptx.sreg.nctaid.x(), !range ![[GRID_SIZE_X:[0-9]+]]
|
|
|
|
; RANGE_20: call i32 @llvm.nvvm.read.ptx.sreg.nctaid.x(), !range ![[GRID_SIZE_YZ]]
|
2016-05-27 01:02:56 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.nctaid.x()
|
2016-05-27 01:02:56 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
2016-12-22 08:51:59 +08:00
|
|
|
define ptx_device i32 @test_already_has_range_md() {
|
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %nctaid.x;
|
|
|
|
; RANGE: call i32 @llvm.nvvm.read.ptx.sreg.nctaid.x(), !range ![[ALREADY:[0-9]+]]
|
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.nctaid.x(), !range !0
|
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
2016-05-27 01:02:56 +08:00
|
|
|
|
2012-05-05 04:18:50 +08:00
|
|
|
define ptx_device i32 @test_nctaid_w() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %nctaid.w;
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.nctaid.w()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_smid() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %smid;
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.smid()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_nsmid() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %nsmid;
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.nsmid()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_gridid() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %gridid;
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.gridid()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_lanemask_eq() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %lanemask_eq;
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.lanemask.eq()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_lanemask_le() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %lanemask_le;
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.lanemask.le()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_lanemask_lt() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %lanemask_lt;
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.lanemask.lt()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_lanemask_ge() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %lanemask_ge;
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.lanemask.ge()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_lanemask_gt() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %lanemask_gt;
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.lanemask.gt()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_clock() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %clock;
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.clock()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i64 @test_clock64() {
|
2014-07-17 00:26:58 +08:00
|
|
|
; CHECK: mov.u64 %rd{{[0-9]+}}, %clock64;
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i64 @llvm.nvvm.read.ptx.sreg.clock64()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i64 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_pm0() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %pm0;
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.pm0()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_pm1() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %pm1;
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.pm1()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_pm2() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %pm2;
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.pm2()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device i32 @test_pm3() {
|
2013-05-31 20:14:49 +08:00
|
|
|
; CHECK: mov.u32 %r{{[0-9]+}}, %pm3;
|
2012-05-05 04:18:50 +08:00
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
%x = call i32 @llvm.nvvm.read.ptx.sreg.pm3()
|
2012-05-05 04:18:50 +08:00
|
|
|
ret i32 %x
|
|
|
|
}
|
|
|
|
|
|
|
|
define ptx_device void @test_bar_sync() {
|
|
|
|
; CHECK: bar.sync 0
|
|
|
|
; CHECK: ret;
|
2016-07-08 00:40:17 +08:00
|
|
|
call void @llvm.nvvm.bar.sync(i32 0)
|
2012-05-05 04:18:50 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2016-07-08 00:40:17 +08:00
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.tid.x()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.tid.y()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.tid.z()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.tid.w()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.ntid.x()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.ntid.y()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.ntid.z()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.ntid.w()
|
2012-05-05 04:18:50 +08:00
|
|
|
|
2016-05-27 01:02:56 +08:00
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.warpsize()
|
2016-07-08 00:40:17 +08:00
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.laneid()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.warpid()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.nwarpid()
|
|
|
|
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.ctaid.x()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.ctaid.y()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.ctaid.z()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.ctaid.w()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.nctaid.x()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.nctaid.y()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.nctaid.z()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.nctaid.w()
|
|
|
|
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.smid()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.nsmid()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.gridid()
|
|
|
|
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.lanemask.eq()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.lanemask.le()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.lanemask.lt()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.lanemask.ge()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.lanemask.gt()
|
|
|
|
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.clock()
|
|
|
|
declare i64 @llvm.nvvm.read.ptx.sreg.clock64()
|
|
|
|
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.pm0()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.pm1()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.pm2()
|
|
|
|
declare i32 @llvm.nvvm.read.ptx.sreg.pm3()
|
|
|
|
|
|
|
|
declare void @llvm.nvvm.bar.sync(i32 %i)
|
2016-05-27 01:02:56 +08:00
|
|
|
|
2016-12-22 08:51:59 +08:00
|
|
|
!0 = !{i32 0, i32 19}
|
|
|
|
; RANGE-DAG: ![[ALREADY]] = !{i32 0, i32 19}
|
|
|
|
; RANGE-DAG: ![[BLK_IDX_XY]] = !{i32 0, i32 1024}
|
2016-05-27 01:02:56 +08:00
|
|
|
; RANGE-DAG: ![[BLK_IDX_XY]] = !{i32 0, i32 1024}
|
|
|
|
; RANGE-DAG: ![[BLK_IDX_Z]] = !{i32 0, i32 64}
|
|
|
|
; RANGE-DAG: ![[BLK_SIZE_XY]] = !{i32 1, i32 1025}
|
|
|
|
; RANGE-DAG: ![[BLK_SIZE_Z]] = !{i32 1, i32 65}
|
|
|
|
; RANGE-DAG: ![[LANEID]] = !{i32 0, i32 32}
|
|
|
|
; RANGE-DAG: ![[WARPSIZE]] = !{i32 32, i32 33}
|
|
|
|
; RANGE_30-DAG: ![[GRID_IDX_X]] = !{i32 0, i32 2147483647}
|
|
|
|
; RANGE-DAG: ![[GRID_IDX_YZ]] = !{i32 0, i32 65535}
|
|
|
|
; RANGE_30-DAG: ![[GRID_SIZE_X]] = !{i32 1, i32 -2147483648}
|
|
|
|
; RANGE-DAG: ![[GRID_SIZE_YZ]] = !{i32 1, i32 65536}
|