Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/test/DebugInfo/X86/enum-fwd-decl.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 - | llvm-dis -o %t.ll
4
5 ; RUN: llc -O0 -mtriple=x86_64-apple-darwin %t.ll -o %t -filetype=obj
6 ; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s
7
8 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"
9 target triple = "spir64-unknown-unknown"
10
11 source_filename = "test/DebugInfo/X86/enum-fwd-decl.ll"
12
13 @e = global i16 0, align 2, !dbg !0
14
15 !llvm.dbg.cu = !{!4}
16 !llvm.module.flags = !{!7}
17
18 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
19 !1 = !DIGlobalVariable(name: "e", scope: null, file: !2, line: 2, type: !3, isLocal: false, isDefinition: true)
20 !2 = !DIFile(filename: "foo.cpp", directory: "/tmp")
21 !3 = !DICompositeType(tag: DW_TAG_enumeration_type, name: "E", file: !2, line: 1, size: 16, align: 16, flags: DIFlagFwdDecl)
22 !4 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !2, producer: "clang version 3.2 (trunk 165274) (llvm/trunk 165272)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !5, retainedTypes: !5, globals: !6, imports: !5)
23 !5 = !{}
24 ; CHECK: DW_TAG_enumeration_type
25 ; CHECK-NEXT: DW_AT_name
26 ; CHECK-NEXT: DW_AT_byte_size
27 ; CHECK-NEXT: DW_AT_declaration
28 !6 = !{!0}
29 !7 = !{i32 1, !"Debug Info Version", i32 3}