brintos

brintos / llvm-project-archived public Read only

0
0
Text · 11.7 KiB · fbb25ff Raw
282 lines · plain
1# clang++ -g -gdwarf-5 -emit-llvm -S helper.cpp2# llc -O0 -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	pushq	%rbp24	.cfi_def_cfa_offset 1625	.cfi_offset %rbp, -1626	movq	%rsp, %rbp27	.cfi_def_cfa_register %rbp28	movl	%edi, -4(%rbp)29	movl	%esi, -8(%rbp)30.Ltmp0:31	.loc	0 5 7 prologue_end              # helper.cpp:5:732	movl	-4(%rbp), %eax33	.loc	0 5 4 is_stmt 0                 # helper.cpp:5:434	addl	z, %eax35	movl	%eax, z36	.loc	0 6 7 is_stmt 1                 # helper.cpp:6:737	movl	-8(%rbp), %eax38	.loc	0 6 4 is_stmt 0                 # helper.cpp:6:439	addl	d, %eax40	movl	%eax, d41	.loc	0 7 9 is_stmt 1                 # helper.cpp:7:942	movl	z, %eax43	.loc	0 7 11 is_stmt 0                # helper.cpp:7:1144	imull	d, %eax45	.loc	0 7 2                           # helper.cpp:7:246	popq	%rbp47	.cfi_def_cfa %rsp, 848	retq49.Ltmp1:50.Lfunc_end0:51	.size	_Z6helperii, .Lfunc_end0-_Z6helperii52	.cfi_endproc53                                        # -- End function54	.type	z,@object                       # @z55	.bss56	.globl	z57	.p2align	258z:59	.long	0                               # 0x060	.size	z, 461 62	.type	d,@object                       # @d63	.globl	d64	.p2align	265d:66	.long	0                               # 0x067	.size	d, 468 69	.section	.debug_abbrev,"",@progbits70	.byte	1                               # Abbreviation Code71	.byte	17                              # DW_TAG_compile_unit72	.byte	1                               # DW_CHILDREN_yes73	.byte	37                              # DW_AT_producer74	.byte	37                              # DW_FORM_strx175	.byte	19                              # DW_AT_language76	.byte	5                               # DW_FORM_data277	.byte	3                               # DW_AT_name78	.byte	37                              # DW_FORM_strx179	.byte	114                             # DW_AT_str_offsets_base80	.byte	23                              # DW_FORM_sec_offset81	.byte	16                              # DW_AT_stmt_list82	.byte	23                              # DW_FORM_sec_offset83	.byte	27                              # DW_AT_comp_dir84	.byte	37                              # DW_FORM_strx185	.byte	17                              # DW_AT_low_pc86	.byte	27                              # DW_FORM_addrx87	.byte	18                              # DW_AT_high_pc88	.byte	6                               # DW_FORM_data489	.byte	115                             # DW_AT_addr_base90	.byte	23                              # DW_FORM_sec_offset91	.byte	0                               # EOM(1)92	.byte	0                               # EOM(2)93	.byte	2                               # Abbreviation Code94	.byte	52                              # DW_TAG_variable95	.byte	0                               # DW_CHILDREN_no96	.byte	3                               # DW_AT_name97	.byte	37                              # DW_FORM_strx198	.byte	73                              # DW_AT_type99	.byte	19                              # DW_FORM_ref4100	.byte	63                              # DW_AT_external101	.byte	25                              # DW_FORM_flag_present102	.byte	58                              # DW_AT_decl_file103	.byte	11                              # DW_FORM_data1104	.byte	59                              # DW_AT_decl_line105	.byte	11                              # DW_FORM_data1106	.byte	2                               # DW_AT_location107	.byte	24                              # DW_FORM_exprloc108	.byte	0                               # EOM(1)109	.byte	0                               # EOM(2)110	.byte	3                               # Abbreviation Code111	.byte	36                              # DW_TAG_base_type112	.byte	0                               # DW_CHILDREN_no113	.byte	3                               # DW_AT_name114	.byte	37                              # DW_FORM_strx1115	.byte	62                              # DW_AT_encoding116	.byte	11                              # DW_FORM_data1117	.byte	11                              # DW_AT_byte_size118	.byte	11                              # DW_FORM_data1119	.byte	0                               # EOM(1)120	.byte	0                               # EOM(2)121	.byte	4                               # Abbreviation Code122	.byte	46                              # DW_TAG_subprogram123	.byte	1                               # DW_CHILDREN_yes124	.byte	17                              # DW_AT_low_pc125	.byte	27                              # DW_FORM_addrx126	.byte	18                              # DW_AT_high_pc127	.byte	6                               # DW_FORM_data4128	.byte	64                              # DW_AT_frame_base129	.byte	24                              # DW_FORM_exprloc130	.byte	110                             # DW_AT_linkage_name131	.byte	37                              # DW_FORM_strx1132	.byte	3                               # DW_AT_name133	.byte	37                              # DW_FORM_strx1134	.byte	58                              # DW_AT_decl_file135	.byte	11                              # DW_FORM_data1136	.byte	59                              # DW_AT_decl_line137	.byte	11                              # DW_FORM_data1138	.byte	73                              # DW_AT_type139	.byte	19                              # DW_FORM_ref4140	.byte	63                              # DW_AT_external141	.byte	25                              # DW_FORM_flag_present142	.byte	0                               # EOM(1)143	.byte	0                               # EOM(2)144	.byte	5                               # Abbreviation Code145	.byte	5                               # DW_TAG_formal_parameter146	.byte	0                               # DW_CHILDREN_no147	.byte	2                               # DW_AT_location148	.byte	24                              # DW_FORM_exprloc149	.byte	3                               # DW_AT_name150	.byte	37                              # DW_FORM_strx1151	.byte	58                              # DW_AT_decl_file152	.byte	11                              # DW_FORM_data1153	.byte	59                              # DW_AT_decl_line154	.byte	11                              # DW_FORM_data1155	.byte	73                              # DW_AT_type156	.byte	19                              # DW_FORM_ref4157	.byte	0                               # EOM(1)158	.byte	0                               # EOM(2)159	.byte	0                               # EOM(3)160	.section	.debug_info,"",@progbits161.Lcu_begin0:162	.long	.Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit163.Ldebug_info_start0:164	.short	5                               # DWARF version number165	.byte	1                               # DWARF Unit Type166	.byte	8                               # Address Size (in bytes)167	.long	.debug_abbrev                   # Offset Into Abbrev. Section168	.byte	1                               # Abbrev [1] 0xc:0x59 DW_TAG_compile_unit169	.byte	0                               # DW_AT_producer170	.short	33                              # DW_AT_language171	.byte	1                               # DW_AT_name172	.long	.Lstr_offsets_base0             # DW_AT_str_offsets_base173	.long	.Lline_table_start0             # DW_AT_stmt_list174	.byte	2                               # DW_AT_comp_dir175	.byte	2                               # DW_AT_low_pc176	.long	.Lfunc_end0-.Lfunc_begin0       # DW_AT_high_pc177	.long	.Laddr_table_base0              # DW_AT_addr_base178	.byte	2                               # Abbrev [2] 0x23:0xb DW_TAG_variable179	.byte	3                               # DW_AT_name180	.long	46                              # DW_AT_type181                                        # DW_AT_external182	.byte	0                               # DW_AT_decl_file183	.byte	1                               # DW_AT_decl_line184	.byte	2                               # DW_AT_location185	.byte	161186	.byte	0187	.byte	3                               # Abbrev [3] 0x2e:0x4 DW_TAG_base_type188	.byte	4                               # DW_AT_name189	.byte	5                               # DW_AT_encoding190	.byte	4                               # DW_AT_byte_size191	.byte	2                               # Abbrev [2] 0x32:0xb DW_TAG_variable192	.byte	5                               # DW_AT_name193	.long	46                              # DW_AT_type194                                        # DW_AT_external195	.byte	0                               # DW_AT_decl_file196	.byte	2                               # DW_AT_decl_line197	.byte	2                               # DW_AT_location198	.byte	161199	.byte	1200	.byte	4                               # Abbrev [4] 0x3d:0x27 DW_TAG_subprogram201	.byte	2                               # DW_AT_low_pc202	.long	.Lfunc_end0-.Lfunc_begin0       # DW_AT_high_pc203	.byte	1                               # DW_AT_frame_base204	.byte	86205	.byte	6                               # DW_AT_linkage_name206	.byte	7                               # DW_AT_name207	.byte	0                               # DW_AT_decl_file208	.byte	4                               # DW_AT_decl_line209	.long	46                              # DW_AT_type210                                        # DW_AT_external211	.byte	5                               # Abbrev [5] 0x4d:0xb DW_TAG_formal_parameter212	.byte	2                               # DW_AT_location213	.byte	145214	.byte	124215	.byte	8                               # DW_AT_name216	.byte	0                               # DW_AT_decl_file217	.byte	4                               # DW_AT_decl_line218	.long	46                              # DW_AT_type219	.byte	5                               # Abbrev [5] 0x58:0xb DW_TAG_formal_parameter220	.byte	2                               # DW_AT_location221	.byte	145222	.byte	120223	.byte	9                               # DW_AT_name224	.byte	0                               # DW_AT_decl_file225	.byte	4                               # DW_AT_decl_line226	.long	46                              # DW_AT_type227	.byte	0                               # End Of Children Mark228	.byte	0                               # End Of Children Mark229.Ldebug_info_end0:230	.section	.debug_str_offsets,"",@progbits231	.long	44                              # Length of String Offsets Set232	.short	5233	.short	0234.Lstr_offsets_base0:235	.section	.debug_str,"MS",@progbits,1236.Linfo_string0:237	.asciz	"clang version 15.0.0"          # string offset=0238.Linfo_string1:239	.asciz	"helper.cpp"                    # string offset=21240.Linfo_string2:241	.asciz	"."                             # string offset=32242.Linfo_string3:243	.asciz	"z"                             # string offset=34244.Linfo_string4:245	.asciz	"int"                           # string offset=36246.Linfo_string5:247	.asciz	"d"                             # string offset=40248.Linfo_string6:249	.asciz	"_Z6helperii"                   # string offset=42250.Linfo_string7:251	.asciz	"helper"                        # string offset=54252.Linfo_string8:253	.asciz	"z_"                            # string offset=61254.Linfo_string9:255	.asciz	"d_"                            # string offset=64256	.section	.debug_str_offsets,"",@progbits257	.long	.Linfo_string0258	.long	.Linfo_string1259	.long	.Linfo_string2260	.long	.Linfo_string3261	.long	.Linfo_string4262	.long	.Linfo_string5263	.long	.Linfo_string6264	.long	.Linfo_string7265	.long	.Linfo_string8266	.long	.Linfo_string9267	.section	.debug_addr,"",@progbits268	.long	.Ldebug_addr_end0-.Ldebug_addr_start0 # Length of contribution269.Ldebug_addr_start0:270	.short	5                               # DWARF version number271	.byte	8                               # Address size272	.byte	0                               # Segment selector size273.Laddr_table_base0:274	.quad	z275	.quad	d276	.quad	.Lfunc_begin0277.Ldebug_addr_end0:278	.ident	"clang version 15.0.0"279	.section	".note.GNU-stack","",@progbits280	.section	.debug_line,"",@progbits281.Lline_table_start0:282