1 # clang++ -g -gdwarf-5 -emit-llvm -S helper.cpp
2 # llc -O2 -mtriple=x86_64-unknown-linux-gnu helper.ll
6 # int helper(int z_, int d_) {
14 .file 0 "." "helper.cpp" md5 0xe635924a35b65444173d0c76a54b866f
15 .globl _Z6helperii # -- Begin function _Z6helperii
17 .type _Z6helperii,@function
18 _Z6helperii
: # @_Z6helperii
20 .loc 0 4 0 # helper.cpp:4:0
23 #DEBUG_VALUE: helper:z_ <- $edi
24 #DEBUG_VALUE: helper:d_ <- $esi
27 .loc 0 5 4 prologue_end # helper.cpp:5:4
30 #DEBUG_VALUE: helper:z_ <- [DW_OP_LLVM_entry_value 1] $edi
31 .loc 0 6 4 # helper.cpp:6:4
33 .loc 0 5 4 # helper.cpp:5:4
35 .loc 0 6 4 # helper.cpp:6:4
37 .loc 0 7 11 # helper.cpp:7:11
39 .loc 0 7 2 is_stmt 0 # helper.cpp:7:2
43 .size _Z6helperii, .Lfunc_end0-_Z6helperii
61 .section .debug_loclists.dwo,"e",@progbits
62 .long .Ldebug_list_header_end0-.Ldebug_list_header_start0 # Length
63 .Ldebug_list_header_start0:
65 .byte 8 # Address size
66 .byte 0 # Segment selector size
67 .long 1 # Offset entry count
68 .Lloclists_table_base0:
69 .long .Ldebug_loc0-.Lloclists_table_base0
71 .byte 1 # DW_LLE_base_addressx
72 .byte 2 # base address index
73 .byte 4 # DW_LLE_offset_pair
74 .uleb128 .Lfunc_begin0-.Lfunc_begin0 # starting offset
75 .uleb128 .Ltmp1-.Lfunc_begin0 # ending offset
76 .byte 1 # Loc expr size
77 .byte 85 # super-register DW_OP_reg5
78 .byte 4 # DW_LLE_offset_pair
79 .uleb128 .Ltmp1-.Lfunc_begin0 # starting offset
80 .uleb128 .Lfunc_end0-.Lfunc_begin0 # ending offset
81 .byte 4 # Loc expr size
82 .byte 163 # DW_OP_entry_value
84 .byte 85 # super-register DW_OP_reg5
85 .byte 159 # DW_OP_stack_value
86 .byte 0 # DW_LLE_end_of_list
87 .Ldebug_list_header_end0:
88 .section .debug_abbrev,"",@progbits
89 .byte 1 # Abbreviation Code
90 .byte 74 # DW_TAG_skeleton_unit
91 .byte 0 # DW_CHILDREN_no
92 .byte 16 # DW_AT_stmt_list
93 .byte 23 # DW_FORM_sec_offset
94 .byte 114 # DW_AT_str_offsets_base
95 .byte 23 # DW_FORM_sec_offset
96 .byte 27 # DW_AT_comp_dir
97 .byte 37 # DW_FORM_strx1
98 .byte 118 # DW_AT_dwo_name
99 .byte 37 # DW_FORM_strx1
100 .byte 17 # DW_AT_low_pc
101 .byte 27 # DW_FORM_addrx
102 .byte 18 # DW_AT_high_pc
103 .byte 6 # DW_FORM_data4
104 .byte 115 # DW_AT_addr_base
105 .byte 23 # DW_FORM_sec_offset
109 .section .debug_info,"",@progbits
111 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
113 .short 5 # DWARF version number
114 .byte 4 # DWARF Unit Type
115 .byte 8 # Address Size (in bytes)
116 .long .debug_abbrev # Offset Into Abbrev. Section
117 .quad 9211989493039430794
118 .byte 1 # Abbrev [1] 0x14:0x14 DW_TAG_skeleton_unit
119 .long .Lline_table_start0 # DW_AT_stmt_list
120 .long .Lstr_offsets_base0 # DW_AT_str_offsets_base
121 .byte 0 # DW_AT_comp_dir
122 .byte 1 # DW_AT_dwo_name
123 .byte 2 # DW_AT_low_pc
124 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
125 .long .Laddr_table_base0 # DW_AT_addr_base
127 .section .debug_str_offsets,"",@progbits
128 .long 12 # Length of String Offsets Set
132 .section .debug_str,"MS",@progbits,1
134 .asciz "." # string offset=0
136 .asciz "helper.dwo" # string offset=2
137 .section .debug_str_offsets,"",@progbits
140 .section .debug_str_offsets.dwo,"e",@progbits
141 .long 44 # Length of String Offsets Set
144 .section .debug_str.dwo,"eMS",@progbits,1
146 .asciz "z" # string offset=0
148 .asciz "int" # string offset=2
150 .asciz "d" # string offset=6
152 .asciz "_Z6helperii" # string offset=8
154 .asciz "helper" # string offset=20
156 .asciz "z_" # string offset=27
158 .asciz "d_" # string offset=30
160 .asciz "clang version 15.0.0" # string offset=33
162 .asciz "helper.cpp" # string offset=54
164 .asciz "helper.dwo" # string offset=65
165 .section .debug_str_offsets.dwo,"e",@progbits
176 .section .debug_info.dwo,"e",@progbits
177 .long .Ldebug_info_dwo_end0-.Ldebug_info_dwo_start0 # Length of Unit
178 .Ldebug_info_dwo_start0:
179 .short 5 # DWARF version number
180 .byte 5 # DWARF Unit Type
181 .byte 8 # Address Size (in bytes)
182 .long 0 # Offset Into Abbrev. Section
183 .quad 9211989493039430794
184 .byte 1 # Abbrev [1] 0x14:0x45 DW_TAG_compile_unit
185 .byte 7 # DW_AT_producer
186 .short 33 # DW_AT_language
188 .byte 9 # DW_AT_dwo_name
189 .byte 2 # Abbrev [2] 0x1a:0xb DW_TAG_variable
191 .long 37 # DW_AT_type
193 .byte 0 # DW_AT_decl_file
194 .byte 1 # DW_AT_decl_line
195 .byte 2 # DW_AT_location
198 .byte 3 # Abbrev [3] 0x25:0x4 DW_TAG_base_type
200 .byte 5 # DW_AT_encoding
201 .byte 4 # DW_AT_byte_size
202 .byte 2 # Abbrev [2] 0x29:0xb DW_TAG_variable
204 .long 37 # DW_AT_type
206 .byte 0 # DW_AT_decl_file
207 .byte 2 # DW_AT_decl_line
208 .byte 2 # DW_AT_location
211 .byte 4 # Abbrev [4] 0x34:0x24 DW_TAG_subprogram
212 .byte 2 # DW_AT_low_pc
213 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
214 .byte 1 # DW_AT_frame_base
216 # DW_AT_call_all_calls
217 .byte 3 # DW_AT_linkage_name
219 .byte 0 # DW_AT_decl_file
220 .byte 4 # DW_AT_decl_line
221 .long 37 # DW_AT_type
223 .byte 5 # Abbrev [5] 0x44:0x9 DW_TAG_formal_parameter
224 .byte 0 # DW_AT_location
226 .byte 0 # DW_AT_decl_file
227 .byte 4 # DW_AT_decl_line
228 .long 37 # DW_AT_type
229 .byte 6 # Abbrev [6] 0x4d:0xa DW_TAG_formal_parameter
230 .byte 1 # DW_AT_location
233 .byte 0 # DW_AT_decl_file
234 .byte 4 # DW_AT_decl_line
235 .long 37 # DW_AT_type
236 .byte 0 # End Of Children Mark
237 .byte 0 # End Of Children Mark
238 .Ldebug_info_dwo_end0:
239 .section .debug_abbrev.dwo,"e",@progbits
240 .byte 1 # Abbreviation Code
241 .byte 17 # DW_TAG_compile_unit
242 .byte 1 # DW_CHILDREN_yes
243 .byte 37 # DW_AT_producer
244 .byte 37 # DW_FORM_strx1
245 .byte 19 # DW_AT_language
246 .byte 5 # DW_FORM_data2
248 .byte 37 # DW_FORM_strx1
249 .byte 118 # DW_AT_dwo_name
250 .byte 37 # DW_FORM_strx1
253 .byte 2 # Abbreviation Code
254 .byte 52 # DW_TAG_variable
255 .byte 0 # DW_CHILDREN_no
257 .byte 37 # DW_FORM_strx1
258 .byte 73 # DW_AT_type
259 .byte 19 # DW_FORM_ref4
260 .byte 63 # DW_AT_external
261 .byte 25 # DW_FORM_flag_present
262 .byte 58 # DW_AT_decl_file
263 .byte 11 # DW_FORM_data1
264 .byte 59 # DW_AT_decl_line
265 .byte 11 # DW_FORM_data1
266 .byte 2 # DW_AT_location
267 .byte 24 # DW_FORM_exprloc
270 .byte 3 # Abbreviation Code
271 .byte 36 # DW_TAG_base_type
272 .byte 0 # DW_CHILDREN_no
274 .byte 37 # DW_FORM_strx1
275 .byte 62 # DW_AT_encoding
276 .byte 11 # DW_FORM_data1
277 .byte 11 # DW_AT_byte_size
278 .byte 11 # DW_FORM_data1
281 .byte 4 # Abbreviation Code
282 .byte 46 # DW_TAG_subprogram
283 .byte 1 # DW_CHILDREN_yes
284 .byte 17 # DW_AT_low_pc
285 .byte 27 # DW_FORM_addrx
286 .byte 18 # DW_AT_high_pc
287 .byte 6 # DW_FORM_data4
288 .byte 64 # DW_AT_frame_base
289 .byte 24 # DW_FORM_exprloc
290 .byte 122 # DW_AT_call_all_calls
291 .byte 25 # DW_FORM_flag_present
292 .byte 110 # DW_AT_linkage_name
293 .byte 37 # DW_FORM_strx1
295 .byte 37 # DW_FORM_strx1
296 .byte 58 # DW_AT_decl_file
297 .byte 11 # DW_FORM_data1
298 .byte 59 # DW_AT_decl_line
299 .byte 11 # DW_FORM_data1
300 .byte 73 # DW_AT_type
301 .byte 19 # DW_FORM_ref4
302 .byte 63 # DW_AT_external
303 .byte 25 # DW_FORM_flag_present
306 .byte 5 # Abbreviation Code
307 .byte 5 # DW_TAG_formal_parameter
308 .byte 0 # DW_CHILDREN_no
309 .byte 2 # DW_AT_location
310 .byte 34 # DW_FORM_loclistx
312 .byte 37 # DW_FORM_strx1
313 .byte 58 # DW_AT_decl_file
314 .byte 11 # DW_FORM_data1
315 .byte 59 # DW_AT_decl_line
316 .byte 11 # DW_FORM_data1
317 .byte 73 # DW_AT_type
318 .byte 19 # DW_FORM_ref4
321 .byte 6 # Abbreviation Code
322 .byte 5 # DW_TAG_formal_parameter
323 .byte 0 # DW_CHILDREN_no
324 .byte 2 # DW_AT_location
325 .byte 24 # DW_FORM_exprloc
327 .byte 37 # DW_FORM_strx1
328 .byte 58 # DW_AT_decl_file
329 .byte 11 # DW_FORM_data1
330 .byte 59 # DW_AT_decl_line
331 .byte 11 # DW_FORM_data1
332 .byte 73 # DW_AT_type
333 .byte 19 # DW_FORM_ref4
337 .section .debug_addr,"",@progbits
338 .long .Ldebug_addr_end0-.Ldebug_addr_start0 # Length of contribution
340 .short 5 # DWARF version number
341 .byte 8 # Address size
342 .byte 0 # Segment selector size
348 .ident "clang version 15.0.0"
349 .section ".note.GNU-stack","",@progbits
350 .section .debug_line,"",@progbits