File: DebugInfo-GV-with-DIE.spt

package info (click to toggle)
spirv-llvm-translator-14 14.0.11-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,640 kB
  • sloc: cpp: 47,664; lisp: 3,704; sh: 153; python: 43; makefile: 33
file content (51 lines) | stat: -rw-r--r-- 1,673 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
;; Ensure that reverse translation can handle an Expression in
;; a DebugGlobalVariable's Variable field.
;; This is used to preserve a DIExpressions in a DIGlobalVariableExpression.

; RUN: llvm-spirv -to-binary %s -o %t.spv
; RUN: llvm-spirv -r -o %t.rev.bc %t.spv
; RUN: llvm-dis %t.rev.bc -o %t.rev.ll
; RUN: FileCheck %s --input-file %t.rev.ll

; CHECK: ![[#]] = !DIGlobalVariableExpression(var: ![[#GV:]], expr: !DIExpression(DW_OP_constu, 1, DW_OP_stack_value))
; CHECK: ![[#GV]] = distinct !DIGlobalVariable(name: "true", scope: ![[#]], file: ![[#]], line: 3777, type: ![[#]], isLocal: true, isDefinition: true)

119734787 65536 393230 31 0 
2 Capability Addresses 
2 Capability Linkage 
2 Capability Kernel 
8 Extension "SPV_KHR_non_semantic_info" 
5 ExtInstImport 1 "OpenCL.std" 
11 ExtInstImport 2 "NonSemantic.Shader.DebugInfo.100" 
3 MemoryModel 2 2 
7 String 3 "/path/to/test.cpp" 
3 String 6 "0" 
3 String 10 "" 
4 String 16 "bool" 
4 String 23 "true" 
3 Source 0 0 
4 TypeInt 7 32 0 
4 Constant 7 8 1 
4 Constant 7 12 65536 
4 Constant 7 13 4 
4 Constant 7 14 6 
4 Constant 7 17 8 
4 Constant 7 18 2 
4 Constant 7 21 0 
4 Constant 7 25 7 
4 Constant 7 28 3777 
4 Constant 7 29 12 
2 TypeVoid 4 

6 ExtInst 4 5 2 DebugSource 3 
7 ExtInst 4 9 2 DebugBuildIdentifier 6 8 
6 ExtInst 4 11 2 DebugStoragePath 10 
9 ExtInst 4 15 2 DebugCompilationUnit 12 13 5 14 
5 ExtInst 4 19 2 DebugInfoNone 
9 ExtInst 4 20 2 DebugTypeBasic 16 17 18 19 
7 ExtInst 4 22 2 DebugTypeQualifier 20 21 
7 ExtInst 4 24 2 DebugOperation 17 8 
6 ExtInst 4 26 2 DebugOperation 25 
7 ExtInst 4 27 2 DebugExpression 24 26 
14 ExtInst 4 30 2 DebugGlobalVariable 23 22 5 28 21 15 10 27 29