Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/test/DebugInfo/X86/sycl-vec-3.ll

raw
1 ; RUN: llvm-as < %s -o %t.bc
2 ; RUN: llvm-spirv %t.bc -o %t.spv
3 ; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o %t.rev.bc
4 ; RUN: llvm-dis %t.rev.bc -o - | FileCheck %s
5
6 ; RUN: llvm-spirv %t.bc -o %t.spv -spirv-debug-info-version=nonsemantic-shader-100
7 ; RUN: llvm-spirv -r %t.spv -o %t.rev.bc
8 ; RUN: llvm-dis %t.rev.bc -o - | FileCheck %s
9
10 ; RUN: llvm-spirv %t.bc -o %t.spv -spirv-debug-info-version=nonsemantic-shader-200
11 ; RUN: llvm-spirv -r %t.spv -o %t.rev.bc
12 ; RUN: llvm-dis %t.rev.bc -o - | FileCheck %s
13
14 target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64"
15 target triple = "spir64-unknown-unknown"
16
17 %"class.cl::sycl::vec" = type { <3 x i32> }
18 @vector = dso_local global %"class.cl::sycl::vec" zeroinitializer, align 16, !dbg !0
19
20 !llvm.dbg.cu = !{!9}
21 !llvm.module.flags = !{!10, !11, !12, !13, !14}
22
23 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
24 !1 = distinct !DIGlobalVariable(name: "vector", scope: null, file: !2, line: 3, type: !3, isLocal: false, isDefinition: true)
25 !2 = !DIFile(filename: "sycl-vec-3.cpp", directory: "/tmp")
26 ; CHECK: !DICompositeType(tag: DW_TAG_array_type, baseType: ![[BASE_TY:[0-9]+]],{{.*}} size: 128, flags: DIFlagVector, elements: ![[ELEMS:[0-9]+]])
27 !3 = distinct !DICompositeType(tag: DW_TAG_array_type, baseType: !6, file: !2, line: 3, size: 128, flags: DIFlagVector, elements: !4, identifier: "_ZTSN2cl4sycl3vecIiLi3EEE")
28 ; CHECK-DAG: ![[ELEMS]] = !{![[ELEMS_RANGE:[0-9]+]]}
29 !4 = !{!5}
30 ; CHECK-DAG: ![[ELEMS_RANGE]] = !DISubrange(count: 3{{.*}})
31 !5 = !DISubrange(count: 3)
32 ; CHECK-DAG: ![[BASE_TY]] = !DIBasicType(name: "int", size: 32,{{.*}} encoding: DW_ATE_signed)
33 !6 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
34 !7 = !{}
35 !8 = !{!0}
36 !9 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !2, producer: "clang version 13.0.0 (https://github.com/intel/llvm.git)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !7, retainedTypes: !7, globals: !8, imports: !7)
37 !10 = !{i32 7, !"Dwarf Version", i32 4}
38 !11 = !{i32 2, !"Debug Info Version", i32 3}
39 !12 = !{i32 1, !"wchar_size", i32 4}
40 !13 = !{i32 7, !"uwtable", i32 1}
41 !14 = !{i32 7, !"frame-pointer", i32 2}