1 # clang++ -g -gdwarf-4 -emit-llvm -S main.cpp
2 # llc -O0 -mtriple=x86_64-unknown-linux-gnu main.ll
3 # void use(int * x, int * y) {
8 # int helper(int z_, int d_);
11 # int main(int argc, char *argv[]) {
15 # return helper(x, y);
20 .file 1 "." "main.cpp"
21 .globl _Z3usePiS_ # -- Begin function _Z3usePiS_
23 .type _Z3usePiS_,@function
24 _Z3usePiS_
: # @_Z3usePiS_
26 .loc 1 1 0 # main.cpp:1:0
30 .cfi_def_cfa_offset 16
33 .cfi_def_cfa_register %rbp
37 .loc 1 2 2 prologue_end # main.cpp:2:2
39 .loc 1 2 4 is_stmt 0 # main.cpp:2:4
43 .loc 1 3 2 is_stmt 1 # main.cpp:3:2
45 .loc 1 3 4 is_stmt 0 # main.cpp:3:4
49 .loc 1 4 1 is_stmt 1 # main.cpp:4:1
55 .size _Z3usePiS_, .Lfunc_end0-_Z3usePiS_
58 .globl main # -- Begin function main
63 .loc 1 9 0 # main.cpp:9:0
67 .cfi_def_cfa_offset 16
70 .cfi_def_cfa_register %rbp
76 .loc 1 10 8 prologue_end # main.cpp:10:8
78 .loc 1 10 6 is_stmt 0 # main.cpp:10:6
80 .loc 1 11 8 is_stmt 1 # main.cpp:11:8
82 .loc 1 11 13 is_stmt 0 # main.cpp:11:13
84 .loc 1 11 6 # main.cpp:11:6
86 .loc 1 12 4 is_stmt 1 # main.cpp:12:4
90 .loc 1 13 18 # main.cpp:13:18
92 .loc 1 13 21 is_stmt 0 # main.cpp:13:21
94 .loc 1 13 11 # main.cpp:13:11
96 .loc 1 13 4 # main.cpp:13:4
103 .size main, .Lfunc_end1-main
122 .section .debug_abbrev,"",@progbits
123 .byte 1 # Abbreviation Code
124 .byte 17 # DW_TAG_compile_unit
125 .byte 0 # DW_CHILDREN_no
126 .byte 16 # DW_AT_stmt_list
127 .byte 23 # DW_FORM_sec_offset
128 .byte 27 # DW_AT_comp_dir
129 .byte 14 # DW_FORM_strp
130 .ascii "\260B" # DW_AT_GNU_dwo_name
131 .byte 14 # DW_FORM_strp
132 .ascii "\261B" # DW_AT_GNU_dwo_id
133 .byte 7 # DW_FORM_data8
134 .byte 17 # DW_AT_low_pc
135 .byte 1 # DW_FORM_addr
136 .byte 18 # DW_AT_high_pc
137 .byte 6 # DW_FORM_data4
138 .ascii "\263B" # DW_AT_GNU_addr_base
139 .byte 23 # DW_FORM_sec_offset
143 .section .debug_info,"",@progbits
145 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
147 .short 4 # DWARF version number
148 .long .debug_abbrev # Offset Into Abbrev. Section
149 .byte 8 # Address Size (in bytes)
150 .byte 1 # Abbrev [1] 0xb:0x25 DW_TAG_compile_unit
151 .long .Lline_table_start0 # DW_AT_stmt_list
152 .long .Lskel_string0 # DW_AT_comp_dir
153 .long .Lskel_string1 # DW_AT_GNU_dwo_name
154 .quad 4587139501222431648 # DW_AT_GNU_dwo_id
155 .quad .Lfunc_begin0 # DW_AT_low_pc
156 .long .Lfunc_end1-.Lfunc_begin0 # DW_AT_high_pc
157 .long .Laddr_table_base0 # DW_AT_GNU_addr_base
159 .section .debug_str,"MS",@progbits,1
161 .asciz "." # string offset=0
163 .asciz "main.dwo" # string offset=2
164 .section .debug_str.dwo,"eMS",@progbits,1
166 .asciz "x" # string offset=0
168 .asciz "int" # string offset=2
170 .asciz "y" # string offset=6
172 .asciz "_Z3usePiS_" # string offset=8
174 .asciz "use" # string offset=19
176 .asciz "main" # string offset=23
178 .asciz "argc" # string offset=28
180 .asciz "argv" # string offset=33
182 .asciz "char" # string offset=38
184 .asciz "clang version 15.0.0" # string offset=43
186 .asciz "main.cpp" # string offset=64
188 .asciz "main.dwo" # string offset=73
189 .section .debug_str_offsets.dwo,"e",@progbits
202 .section .debug_info.dwo,"e",@progbits
203 .long .Ldebug_info_dwo_end0-.Ldebug_info_dwo_start0 # Length of Unit
204 .Ldebug_info_dwo_start0:
205 .short 4 # DWARF version number
206 .long 0 # Offset Into Abbrev. Section
207 .byte 8 # Address Size (in bytes)
208 .byte 1 # Abbrev [1] 0xb:0x85 DW_TAG_compile_unit
209 .byte 9 # DW_AT_producer
210 .short 33 # DW_AT_language
211 .byte 10 # DW_AT_name
212 .byte 11 # DW_AT_GNU_dwo_name
213 .quad 4587139501222431648 # DW_AT_GNU_dwo_id
214 .byte 2 # Abbrev [2] 0x19:0xb DW_TAG_variable
216 .long 36 # DW_AT_type
218 .byte 1 # DW_AT_decl_file
219 .byte 7 # DW_AT_decl_line
220 .byte 2 # DW_AT_location
223 .byte 3 # Abbrev [3] 0x24:0x4 DW_TAG_base_type
225 .byte 5 # DW_AT_encoding
226 .byte 4 # DW_AT_byte_size
227 .byte 2 # Abbrev [2] 0x28:0xb DW_TAG_variable
229 .long 36 # DW_AT_type
231 .byte 1 # DW_AT_decl_file
232 .byte 8 # DW_AT_decl_line
233 .byte 2 # DW_AT_location
236 .byte 4 # Abbrev [4] 0x33:0x23 DW_TAG_subprogram
237 .byte 2 # DW_AT_low_pc
238 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
239 .byte 1 # DW_AT_frame_base
241 .byte 3 # DW_AT_linkage_name
243 .byte 1 # DW_AT_decl_file
244 .byte 1 # DW_AT_decl_line
246 .byte 5 # Abbrev [5] 0x3f:0xb DW_TAG_formal_parameter
247 .byte 2 # DW_AT_location
251 .byte 1 # DW_AT_decl_file
252 .byte 1 # DW_AT_decl_line
253 .long 124 # DW_AT_type
254 .byte 5 # Abbrev [5] 0x4a:0xb DW_TAG_formal_parameter
255 .byte 2 # DW_AT_location
259 .byte 1 # DW_AT_decl_file
260 .byte 1 # DW_AT_decl_line
261 .long 124 # DW_AT_type
262 .byte 0 # End Of Children Mark
263 .byte 6 # Abbrev [6] 0x56:0x26 DW_TAG_subprogram
264 .byte 3 # DW_AT_low_pc
265 .long .Lfunc_end1-.Lfunc_begin1 # DW_AT_high_pc
266 .byte 1 # DW_AT_frame_base
269 .byte 1 # DW_AT_decl_file
270 .byte 9 # DW_AT_decl_line
271 .long 36 # DW_AT_type
273 .byte 5 # Abbrev [5] 0x65:0xb DW_TAG_formal_parameter
274 .byte 2 # DW_AT_location
278 .byte 1 # DW_AT_decl_file
279 .byte 9 # DW_AT_decl_line
280 .long 36 # DW_AT_type
281 .byte 5 # Abbrev [5] 0x70:0xb DW_TAG_formal_parameter
282 .byte 2 # DW_AT_location
286 .byte 1 # DW_AT_decl_file
287 .byte 9 # DW_AT_decl_line
288 .long 129 # DW_AT_type
289 .byte 0 # End Of Children Mark
290 .byte 7 # Abbrev [7] 0x7c:0x5 DW_TAG_pointer_type
291 .long 36 # DW_AT_type
292 .byte 7 # Abbrev [7] 0x81:0x5 DW_TAG_pointer_type
293 .long 134 # DW_AT_type
294 .byte 7 # Abbrev [7] 0x86:0x5 DW_TAG_pointer_type
295 .long 139 # DW_AT_type
296 .byte 3 # Abbrev [3] 0x8b:0x4 DW_TAG_base_type
298 .byte 6 # DW_AT_encoding
299 .byte 1 # DW_AT_byte_size
300 .byte 0 # End Of Children Mark
301 .Ldebug_info_dwo_end0:
302 .section .debug_abbrev.dwo,"e",@progbits
303 .byte 1 # Abbreviation Code
304 .byte 17 # DW_TAG_compile_unit
305 .byte 1 # DW_CHILDREN_yes
306 .byte 37 # DW_AT_producer
307 .ascii "\202>" # DW_FORM_GNU_str_index
308 .byte 19 # DW_AT_language
309 .byte 5 # DW_FORM_data2
311 .ascii "\202>" # DW_FORM_GNU_str_index
312 .ascii "\260B" # DW_AT_GNU_dwo_name
313 .ascii "\202>" # DW_FORM_GNU_str_index
314 .ascii "\261B" # DW_AT_GNU_dwo_id
315 .byte 7 # DW_FORM_data8
318 .byte 2 # Abbreviation Code
319 .byte 52 # DW_TAG_variable
320 .byte 0 # DW_CHILDREN_no
322 .ascii "\202>" # DW_FORM_GNU_str_index
323 .byte 73 # DW_AT_type
324 .byte 19 # DW_FORM_ref4
325 .byte 63 # DW_AT_external
326 .byte 25 # DW_FORM_flag_present
327 .byte 58 # DW_AT_decl_file
328 .byte 11 # DW_FORM_data1
329 .byte 59 # DW_AT_decl_line
330 .byte 11 # DW_FORM_data1
331 .byte 2 # DW_AT_location
332 .byte 24 # DW_FORM_exprloc
335 .byte 3 # Abbreviation Code
336 .byte 36 # DW_TAG_base_type
337 .byte 0 # DW_CHILDREN_no
339 .ascii "\202>" # DW_FORM_GNU_str_index
340 .byte 62 # DW_AT_encoding
341 .byte 11 # DW_FORM_data1
342 .byte 11 # DW_AT_byte_size
343 .byte 11 # DW_FORM_data1
346 .byte 4 # Abbreviation Code
347 .byte 46 # DW_TAG_subprogram
348 .byte 1 # DW_CHILDREN_yes
349 .byte 17 # DW_AT_low_pc
350 .ascii "\201>" # DW_FORM_GNU_addr_index
351 .byte 18 # DW_AT_high_pc
352 .byte 6 # DW_FORM_data4
353 .byte 64 # DW_AT_frame_base
354 .byte 24 # DW_FORM_exprloc
355 .byte 110 # DW_AT_linkage_name
356 .ascii "\202>" # DW_FORM_GNU_str_index
358 .ascii "\202>" # DW_FORM_GNU_str_index
359 .byte 58 # DW_AT_decl_file
360 .byte 11 # DW_FORM_data1
361 .byte 59 # DW_AT_decl_line
362 .byte 11 # DW_FORM_data1
363 .byte 63 # DW_AT_external
364 .byte 25 # DW_FORM_flag_present
367 .byte 5 # Abbreviation Code
368 .byte 5 # DW_TAG_formal_parameter
369 .byte 0 # DW_CHILDREN_no
370 .byte 2 # DW_AT_location
371 .byte 24 # DW_FORM_exprloc
373 .ascii "\202>" # DW_FORM_GNU_str_index
374 .byte 58 # DW_AT_decl_file
375 .byte 11 # DW_FORM_data1
376 .byte 59 # DW_AT_decl_line
377 .byte 11 # DW_FORM_data1
378 .byte 73 # DW_AT_type
379 .byte 19 # DW_FORM_ref4
382 .byte 6 # Abbreviation Code
383 .byte 46 # DW_TAG_subprogram
384 .byte 1 # DW_CHILDREN_yes
385 .byte 17 # DW_AT_low_pc
386 .ascii "\201>" # DW_FORM_GNU_addr_index
387 .byte 18 # DW_AT_high_pc
388 .byte 6 # DW_FORM_data4
389 .byte 64 # DW_AT_frame_base
390 .byte 24 # DW_FORM_exprloc
392 .ascii "\202>" # DW_FORM_GNU_str_index
393 .byte 58 # DW_AT_decl_file
394 .byte 11 # DW_FORM_data1
395 .byte 59 # DW_AT_decl_line
396 .byte 11 # DW_FORM_data1
397 .byte 73 # DW_AT_type
398 .byte 19 # DW_FORM_ref4
399 .byte 63 # DW_AT_external
400 .byte 25 # DW_FORM_flag_present
403 .byte 7 # Abbreviation Code
404 .byte 15 # DW_TAG_pointer_type
405 .byte 0 # DW_CHILDREN_no
406 .byte 73 # DW_AT_type
407 .byte 19 # DW_FORM_ref4
411 .section .debug_addr,"",@progbits
417 .ident "clang version 15.0.0"
418 .section ".note.GNU-stack","",@progbits
419 .section .debug_line,"",@progbits