brintos

brintos / llvm-project-archived public Read only

0
0
Text · 15.5 KiB · 389d83c Raw
352 lines · plain
1# clang++ -g -gdwarf-5 -emit-llvm -S helper.cpp2# llc -O2 -mtriple=x86_64-unknown-linux-gnu helper.ll3# int z = 0;4# int d = 0;5#6# int helper(int z_, int d_) {7#  z += z_;8#  d += d_;9#  return z * d;10# }11 12	.text13	.file	"helper.cpp"14	.file	0 "." "helper.cpp" md5 0xe635924a35b65444173d0c76a54b866f15	.globl	_Z6helperii                     # -- Begin function _Z6helperii16	.p2align	4, 0x9017	.type	_Z6helperii,@function18_Z6helperii:                            # @_Z6helperii19.Lfunc_begin0:20	.loc	0 4 0                           # helper.cpp:4:021	.cfi_startproc22# %bb.0:                                # %entry23	#DEBUG_VALUE: helper:z_ <- $edi24	#DEBUG_VALUE: helper:d_ <- $esi25	movl	%esi, %eax26.Ltmp0:27	.loc	0 5 4 prologue_end              # helper.cpp:5:428	addl	z(%rip), %edi29.Ltmp1:30	#DEBUG_VALUE: helper:z_ <- [DW_OP_LLVM_entry_value 1] $edi31	.loc	0 6 4                           # helper.cpp:6:432	addl	d(%rip), %eax33	.loc	0 5 4                           # helper.cpp:5:434	movl	%edi, z(%rip)35	.loc	0 6 4                           # helper.cpp:6:436	movl	%eax, d(%rip)37	.loc	0 7 11                          # helper.cpp:7:1138	imull	%edi, %eax39	.loc	0 7 2 is_stmt 0                 # helper.cpp:7:240	retq41.Ltmp2:42.Lfunc_end0:43	.size	_Z6helperii, .Lfunc_end0-_Z6helperii44	.cfi_endproc45                                        # -- End function46	.type	z,@object                       # @z47	.bss48	.globl	z49	.p2align	250z:51	.long	0                               # 0x052	.size	z, 453 54	.type	d,@object                       # @d55	.globl	d56	.p2align	257d:58	.long	0                               # 0x059	.size	d, 460 61	.section	.debug_loclists.dwo,"e",@progbits62	.long	.Ldebug_list_header_end0-.Ldebug_list_header_start0 # Length63.Ldebug_list_header_start0:64	.short	5                               # Version65	.byte	8                               # Address size66	.byte	0                               # Segment selector size67	.long	1                               # Offset entry count68.Lloclists_table_base0:69	.long	.Ldebug_loc0-.Lloclists_table_base070.Ldebug_loc0:71	.byte	1                               # DW_LLE_base_addressx72	.byte	2                               #   base address index73	.byte	4                               # DW_LLE_offset_pair74	.uleb128 .Lfunc_begin0-.Lfunc_begin0    #   starting offset75	.uleb128 .Ltmp1-.Lfunc_begin0           #   ending offset76	.byte	1                               # Loc expr size77	.byte	85                              # super-register DW_OP_reg578	.byte	4                               # DW_LLE_offset_pair79	.uleb128 .Ltmp1-.Lfunc_begin0           #   starting offset80	.uleb128 .Lfunc_end0-.Lfunc_begin0      #   ending offset81	.byte	4                               # Loc expr size82	.byte	163                             # DW_OP_entry_value83	.byte	1                               # 184	.byte	85                              # super-register DW_OP_reg585	.byte	159                             # DW_OP_stack_value86	.byte	0                               # DW_LLE_end_of_list87.Ldebug_list_header_end0:88	.section	.debug_abbrev,"",@progbits89	.byte	1                               # Abbreviation Code90	.byte	74                              # DW_TAG_skeleton_unit91	.byte	0                               # DW_CHILDREN_no92	.byte	16                              # DW_AT_stmt_list93	.byte	23                              # DW_FORM_sec_offset94	.byte	114                             # DW_AT_str_offsets_base95	.byte	23                              # DW_FORM_sec_offset96	.byte	27                              # DW_AT_comp_dir97	.byte	37                              # DW_FORM_strx198	.byte	118                             # DW_AT_dwo_name99	.byte	37                              # DW_FORM_strx1100	.byte	17                              # DW_AT_low_pc101	.byte	27                              # DW_FORM_addrx102	.byte	18                              # DW_AT_high_pc103	.byte	6                               # DW_FORM_data4104	.byte	115                             # DW_AT_addr_base105	.byte	23                              # DW_FORM_sec_offset106	.byte	0                               # EOM(1)107	.byte	0                               # EOM(2)108	.byte	0                               # EOM(3)109	.section	.debug_info,"",@progbits110.Lcu_begin0:111	.long	.Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit112.Ldebug_info_start0:113	.short	5                               # DWARF version number114	.byte	4                               # DWARF Unit Type115	.byte	8                               # Address Size (in bytes)116	.long	.debug_abbrev                   # Offset Into Abbrev. Section117	.quad	9211989493039430794118	.byte	1                               # Abbrev [1] 0x14:0x14 DW_TAG_skeleton_unit119	.long	.Lline_table_start0             # DW_AT_stmt_list120	.long	.Lstr_offsets_base0             # DW_AT_str_offsets_base121	.byte	0                               # DW_AT_comp_dir122	.byte	1                               # DW_AT_dwo_name123	.byte	2                               # DW_AT_low_pc124	.long	.Lfunc_end0-.Lfunc_begin0       # DW_AT_high_pc125	.long	.Laddr_table_base0              # DW_AT_addr_base126.Ldebug_info_end0:127	.section	.debug_str_offsets,"",@progbits128	.long	12                              # Length of String Offsets Set129	.short	5130	.short	0131.Lstr_offsets_base0:132	.section	.debug_str,"MS",@progbits,1133.Lskel_string0:134	.asciz	"."                             # string offset=0135.Lskel_string1:136	.asciz	"helper.dwo"                    # string offset=2137	.section	.debug_str_offsets,"",@progbits138	.long	.Lskel_string0139	.long	.Lskel_string1140	.section	.debug_str_offsets.dwo,"e",@progbits141	.long	44                              # Length of String Offsets Set142	.short	5143	.short	0144	.section	.debug_str.dwo,"eMS",@progbits,1145.Linfo_string0:146	.asciz	"z"                             # string offset=0147.Linfo_string1:148	.asciz	"int"                           # string offset=2149.Linfo_string2:150	.asciz	"d"                             # string offset=6151.Linfo_string3:152	.asciz	"_Z6helperii"                   # string offset=8153.Linfo_string4:154	.asciz	"helper"                        # string offset=20155.Linfo_string5:156	.asciz	"z_"                            # string offset=27157.Linfo_string6:158	.asciz	"d_"                            # string offset=30159.Linfo_string7:160	.asciz	"clang version 15.0.0"          # string offset=33161.Linfo_string8:162	.asciz	"helper.cpp"                    # string offset=54163.Linfo_string9:164	.asciz	"helper.dwo"                    # string offset=65165	.section	.debug_str_offsets.dwo,"e",@progbits166	.long	0167	.long	2168	.long	6169	.long	8170	.long	20171	.long	27172	.long	30173	.long	33174	.long	54175	.long	65176	.section	.debug_info.dwo,"e",@progbits177	.long	.Ldebug_info_dwo_end0-.Ldebug_info_dwo_start0 # Length of Unit178.Ldebug_info_dwo_start0:179	.short	5                               # DWARF version number180	.byte	5                               # DWARF Unit Type181	.byte	8                               # Address Size (in bytes)182	.long	0                               # Offset Into Abbrev. Section183	.quad	9211989493039430794184	.byte	1                               # Abbrev [1] 0x14:0x45 DW_TAG_compile_unit185	.byte	7                               # DW_AT_producer186	.short	33                              # DW_AT_language187	.byte	8                               # DW_AT_name188	.byte	9                               # DW_AT_dwo_name189	.byte	2                               # Abbrev [2] 0x1a:0xb DW_TAG_variable190	.byte	0                               # DW_AT_name191	.long	37                              # DW_AT_type192                                        # DW_AT_external193	.byte	0                               # DW_AT_decl_file194	.byte	1                               # DW_AT_decl_line195	.byte	2                               # DW_AT_location196	.byte	161197	.byte	0198	.byte	3                               # Abbrev [3] 0x25:0x4 DW_TAG_base_type199	.byte	1                               # DW_AT_name200	.byte	5                               # DW_AT_encoding201	.byte	4                               # DW_AT_byte_size202	.byte	2                               # Abbrev [2] 0x29:0xb DW_TAG_variable203	.byte	2                               # DW_AT_name204	.long	37                              # DW_AT_type205                                        # DW_AT_external206	.byte	0                               # DW_AT_decl_file207	.byte	2                               # DW_AT_decl_line208	.byte	2                               # DW_AT_location209	.byte	161210	.byte	1211	.byte	4                               # Abbrev [4] 0x34:0x24 DW_TAG_subprogram212	.byte	2                               # DW_AT_low_pc213	.long	.Lfunc_end0-.Lfunc_begin0       # DW_AT_high_pc214	.byte	1                               # DW_AT_frame_base215	.byte	87216                                        # DW_AT_call_all_calls217	.byte	3                               # DW_AT_linkage_name218	.byte	4                               # DW_AT_name219	.byte	0                               # DW_AT_decl_file220	.byte	4                               # DW_AT_decl_line221	.long	37                              # DW_AT_type222                                        # DW_AT_external223	.byte	5                               # Abbrev [5] 0x44:0x9 DW_TAG_formal_parameter224	.byte	0                               # DW_AT_location225	.byte	5                               # DW_AT_name226	.byte	0                               # DW_AT_decl_file227	.byte	4                               # DW_AT_decl_line228	.long	37                              # DW_AT_type229	.byte	6                               # Abbrev [6] 0x4d:0xa DW_TAG_formal_parameter230	.byte	1                               # DW_AT_location231	.byte	84232	.byte	6                               # DW_AT_name233	.byte	0                               # DW_AT_decl_file234	.byte	4                               # DW_AT_decl_line235	.long	37                              # DW_AT_type236	.byte	0                               # End Of Children Mark237	.byte	0                               # End Of Children Mark238.Ldebug_info_dwo_end0:239	.section	.debug_abbrev.dwo,"e",@progbits240	.byte	1                               # Abbreviation Code241	.byte	17                              # DW_TAG_compile_unit242	.byte	1                               # DW_CHILDREN_yes243	.byte	37                              # DW_AT_producer244	.byte	37                              # DW_FORM_strx1245	.byte	19                              # DW_AT_language246	.byte	5                               # DW_FORM_data2247	.byte	3                               # DW_AT_name248	.byte	37                              # DW_FORM_strx1249	.byte	118                             # DW_AT_dwo_name250	.byte	37                              # DW_FORM_strx1251	.byte	0                               # EOM(1)252	.byte	0                               # EOM(2)253	.byte	2                               # Abbreviation Code254	.byte	52                              # DW_TAG_variable255	.byte	0                               # DW_CHILDREN_no256	.byte	3                               # DW_AT_name257	.byte	37                              # DW_FORM_strx1258	.byte	73                              # DW_AT_type259	.byte	19                              # DW_FORM_ref4260	.byte	63                              # DW_AT_external261	.byte	25                              # DW_FORM_flag_present262	.byte	58                              # DW_AT_decl_file263	.byte	11                              # DW_FORM_data1264	.byte	59                              # DW_AT_decl_line265	.byte	11                              # DW_FORM_data1266	.byte	2                               # DW_AT_location267	.byte	24                              # DW_FORM_exprloc268	.byte	0                               # EOM(1)269	.byte	0                               # EOM(2)270	.byte	3                               # Abbreviation Code271	.byte	36                              # DW_TAG_base_type272	.byte	0                               # DW_CHILDREN_no273	.byte	3                               # DW_AT_name274	.byte	37                              # DW_FORM_strx1275	.byte	62                              # DW_AT_encoding276	.byte	11                              # DW_FORM_data1277	.byte	11                              # DW_AT_byte_size278	.byte	11                              # DW_FORM_data1279	.byte	0                               # EOM(1)280	.byte	0                               # EOM(2)281	.byte	4                               # Abbreviation Code282	.byte	46                              # DW_TAG_subprogram283	.byte	1                               # DW_CHILDREN_yes284	.byte	17                              # DW_AT_low_pc285	.byte	27                              # DW_FORM_addrx286	.byte	18                              # DW_AT_high_pc287	.byte	6                               # DW_FORM_data4288	.byte	64                              # DW_AT_frame_base289	.byte	24                              # DW_FORM_exprloc290	.byte	122                             # DW_AT_call_all_calls291	.byte	25                              # DW_FORM_flag_present292	.byte	110                             # DW_AT_linkage_name293	.byte	37                              # DW_FORM_strx1294	.byte	3                               # DW_AT_name295	.byte	37                              # DW_FORM_strx1296	.byte	58                              # DW_AT_decl_file297	.byte	11                              # DW_FORM_data1298	.byte	59                              # DW_AT_decl_line299	.byte	11                              # DW_FORM_data1300	.byte	73                              # DW_AT_type301	.byte	19                              # DW_FORM_ref4302	.byte	63                              # DW_AT_external303	.byte	25                              # DW_FORM_flag_present304	.byte	0                               # EOM(1)305	.byte	0                               # EOM(2)306	.byte	5                               # Abbreviation Code307	.byte	5                               # DW_TAG_formal_parameter308	.byte	0                               # DW_CHILDREN_no309	.byte	2                               # DW_AT_location310	.byte	34                              # DW_FORM_loclistx311	.byte	3                               # DW_AT_name312	.byte	37                              # DW_FORM_strx1313	.byte	58                              # DW_AT_decl_file314	.byte	11                              # DW_FORM_data1315	.byte	59                              # DW_AT_decl_line316	.byte	11                              # DW_FORM_data1317	.byte	73                              # DW_AT_type318	.byte	19                              # DW_FORM_ref4319	.byte	0                               # EOM(1)320	.byte	0                               # EOM(2)321	.byte	6                               # Abbreviation Code322	.byte	5                               # DW_TAG_formal_parameter323	.byte	0                               # DW_CHILDREN_no324	.byte	2                               # DW_AT_location325	.byte	24                              # DW_FORM_exprloc326	.byte	3                               # DW_AT_name327	.byte	37                              # DW_FORM_strx1328	.byte	58                              # DW_AT_decl_file329	.byte	11                              # DW_FORM_data1330	.byte	59                              # DW_AT_decl_line331	.byte	11                              # DW_FORM_data1332	.byte	73                              # DW_AT_type333	.byte	19                              # DW_FORM_ref4334	.byte	0                               # EOM(1)335	.byte	0                               # EOM(2)336	.byte	0                               # EOM(3)337	.section	.debug_addr,"",@progbits338	.long	.Ldebug_addr_end0-.Ldebug_addr_start0 # Length of contribution339.Ldebug_addr_start0:340	.short	5                               # DWARF version number341	.byte	8                               # Address size342	.byte	0                               # Segment selector size343.Laddr_table_base0:344	.quad	z345	.quad	d346	.quad	.Lfunc_begin0347.Ldebug_addr_end0:348	.ident	"clang version 15.0.0"349	.section	".note.GNU-stack","",@progbits350	.section	.debug_line,"",@progbits351.Lline_table_start0:352