Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/test/SingleOpLine.ll

raw
1 ; Source:
2 ; __kernel void test_kernel() { }
3
4 ; Command:
5 ; clang -cc1 -triple spir -O0 -debug-info-kind=line-tables-only -emit-llvm -o /tmp/SingleOpLine.ll /tmp/SingleOpLine.cl
6
7 ; RUN: llvm-as %s -o %t.bc
8 ; RUN: llvm-spirv %t.bc -spirv-text -o - | FileCheck %s
9
10 ; ModuleID = '/tmp/SingleOpLine.cl'
11 source_filename = "/tmp/SingleOpLine.cl"
12 target datalayout = "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
13 target triple = "spir"
14
15 ; Function Attrs: convergent noinline nounwind optnone
16 define spir_kernel void @test_kernel() #0 !dbg !8 !kernel_arg_addr_space !2 !kernel_arg_access_qual !2 !kernel_arg_type !2 !kernel_arg_base_type !2 !kernel_arg_type_qual !2 !kernel_arg_host_accessible !2 {
17 entry:
18 ; CHECK: Line
19 ret void, !dbg !11
20 }
21
22 attributes #0 = { convergent noinline nounwind optnone "correctly-rounded-divide-sqrt-fp-math"="false" "denorms-are-zero"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "uniform-work-group-size"="true" "unsafe-fp-math"="false" "use-soft-float"="false" }
23
24 !llvm.dbg.cu = !{!0}
25 !llvm.module.flags = !{!3, !4}
26 !opencl.enable.FP_CONTRACT = !{}
27 !opencl.ocl.version = !{!5}
28 !opencl.spir.version = !{!6}
29 !opencl.used.extensions = !{!2}
30 !opencl.used.optional.core.features = !{!2}
31 !opencl.compiler.options = !{!2}
32 !llvm.ident = !{!7}
33
34 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 8.0.0 (cfe/trunk)", isOptimized: false, runtimeVersion: 0, emissionKind: LineTablesOnly, enums: !2, nameTableKind: None)
35 !1 = !DIFile(filename: "/tmp/<stdin>", directory: "/tmp")
36 !2 = !{}
37 !3 = !{i32 2, !"Debug Info Version", i32 3}
38 !4 = !{i32 1, !"wchar_size", i32 4}
39 !5 = !{i32 1, i32 0}
40 !6 = !{i32 1, i32 2}
41 !7 = !{!"clang version 8.0.0 (cfe/trunk)"}
42 !8 = distinct !DISubprogram(name: "test_kernel", scope: !9, file: !9, line: 1, type: !10, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped, isOptimized: false, unit: !0, retainedNodes: !2)
43 !9 = !DIFile(filename: "/tmp/SingleOpLine.cl", directory: "/tmp")
44 !10 = !DISubroutineType(types: !2)
45 !11 = !DILocation(line: 1, scope: !8)