]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blob - test/CodeGen/NVPTX/annotations.ll
IR: Make metadata typeless in assembly
[opencl/llvm.git] / test / CodeGen / NVPTX / annotations.ll
1 ; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
2 ; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 | FileCheck %s
5 @texture = internal addrspace(1) global i64 0, align 8
6 ; CHECK: .global .texref texture
7 @surface = internal addrspace(1) global i64 0, align 8
8 ; CHECK: .global .surfref surface
11 ; CHECK: .entry kernel_func_maxntid
12 define void @kernel_func_maxntid(float* %a) {
13 ; CHECK: .maxntid 10, 20, 30
14 ; CHECK: ret
15   ret void
16 }
18 ; CHECK: .entry kernel_func_reqntid
19 define void @kernel_func_reqntid(float* %a) {
20 ; CHECK: .reqntid 11, 22, 33
21 ; CHECK: ret
22   ret void
23 }
25 ; CHECK: .entry kernel_func_minctasm
26 define void @kernel_func_minctasm(float* %a) {
27 ; CHECK: .minnctapersm 42
28 ; CHECK: ret
29   ret void
30 }
34 !nvvm.annotations = !{!1, !2, !3, !4, !5, !6, !7, !8}
36 !1 = !{void (float*)* @kernel_func_maxntid, !"kernel", i32 1}
37 !2 = !{void (float*)* @kernel_func_maxntid, !"maxntidx", i32 10, !"maxntidy", i32 20, !"maxntidz", i32 30}
39 !3 = !{void (float*)* @kernel_func_reqntid, !"kernel", i32 1}
40 !4 = !{void (float*)* @kernel_func_reqntid, !"reqntidx", i32 11, !"reqntidy", i32 22, !"reqntidz", i32 33}
42 !5 = !{void (float*)* @kernel_func_minctasm, !"kernel", i32 1}
43 !6 = !{void (float*)* @kernel_func_minctasm, !"minctasm", i32 42}
45 !7 = !{i64 addrspace(1)* @texture, !"texture", i32 1}
46 !8 = !{i64 addrspace(1)* @surface, !"surface", i32 1}