summaryrefslogtreecommitdiff
path: root/tests/examplefiles/llvm-mir/llvm-mir.mir.output
blob: df67df8ba3646e87d079c401c96fa45cb475c68f (plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
'# YAML line comment' Comment
'\n\n'        Text

'--- |'       Keyword
'\n  '        Text.Whitespace
'; LLVM-IR line comment\n' Comment

'  '          Text.Whitespace
'define'      Keyword
' '           Text.Whitespace
'void'        Keyword
' '           Text.Whitespace
'@myfunction' Name.Variable.Global
'('           Punctuation
')'           Punctuation
' '           Text.Whitespace
'{'           Punctuation
' '           Text.Whitespace
'ret'         Keyword
' '           Text.Whitespace
'void'        Keyword
' '           Text.Whitespace
'}'           Punctuation
'\n'          Text.Whitespace

'...'         Keyword
'\n\n'        Text

'---'         Keyword
'\n'          Text.Whitespace

'name:'       Keyword
' myfunction' Name
'\n'          Text.Whitespace

'legalized:'  Keyword
' true'       Name.Builtin
'\n'          Text.Whitespace

'registers:'  Keyword
'\n'          Text.Whitespace

'  - { id: 0, class: gpr }' Text
'\n'          Text.Whitespace

'body: |'     Keyword
'\n  '        Text
'bb.0.named (address-taken):' Name.Label
'\n    '      Text
'liveins:'    Keyword
' '           Text
'$r0'         Literal.String.Single
', '          Text
'$r1'         Literal.String.Single
'\n    '      Text
'successors:' Keyword
' '           Text
'%bb.1.alsonamed' Name.Label
'\n\n    '    Text
'; MIR line comment' Comment
'\n    '      Text
'%0'          Name.Variable
':'           Keyword
'gpr'         Name.Variable
'('           Text
's64'         Keyword.Type
')'           Text
''            Text
' '           Text
'='           Operator
' '           Text
'COPY'        Name.Builtin
' '           Text
'$r0'         Literal.String.Single
'\n    '      Text
'%1'          Name.Variable
'('           Text
's32'         Keyword.Type
')'           Text
''            Text
' '           Text
'='           Operator
' '           Text
'COPY'        Name.Builtin
' '           Text
'$r1'         Literal.String.Single
'\n  '        Text
'bb.1.alsonamed:' Name.Label
'\n    '      Text
'successors:' Keyword
' '           Text
'%bb.2'       Name.Label
'\n\n    '    Text
'%2'          Name.Variable
'('           Text
's32'         Keyword.Type
')'           Text
''            Text
' '           Text
'='           Operator
' '           Text
'EXTRACT_SUBREG' Name.Builtin
' '           Text
'%1'          Name.Variable
'('           Text
's32'         Keyword.Type
')'           Text
''            Text
', '          Text
'%subreg.sub0' Name
'\n    '      Text
'%3'          Name.Variable
'('           Text
's32'         Keyword.Type
')'           Text
''            Text
' '           Text
'='           Operator
' '           Text
'G_ADD'       Name.Builtin
' '           Text
'%0'          Name.Variable
':'           Keyword
'gpr'         Name.Variable
'('           Text
's32'         Keyword.Type
')'           Text
''            Text
', '          Text
'%2'          Name.Variable
'('           Text
's32'         Keyword.Type
')'           Text
''            Text
' '           Text
'killed'      Keyword
'\n    '      Text
'%4'          Name.Variable
'('           Text
's32'         Keyword.Type
')'           Text
''            Text
' '           Text
'='           Operator
' '           Text
'G_CONSTANT'  Name.Builtin
' '           Text
'i32'         Keyword.Type
' '           Text.Whitespace
'1'           Literal.Number.Integer
'\n'          Text

'    '        Text
'%5'          Name.Variable
'('           Text
's32'         Keyword.Type
')'           Text
''            Text
' '           Text
'='           Operator
' '           Text
'G_FCONSTANT' Name.Builtin
' '           Text
'float '      Keyword.Type
'1.0'         Literal.Number.Float
'\n'          Text

'    '        Text
'%6'          Name.Variable
'('           Text
'p0'          Keyword.Type
')'           Text
''            Text
' '           Text
'='           Operator
' '           Text
'G_LOAD'      Name.Builtin
' '           Text
'%6'          Name.Variable
'('           Text
'p0'          Keyword.Type
')'           Text
''            Text
' '           Text
'::'          Operator
' '           Text.Whitespace
'('           Text
'load'        Keyword
' '           Text.Whitespace
'4'           Literal.Number.Integer
' '           Text.Whitespace
'from'        Keyword
' '           Text.Whitespace
'%ir.myvar'   Name
' '           Text.Whitespace
'+'           Operator
' '           Text.Whitespace
'4'           Literal.Number.Integer
')'           Text
'\n\n  '      Text
'bb.2:'       Name.Label
'\n    '      Text
'$r0'         Literal.String.Single
' '           Text
'='           Operator
' '           Text
'COPY'        Name.Builtin
' '           Text
'%3'          Name.Variable
'\n'          Text

'...'         Keyword
'\n'          Text