2009-09-09 07:54:48 +08:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-linux-gnu
|
2007-10-16 02:33:50 +08:00
|
|
|
; PR1729
|
|
|
|
|
|
|
|
%struct.CUMULATIVE_ARGS = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
|
|
|
|
%struct.VEC_edge = type { i32, i32, [1 x %struct.edge_def*] }
|
|
|
|
%struct.VEC_tree = type { i32, i32, [1 x %struct.tree_node*] }
|
|
|
|
%struct._IO_FILE = type { i32, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, %struct._IO_marker*, %struct._IO_FILE*, i32, i32, i64, i16, i8, [1 x i8], i8*, i64, i8*, i8*, i8*, i8*, i64, i32, [20 x i8] }
|
|
|
|
%struct._IO_marker = type { %struct._IO_marker*, %struct._IO_FILE*, i32 }
|
|
|
|
%struct._obstack_chunk = type { i8*, %struct._obstack_chunk*, [4 x i8] }
|
|
|
|
%struct.addr_diff_vec_flags = type <{ i8, i8, i8, i8 }>
|
|
|
|
%struct.alloc_pool_def = type { i8*, i64, i64, %struct.alloc_pool_list_def*, i64, i64, i64, %struct.alloc_pool_list_def*, i64, i64 }
|
|
|
|
%struct.alloc_pool_list_def = type { %struct.alloc_pool_list_def* }
|
|
|
|
%struct.basic_block_def = type { %struct.rtx_def*, %struct.rtx_def*, %struct.tree_node*, %struct.VEC_edge*, %struct.VEC_edge*, %struct.bitmap_head_def*, %struct.bitmap_head_def*, i8*, %struct.loop*, [2 x %struct.et_node*], %struct.basic_block_def*, %struct.basic_block_def*, %struct.reorder_block_def*, %struct.bb_ann_d*, i64, i32, i32, i32, i32 }
|
|
|
|
%struct.bb_ann_d = type opaque
|
|
|
|
%struct.bitmap_element_def = type { %struct.bitmap_element_def*, %struct.bitmap_element_def*, i32, [2 x i64] }
|
|
|
|
%struct.bitmap_head_def = type { %struct.bitmap_element_def*, %struct.bitmap_element_def*, i32, %struct.bitmap_obstack* }
|
|
|
|
%struct.bitmap_obstack = type { %struct.bitmap_element_def*, %struct.bitmap_head_def*, %struct.obstack }
|
|
|
|
%struct.cselib_val_struct = type opaque
|
|
|
|
%struct.dataflow_d = type opaque
|
|
|
|
%struct.die_struct = type opaque
|
|
|
|
%struct.edge_def = type { %struct.basic_block_def*, %struct.basic_block_def*, %struct.edge_def_insns, i8*, %struct.location_t*, i32, i32, i64, i32 }
|
|
|
|
%struct.edge_def_insns = type { %struct.rtx_def* }
|
|
|
|
%struct.edge_iterator = type { i32, %struct.VEC_edge** }
|
|
|
|
%struct.eh_status = type opaque
|
|
|
|
%struct.elt_list = type opaque
|
|
|
|
%struct.emit_status = type { i32, i32, %struct.rtx_def*, %struct.rtx_def*, %struct.sequence_stack*, i32, %struct.location_t, i32, i8*, %struct.rtx_def** }
|
|
|
|
%struct.et_node = type opaque
|
|
|
|
%struct.expr_status = type { i32, i32, i32, %struct.rtx_def*, %struct.rtx_def*, %struct.rtx_def* }
|
|
|
|
%struct.function = type { %struct.eh_status*, %struct.expr_status*, %struct.emit_status*, %struct.varasm_status*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.function*, i32, i32, i32, i32, %struct.rtx_def*, %struct.CUMULATIVE_ARGS, %struct.rtx_def*, %struct.rtx_def*, %struct.initial_value_struct*, %struct.rtx_def*, %struct.rtx_def*, %struct.rtx_def*, %struct.rtx_def*, %struct.rtx_def*, %struct.rtx_def*, i8, i32, i64, %struct.tree_node*, %struct.tree_node*, %struct.rtx_def*, %struct.varray_head_tag*, %struct.temp_slot*, i32, %struct.var_refs_queue*, i32, i32, %struct.rtvec_def*, %struct.tree_node*, i32, i32, i32, %struct.machine_function*, i32, i32, i8, i8, %struct.language_function*, %struct.rtx_def*, i32, i32, i32, i32, %struct.location_t, %struct.varray_head_tag*, %struct.tree_node*, %struct.tree_node*, i8, i8, i8 }
|
|
|
|
%struct.ht_identifier = type { i8*, i32, i32 }
|
|
|
|
%struct.initial_value_struct = type opaque
|
|
|
|
%struct.lang_decl = type opaque
|
|
|
|
%struct.lang_type = type opaque
|
|
|
|
%struct.language_function = type opaque
|
|
|
|
%struct.location_t = type { i8*, i32 }
|
|
|
|
%struct.loop = type opaque
|
|
|
|
%struct.machine_function = type { %struct.stack_local_entry*, i8*, %struct.rtx_def*, i32, i32, i32, i32, i32 }
|
|
|
|
%struct.mem_attrs = type { i64, %struct.tree_node*, %struct.rtx_def*, %struct.rtx_def*, i32 }
|
|
|
|
%struct.obstack = type { i64, %struct._obstack_chunk*, i8*, i8*, i8*, i64, i32, %struct._obstack_chunk* (i8*, i64)*, void (i8*, %struct._obstack_chunk*)*, i8*, i8 }
|
|
|
|
%struct.phi_arg_d = type { %struct.tree_node*, i8 }
|
|
|
|
%struct.ptr_info_def = type opaque
|
|
|
|
%struct.real_value = type opaque
|
|
|
|
%struct.reg_attrs = type { %struct.tree_node*, i64 }
|
|
|
|
%struct.reg_info_def = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
|
|
|
|
%struct.reorder_block_def = type { %struct.rtx_def*, %struct.rtx_def*, %struct.basic_block_def*, %struct.basic_block_def*, %struct.basic_block_def*, i32, i32, i32 }
|
|
|
|
%struct.rtunion = type { i8* }
|
|
|
|
%struct.rtvec_def = type { i32, [1 x %struct.rtx_def*] }
|
|
|
|
%struct.rtx_def = type { i16, i8, i8, %struct.u }
|
|
|
|
%struct.sequence_stack = type { %struct.rtx_def*, %struct.rtx_def*, %struct.sequence_stack* }
|
|
|
|
%struct.simple_bitmap_def = type { i32, i32, i32, [1 x i64] }
|
|
|
|
%struct.stack_local_entry = type opaque
|
|
|
|
%struct.temp_slot = type opaque
|
|
|
|
%struct.tree_binfo = type { %struct.tree_common, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.VEC_tree*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.VEC_tree }
|
|
|
|
%struct.tree_block = type { %struct.tree_common, i32, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node* }
|
|
|
|
%struct.tree_common = type { %struct.tree_node*, %struct.tree_node*, %union.tree_ann_d*, i8, i8, i8, i8, i8 }
|
|
|
|
%struct.tree_complex = type { %struct.tree_common, %struct.tree_node*, %struct.tree_node* }
|
|
|
|
%struct.tree_decl = type { %struct.tree_common, %struct.location_t, i32, %struct.tree_node*, i8, i8, i8, i8, i8, i8, i8, i8, i32, %struct.tree_decl_u1, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.rtx_def*, i32, %struct.tree_decl_u2, %struct.tree_node*, %struct.tree_node*, i64, %struct.lang_decl* }
|
|
|
|
%struct.tree_decl_u1 = type { i64 }
|
|
|
|
%struct.tree_decl_u1_a = type <{ i32 }>
|
|
|
|
%struct.tree_decl_u2 = type { %struct.function* }
|
|
|
|
%struct.tree_exp = type { %struct.tree_common, %struct.location_t*, i32, %struct.tree_node*, [1 x %struct.tree_node*] }
|
|
|
|
%struct.tree_identifier = type { %struct.tree_common, %struct.ht_identifier }
|
|
|
|
%struct.tree_int_cst = type { %struct.tree_common, %struct.tree_int_cst_lowhi }
|
|
|
|
%struct.tree_int_cst_lowhi = type { i64, i64 }
|
|
|
|
%struct.tree_list = type { %struct.tree_common, %struct.tree_node*, %struct.tree_node* }
|
|
|
|
%struct.tree_node = type { %struct.tree_decl }
|
|
|
|
%struct.tree_phi_node = type { %struct.tree_common, %struct.tree_node*, i32, i32, i32, %struct.basic_block_def*, %struct.dataflow_d*, [1 x %struct.phi_arg_d] }
|
|
|
|
%struct.tree_real_cst = type { %struct.tree_common, %struct.real_value* }
|
|
|
|
%struct.tree_ssa_name = type { %struct.tree_common, %struct.tree_node*, i32, %struct.ptr_info_def*, %struct.tree_node*, i8* }
|
|
|
|
%struct.tree_statement_list = type { %struct.tree_common, %struct.tree_statement_list_node*, %struct.tree_statement_list_node* }
|
|
|
|
%struct.tree_statement_list_node = type { %struct.tree_statement_list_node*, %struct.tree_statement_list_node*, %struct.tree_node* }
|
|
|
|
%struct.tree_string = type { %struct.tree_common, i32, [1 x i8] }
|
|
|
|
%struct.tree_type = type { %struct.tree_common, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, i32, i16, i8, i8, i32, %struct.tree_node*, %struct.tree_node*, %struct.rtunion, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, i64, %struct.lang_type* }
|
|
|
|
%struct.tree_type_symtab = type { i8* }
|
|
|
|
%struct.tree_value_handle = type { %struct.tree_common, %struct.value_set*, i32 }
|
|
|
|
%struct.tree_vec = type { %struct.tree_common, i32, [1 x %struct.tree_node*] }
|
|
|
|
%struct.tree_vector = type { %struct.tree_common, %struct.tree_node* }
|
|
|
|
%struct.u = type { [1 x %struct.rtunion] }
|
|
|
|
%struct.value_set = type opaque
|
|
|
|
%struct.var_refs_queue = type { %struct.rtx_def*, i32, i32, %struct.var_refs_queue* }
|
|
|
|
%struct.varasm_status = type opaque
|
|
|
|
%struct.varray_data = type { [1 x i64] }
|
|
|
|
%struct.varray_head_tag = type { i64, i64, i32, i8*, %struct.varray_data }
|
|
|
|
%union.tree_ann_d = type opaque
|
|
|
|
@first_edge_aux_obj = external global i8* ; <i8**> [#uses=0]
|
|
|
|
@first_block_aux_obj = external global i8* ; <i8**> [#uses=0]
|
|
|
|
@n_edges = external global i32 ; <i32*> [#uses=0]
|
|
|
|
@ENTRY_BLOCK_PTR = external global %struct.basic_block_def* ; <%struct.basic_block_def**> [#uses=0]
|
|
|
|
@EXIT_BLOCK_PTR = external global %struct.basic_block_def* ; <%struct.basic_block_def**> [#uses=0]
|
|
|
|
@n_basic_blocks = external global i32 ; <i32*> [#uses=0]
|
|
|
|
@.str = external constant [9 x i8] ; <[9 x i8]*> [#uses=0]
|
|
|
|
@rbi_pool = external global %struct.alloc_pool_def* ; <%struct.alloc_pool_def**> [#uses=0]
|
|
|
|
@__FUNCTION__.19643 = external constant [18 x i8] ; <[18 x i8]*> [#uses=0]
|
|
|
|
@.str1 = external constant [20 x i8] ; <[20 x i8]*> [#uses=0]
|
|
|
|
@__FUNCTION__.19670 = external constant [15 x i8] ; <[15 x i8]*> [#uses=0]
|
|
|
|
@basic_block_info = external global %struct.varray_head_tag* ; <%struct.varray_head_tag**> [#uses=0]
|
|
|
|
@last_basic_block = external global i32 ; <i32*> [#uses=0]
|
|
|
|
@__FUNCTION__.19696 = external constant [14 x i8] ; <[14 x i8]*> [#uses=0]
|
|
|
|
@__FUNCTION__.20191 = external constant [20 x i8] ; <[20 x i8]*> [#uses=0]
|
|
|
|
@block_aux_obstack = external global %struct.obstack ; <%struct.obstack*> [#uses=0]
|
|
|
|
@__FUNCTION__.20301 = external constant [20 x i8] ; <[20 x i8]*> [#uses=0]
|
|
|
|
@__FUNCTION__.20316 = external constant [19 x i8] ; <[19 x i8]*> [#uses=0]
|
|
|
|
@edge_aux_obstack = external global %struct.obstack ; <%struct.obstack*> [#uses=0]
|
|
|
|
@stderr = external global %struct._IO_FILE* ; <%struct._IO_FILE**> [#uses=0]
|
|
|
|
@__FUNCTION__.20463 = external constant [11 x i8] ; <[11 x i8]*> [#uses=0]
|
|
|
|
@.str2 = external constant [7 x i8] ; <[7 x i8]*> [#uses=0]
|
|
|
|
@.str3 = external constant [6 x i8] ; <[6 x i8]*> [#uses=0]
|
|
|
|
@.str4 = external constant [4 x i8] ; <[4 x i8]*> [#uses=0]
|
|
|
|
@.str5 = external constant [11 x i8] ; <[11 x i8]*> [#uses=0]
|
|
|
|
@.str6 = external constant [8 x i8] ; <[8 x i8]*> [#uses=0]
|
|
|
|
@.str7 = external constant [4 x i8] ; <[4 x i8]*> [#uses=0]
|
|
|
|
@bitnames.20157 = external constant [13 x i8*] ; <[13 x i8*]*> [#uses=0]
|
|
|
|
@.str8 = external constant [9 x i8] ; <[9 x i8]*> [#uses=0]
|
|
|
|
@.str9 = external constant [3 x i8] ; <[3 x i8]*> [#uses=0]
|
|
|
|
@.str10 = external constant [7 x i8] ; <[7 x i8]*> [#uses=0]
|
|
|
|
@.str11 = external constant [3 x i8] ; <[3 x i8]*> [#uses=0]
|
|
|
|
@.str12 = external constant [5 x i8] ; <[5 x i8]*> [#uses=0]
|
|
|
|
@.str13 = external constant [9 x i8] ; <[9 x i8]*> [#uses=0]
|
|
|
|
@.str14 = external constant [13 x i8] ; <[13 x i8]*> [#uses=0]
|
|
|
|
@.str15 = external constant [12 x i8] ; <[12 x i8]*> [#uses=0]
|
|
|
|
@.str16 = external constant [8 x i8] ; <[8 x i8]*> [#uses=0]
|
|
|
|
@.str17 = external constant [10 x i8] ; <[10 x i8]*> [#uses=0]
|
|
|
|
@.str18 = external constant [5 x i8] ; <[5 x i8]*> [#uses=0]
|
|
|
|
@.str19 = external constant [6 x i8] ; <[6 x i8]*> [#uses=0]
|
|
|
|
@.str20 = external constant [5 x i8] ; <[5 x i8]*> [#uses=0]
|
|
|
|
@.str21 = external constant [3 x i8] ; <[3 x i8]*> [#uses=0]
|
|
|
|
@.str22 = external constant [3 x i8] ; <[3 x i8]*> [#uses=0]
|
|
|
|
@__FUNCTION__.19709 = external constant [20 x i8] ; <[20 x i8]*> [#uses=0]
|
|
|
|
@.str23 = external constant [5 x i8] ; <[5 x i8]*> [#uses=0]
|
|
|
|
@.str24 = external constant [10 x i8] ; <[10 x i8]*> [#uses=0]
|
|
|
|
@__FUNCTION__.19813 = external constant [19 x i8] ; <[19 x i8]*> [#uses=0]
|
|
|
|
@.str25 = external constant [7 x i8] ; <[7 x i8]*> [#uses=0]
|
|
|
|
@.str26 = external constant [6 x i8] ; <[6 x i8]*> [#uses=0]
|
|
|
|
@initialized.20241.b = external global i1 ; <i1*> [#uses=0]
|
|
|
|
@__FUNCTION__.20244 = external constant [21 x i8] ; <[21 x i8]*> [#uses=0]
|
|
|
|
@__FUNCTION__.19601 = external constant [12 x i8] ; <[12 x i8]*> [#uses=0]
|
|
|
|
@__FUNCTION__.14571 = external constant [8 x i8] ; <[8 x i8]*> [#uses=0]
|
|
|
|
@__FUNCTION__.14535 = external constant [13 x i8] ; <[13 x i8]*> [#uses=0]
|
|
|
|
@.str27 = external constant [28 x i8] ; <[28 x i8]*> [#uses=0]
|
|
|
|
@__FUNCTION__.14589 = external constant [8 x i8] ; <[8 x i8]*> [#uses=0]
|
|
|
|
@__FUNCTION__.19792 = external constant [12 x i8] ; <[12 x i8]*> [#uses=0]
|
|
|
|
@__FUNCTION__.19851 = external constant [19 x i8] ; <[19 x i8]*> [#uses=0]
|
|
|
|
@profile_status = external global i32 ; <i32*> [#uses=0]
|
|
|
|
@.str29 = external constant [46 x i8] ; <[46 x i8]*> [#uses=0]
|
|
|
|
@.str30 = external constant [49 x i8] ; <[49 x i8]*> [#uses=0]
|
|
|
|
@.str31 = external constant [54 x i8] ; <[54 x i8]*> [#uses=0]
|
|
|
|
@.str32 = external constant [49 x i8] ; <[49 x i8]*> [#uses=1]
|
|
|
|
@__FUNCTION__.19948 = external constant [15 x i8] ; <[15 x i8]*> [#uses=0]
|
|
|
|
@reg_n_info = external global %struct.varray_head_tag* ; <%struct.varray_head_tag**> [#uses=0]
|
|
|
|
@reload_completed = external global i32 ; <i32*> [#uses=0]
|
|
|
|
@.str33 = external constant [15 x i8] ; <[15 x i8]*> [#uses=0]
|
|
|
|
@.str34 = external constant [43 x i8] ; <[43 x i8]*> [#uses=0]
|
|
|
|
@.str35 = external constant [13 x i8] ; <[13 x i8]*> [#uses=0]
|
|
|
|
@.str36 = external constant [1 x i8] ; <[1 x i8]*> [#uses=0]
|
|
|
|
@.str37 = external constant [2 x i8] ; <[2 x i8]*> [#uses=0]
|
|
|
|
@.str38 = external constant [16 x i8] ; <[16 x i8]*> [#uses=0]
|
|
|
|
@cfun = external global %struct.function* ; <%struct.function**> [#uses=0]
|
|
|
|
@.str39 = external constant [14 x i8] ; <[14 x i8]*> [#uses=0]
|
|
|
|
@.str40 = external constant [11 x i8] ; <[11 x i8]*> [#uses=0]
|
|
|
|
@.str41 = external constant [20 x i8] ; <[20 x i8]*> [#uses=0]
|
|
|
|
@.str42 = external constant [17 x i8] ; <[17 x i8]*> [#uses=0]
|
|
|
|
@.str43 = external constant [19 x i8] ; <[19 x i8]*> [#uses=0]
|
|
|
|
@mode_size = external global [48 x i8] ; <[48 x i8]*> [#uses=0]
|
|
|
|
@target_flags = external global i32 ; <i32*> [#uses=0]
|
|
|
|
@.str44 = external constant [11 x i8] ; <[11 x i8]*> [#uses=0]
|
|
|
|
@reg_class_names = external global [0 x i8*] ; <[0 x i8*]*> [#uses=0]
|
|
|
|
@.str45 = external constant [10 x i8] ; <[10 x i8]*> [#uses=0]
|
|
|
|
@.str46 = external constant [13 x i8] ; <[13 x i8]*> [#uses=0]
|
|
|
|
@.str47 = external constant [19 x i8] ; <[19 x i8]*> [#uses=0]
|
|
|
|
@.str48 = external constant [12 x i8] ; <[12 x i8]*> [#uses=0]
|
|
|
|
@.str49 = external constant [10 x i8] ; <[10 x i8]*> [#uses=0]
|
|
|
|
@.str50 = external constant [3 x i8] ; <[3 x i8]*> [#uses=0]
|
|
|
|
@.str51 = external constant [29 x i8] ; <[29 x i8]*> [#uses=0]
|
|
|
|
@.str52 = external constant [17 x i8] ; <[17 x i8]*> [#uses=0]
|
|
|
|
@.str53 = external constant [19 x i8] ; <[19 x i8]*> [#uses=0]
|
|
|
|
@.str54 = external constant [22 x i8] ; <[22 x i8]*> [#uses=0]
|
|
|
|
@.str55 = external constant [10 x i8] ; <[10 x i8]*> [#uses=0]
|
|
|
|
@.str56 = external constant [12 x i8] ; <[12 x i8]*> [#uses=0]
|
|
|
|
@.str57 = external constant [26 x i8] ; <[26 x i8]*> [#uses=0]
|
|
|
|
@.str58 = external constant [15 x i8] ; <[15 x i8]*> [#uses=0]
|
|
|
|
@.str59 = external constant [14 x i8] ; <[14 x i8]*> [#uses=0]
|
|
|
|
@.str60 = external constant [26 x i8] ; <[26 x i8]*> [#uses=0]
|
|
|
|
@.str61 = external constant [24 x i8] ; <[24 x i8]*> [#uses=0]
|
|
|
|
@initialized.20366.b = external global i1 ; <i1*> [#uses=0]
|
|
|
|
@__FUNCTION__.20369 = external constant [20 x i8] ; <[20 x i8]*> [#uses=0]
|
|
|
|
@__FUNCTION__.20442 = external constant [19 x i8] ; <[19 x i8]*> [#uses=0]
|
|
|
|
@bb_bitnames.20476 = external constant [6 x i8*] ; <[6 x i8*]*> [#uses=0]
|
|
|
|
@.str62 = external constant [6 x i8] ; <[6 x i8]*> [#uses=0]
|
|
|
|
@.str63 = external constant [4 x i8] ; <[4 x i8]*> [#uses=0]
|
|
|
|
@.str64 = external constant [10 x i8] ; <[10 x i8]*> [#uses=0]
|
|
|
|
@.str65 = external constant [8 x i8] ; <[8 x i8]*> [#uses=0]
|
|
|
|
@.str66 = external constant [17 x i8] ; <[17 x i8]*> [#uses=0]
|
|
|
|
@.str67 = external constant [11 x i8] ; <[11 x i8]*> [#uses=0]
|
|
|
|
@.str68 = external constant [15 x i8] ; <[15 x i8]*> [#uses=0]
|
|
|
|
@.str69 = external constant [3 x i8] ; <[3 x i8]*> [#uses=0]
|
|
|
|
@.str70 = external constant [3 x i8] ; <[3 x i8]*> [#uses=0]
|
|
|
|
@__FUNCTION__.20520 = external constant [32 x i8] ; <[32 x i8]*> [#uses=0]
|
|
|
|
@dump_file = external global %struct._IO_FILE* ; <%struct._IO_FILE**> [#uses=0]
|
|
|
|
@.str71 = external constant [86 x i8] ; <[86 x i8]*> [#uses=0]
|
|
|
|
@.str72 = external constant [94 x i8] ; <[94 x i8]*> [#uses=0]
|
|
|
|
@reg_obstack = external global %struct.bitmap_obstack ; <%struct.bitmap_obstack*> [#uses=0]
|
|
|
|
|
|
|
|
declare void @init_flow()
|
|
|
|
|
|
|
|
declare i8* @ggc_alloc_cleared_stat(i64)
|
|
|
|
|
|
|
|
declare fastcc void @free_edge(%struct.edge_def*)
|
|
|
|
|
|
|
|
declare void @ggc_free(i8*)
|
|
|
|
|
|
|
|
declare %struct.basic_block_def* @alloc_block()
|
|
|
|
|
|
|
|
declare void @alloc_rbi_pool()
|
|
|
|
|
|
|
|
declare %struct.alloc_pool_def* @create_alloc_pool(i8*, i64, i64)
|
|
|
|
|
|
|
|
declare void @free_rbi_pool()
|
|
|
|
|
|
|
|
declare void @free_alloc_pool(%struct.alloc_pool_def*)
|
|
|
|
|
|
|
|
declare void @initialize_bb_rbi(%struct.basic_block_def*)
|
|
|
|
|
|
|
|
declare void @fancy_abort(i8*, i32, i8*)
|
|
|
|
|
|
|
|
declare i8* @pool_alloc(%struct.alloc_pool_def*)
|
|
|
|
|
Remove alignment argument from memcpy/memmove/memset in favour of alignment attributes (Step 1)
Summary:
This is a resurrection of work first proposed and discussed in Aug 2015:
http://lists.llvm.org/pipermail/llvm-dev/2015-August/089384.html
and initially landed (but then backed out) in Nov 2015:
http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20151109/312083.html
The @llvm.memcpy/memmove/memset intrinsics currently have an explicit argument
which is required to be a constant integer. It represents the alignment of the
dest (and source), and so must be the minimum of the actual alignment of the
two.
This change is the first in a series that allows source and dest to each
have their own alignments by using the alignment attribute on their arguments.
In this change we:
1) Remove the alignment argument.
2) Add alignment attributes to the source & dest arguments. We, temporarily,
require that the alignments for source & dest be equal.
For example, code which used to read:
call void @llvm.memcpy.p0i8.p0i8.i32(i8* %dest, i8* %src, i32 100, i32 4, i1 false)
will now read
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %dest, i8* align 4 %src, i32 100, i1 false)
Downstream users may have to update their lit tests that check for
@llvm.memcpy/memmove/memset call/declaration patterns. The following extended sed script
may help with updating the majority of your tests, but it does not catch all possible
patterns so some manual checking and updating will be required.
s~declare void @llvm\.mem(set|cpy|move)\.p([^(]*)\((.*), i32, i1\)~declare void @llvm.mem\1.p\2(\3, i1)~g
s~call void @llvm\.memset\.p([^(]*)i8\(i8([^*]*)\* (.*), i8 (.*), i8 (.*), i32 [01], i1 ([^)]*)\)~call void @llvm.memset.p\1i8(i8\2* \3, i8 \4, i8 \5, i1 \6)~g
s~call void @llvm\.memset\.p([^(]*)i16\(i8([^*]*)\* (.*), i8 (.*), i16 (.*), i32 [01], i1 ([^)]*)\)~call void @llvm.memset.p\1i16(i8\2* \3, i8 \4, i16 \5, i1 \6)~g
s~call void @llvm\.memset\.p([^(]*)i32\(i8([^*]*)\* (.*), i8 (.*), i32 (.*), i32 [01], i1 ([^)]*)\)~call void @llvm.memset.p\1i32(i8\2* \3, i8 \4, i32 \5, i1 \6)~g
s~call void @llvm\.memset\.p([^(]*)i64\(i8([^*]*)\* (.*), i8 (.*), i64 (.*), i32 [01], i1 ([^)]*)\)~call void @llvm.memset.p\1i64(i8\2* \3, i8 \4, i64 \5, i1 \6)~g
s~call void @llvm\.memset\.p([^(]*)i128\(i8([^*]*)\* (.*), i8 (.*), i128 (.*), i32 [01], i1 ([^)]*)\)~call void @llvm.memset.p\1i128(i8\2* \3, i8 \4, i128 \5, i1 \6)~g
s~call void @llvm\.memset\.p([^(]*)i8\(i8([^*]*)\* (.*), i8 (.*), i8 (.*), i32 ([0-9]*), i1 ([^)]*)\)~call void @llvm.memset.p\1i8(i8\2* align \6 \3, i8 \4, i8 \5, i1 \7)~g
s~call void @llvm\.memset\.p([^(]*)i16\(i8([^*]*)\* (.*), i8 (.*), i16 (.*), i32 ([0-9]*), i1 ([^)]*)\)~call void @llvm.memset.p\1i16(i8\2* align \6 \3, i8 \4, i16 \5, i1 \7)~g
s~call void @llvm\.memset\.p([^(]*)i32\(i8([^*]*)\* (.*), i8 (.*), i32 (.*), i32 ([0-9]*), i1 ([^)]*)\)~call void @llvm.memset.p\1i32(i8\2* align \6 \3, i8 \4, i32 \5, i1 \7)~g
s~call void @llvm\.memset\.p([^(]*)i64\(i8([^*]*)\* (.*), i8 (.*), i64 (.*), i32 ([0-9]*), i1 ([^)]*)\)~call void @llvm.memset.p\1i64(i8\2* align \6 \3, i8 \4, i64 \5, i1 \7)~g
s~call void @llvm\.memset\.p([^(]*)i128\(i8([^*]*)\* (.*), i8 (.*), i128 (.*), i32 ([0-9]*), i1 ([^)]*)\)~call void @llvm.memset.p\1i128(i8\2* align \6 \3, i8 \4, i128 \5, i1 \7)~g
s~call void @llvm\.mem(cpy|move)\.p([^(]*)i8\(i8([^*]*)\* (.*), i8([^*]*)\* (.*), i8 (.*), i32 [01], i1 ([^)]*)\)~call void @llvm.mem\1.p\2i8(i8\3* \4, i8\5* \6, i8 \7, i1 \8)~g
s~call void @llvm\.mem(cpy|move)\.p([^(]*)i16\(i8([^*]*)\* (.*), i8([^*]*)\* (.*), i16 (.*), i32 [01], i1 ([^)]*)\)~call void @llvm.mem\1.p\2i16(i8\3* \4, i8\5* \6, i16 \7, i1 \8)~g
s~call void @llvm\.mem(cpy|move)\.p([^(]*)i32\(i8([^*]*)\* (.*), i8([^*]*)\* (.*), i32 (.*), i32 [01], i1 ([^)]*)\)~call void @llvm.mem\1.p\2i32(i8\3* \4, i8\5* \6, i32 \7, i1 \8)~g
s~call void @llvm\.mem(cpy|move)\.p([^(]*)i64\(i8([^*]*)\* (.*), i8([^*]*)\* (.*), i64 (.*), i32 [01], i1 ([^)]*)\)~call void @llvm.mem\1.p\2i64(i8\3* \4, i8\5* \6, i64 \7, i1 \8)~g
s~call void @llvm\.mem(cpy|move)\.p([^(]*)i128\(i8([^*]*)\* (.*), i8([^*]*)\* (.*), i128 (.*), i32 [01], i1 ([^)]*)\)~call void @llvm.mem\1.p\2i128(i8\3* \4, i8\5* \6, i128 \7, i1 \8)~g
s~call void @llvm\.mem(cpy|move)\.p([^(]*)i8\(i8([^*]*)\* (.*), i8([^*]*)\* (.*), i8 (.*), i32 ([0-9]*), i1 ([^)]*)\)~call void @llvm.mem\1.p\2i8(i8\3* align \8 \4, i8\5* align \8 \6, i8 \7, i1 \9)~g
s~call void @llvm\.mem(cpy|move)\.p([^(]*)i16\(i8([^*]*)\* (.*), i8([^*]*)\* (.*), i16 (.*), i32 ([0-9]*), i1 ([^)]*)\)~call void @llvm.mem\1.p\2i16(i8\3* align \8 \4, i8\5* align \8 \6, i16 \7, i1 \9)~g
s~call void @llvm\.mem(cpy|move)\.p([^(]*)i32\(i8([^*]*)\* (.*), i8([^*]*)\* (.*), i32 (.*), i32 ([0-9]*), i1 ([^)]*)\)~call void @llvm.mem\1.p\2i32(i8\3* align \8 \4, i8\5* align \8 \6, i32 \7, i1 \9)~g
s~call void @llvm\.mem(cpy|move)\.p([^(]*)i64\(i8([^*]*)\* (.*), i8([^*]*)\* (.*), i64 (.*), i32 ([0-9]*), i1 ([^)]*)\)~call void @llvm.mem\1.p\2i64(i8\3* align \8 \4, i8\5* align \8 \6, i64 \7, i1 \9)~g
s~call void @llvm\.mem(cpy|move)\.p([^(]*)i128\(i8([^*]*)\* (.*), i8([^*]*)\* (.*), i128 (.*), i32 ([0-9]*), i1 ([^)]*)\)~call void @llvm.mem\1.p\2i128(i8\3* align \8 \4, i8\5* align \8 \6, i128 \7, i1 \9)~g
The remaining changes in the series will:
Step 2) Expand the IRBuilder API to allow creation of memcpy/memmove with differing
source and dest alignments.
Step 3) Update Clang to use the new IRBuilder API.
Step 4) Update Polly to use the new IRBuilder API.
Step 5) Update LLVM passes that create memcpy/memmove calls to use the new IRBuilder API,
and those that use use MemIntrinsicInst::[get|set]Alignment() to use
getDestAlignment() and getSourceAlignment() instead.
Step 6) Remove the single-alignment IRBuilder API for memcpy/memmove, and the
MemIntrinsicInst::[get|set]Alignment() methods.
Reviewers: pete, hfinkel, lhames, reames, bollu
Reviewed By: reames
Subscribers: niosHD, reames, jholewinski, qcolombet, jfb, sanjoy, arsenm, dschuff, dylanmckay, mehdi_amini, sdardis, nemanjai, david2050, nhaehnle, javed.absar, sbc100, jgravelle-google, eraman, aheejin, kbarton, JDevlieghere, asb, rbar, johnrusso, simoncook, jordy.potman.lists, apazos, sabuasal, llvm-commits
Differential Revision: https://reviews.llvm.org/D41675
llvm-svn: 322965
2018-01-20 01:13:12 +08:00
|
|
|
declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i1)
|
2007-10-16 02:33:50 +08:00
|
|
|
|
|
|
|
declare void @link_block(%struct.basic_block_def*, %struct.basic_block_def*)
|
|
|
|
|
|
|
|
declare void @unlink_block(%struct.basic_block_def*)
|
|
|
|
|
|
|
|
declare void @compact_blocks()
|
|
|
|
|
|
|
|
declare void @varray_check_failed(%struct.varray_head_tag*, i64, i8*, i32, i8*)
|
|
|
|
|
|
|
|
declare void @expunge_block(%struct.basic_block_def*)
|
|
|
|
|
|
|
|
declare void @clear_bb_flags()
|
|
|
|
|
|
|
|
declare void @alloc_aux_for_block(%struct.basic_block_def*, i32)
|
|
|
|
|
|
|
|
declare void @_obstack_newchunk(%struct.obstack*, i32)
|
|
|
|
|
|
|
|
declare void @clear_aux_for_blocks()
|
|
|
|
|
|
|
|
declare void @free_aux_for_blocks()
|
|
|
|
|
|
|
|
declare void @obstack_free(%struct.obstack*, i8*)
|
|
|
|
|
|
|
|
declare void @alloc_aux_for_edge(%struct.edge_def*, i32)
|
|
|
|
|
|
|
|
declare void @debug_bb(%struct.basic_block_def*)
|
|
|
|
|
|
|
|
declare void @dump_bb(%struct.basic_block_def*, %struct._IO_FILE*, i32)
|
|
|
|
|
|
|
|
declare %struct.basic_block_def* @debug_bb_n(i32)
|
|
|
|
|
|
|
|
declare void @dump_edge_info(%struct._IO_FILE*, %struct.edge_def*, i32)
|
|
|
|
|
|
|
|
declare i32 @fputs_unlocked(i8* noalias , %struct._IO_FILE* noalias )
|
|
|
|
|
|
|
|
declare i32 @fprintf(%struct._IO_FILE* noalias , i8* noalias , ...)
|
|
|
|
|
|
|
|
declare i64 @fwrite(i8*, i64, i64, i8*)
|
|
|
|
|
|
|
|
declare i32 @__overflow(%struct._IO_FILE*, i32)
|
|
|
|
|
|
|
|
declare %struct.edge_def* @unchecked_make_edge(%struct.basic_block_def*, %struct.basic_block_def*, i32)
|
|
|
|
|
|
|
|
declare i8* @vec_gc_p_reserve(i8*, i32)
|
|
|
|
|
|
|
|
declare void @vec_assert_fail(i8*, i8*, i8*, i32, i8*)
|
|
|
|
|
|
|
|
declare void @execute_on_growing_pred(%struct.edge_def*)
|
|
|
|
|
|
|
|
declare %struct.edge_def* @make_edge(%struct.basic_block_def*, %struct.basic_block_def*, i32)
|
|
|
|
|
|
|
|
declare %struct.edge_def* @find_edge(%struct.basic_block_def*, %struct.basic_block_def*)
|
|
|
|
|
|
|
|
declare %struct.edge_def* @make_single_succ_edge(%struct.basic_block_def*, %struct.basic_block_def*, i32)
|
|
|
|
|
|
|
|
declare %struct.edge_def* @cached_make_edge(%struct.simple_bitmap_def**, %struct.basic_block_def*, %struct.basic_block_def*, i32)
|
|
|
|
|
|
|
|
declare void @redirect_edge_succ(%struct.edge_def*, %struct.basic_block_def*)
|
|
|
|
|
|
|
|
declare void @execute_on_shrinking_pred(%struct.edge_def*)
|
|
|
|
|
|
|
|
declare void @alloc_aux_for_blocks(i32)
|
|
|
|
|
|
|
|
declare i8* @xmalloc(i64)
|
|
|
|
|
|
|
|
declare i32 @_obstack_begin(%struct.obstack*, i32, i32, i8* (i64)*, void (i8*)*)
|
|
|
|
|
|
|
|
declare void @free(i8*)
|
|
|
|
|
|
|
|
declare void @clear_edges()
|
|
|
|
|
|
|
|
declare void @remove_edge(%struct.edge_def*)
|
|
|
|
|
|
|
|
declare %struct.edge_def* @redirect_edge_succ_nodup(%struct.edge_def*, %struct.basic_block_def*)
|
|
|
|
|
|
|
|
declare void @redirect_edge_pred(%struct.edge_def*, %struct.basic_block_def*)
|
|
|
|
|
|
|
|
define void @check_bb_profile(%struct.basic_block_def* %bb, %struct._IO_FILE* %file) {
|
|
|
|
entry:
|
|
|
|
br i1 false, label %cond_false759.preheader, label %cond_false149.preheader
|
|
|
|
|
|
|
|
cond_false149.preheader: ; preds = %entry
|
|
|
|
ret void
|
|
|
|
|
|
|
|
cond_false759.preheader: ; preds = %entry
|
|
|
|
br i1 false, label %cond_next873, label %cond_true794
|
|
|
|
|
|
|
|
bb644: ; preds = %cond_next873
|
|
|
|
ret void
|
|
|
|
|
|
|
|
cond_true794: ; preds = %cond_false759.preheader
|
|
|
|
ret void
|
|
|
|
|
|
|
|
cond_next873: ; preds = %cond_false759.preheader
|
|
|
|
br i1 false, label %bb882, label %bb644
|
|
|
|
|
|
|
|
bb882: ; preds = %cond_next873
|
|
|
|
br i1 false, label %cond_true893, label %cond_next901
|
|
|
|
|
|
|
|
cond_true893: ; preds = %bb882
|
|
|
|
br label %cond_false1036
|
|
|
|
|
|
|
|
cond_next901: ; preds = %bb882
|
|
|
|
ret void
|
|
|
|
|
|
|
|
bb929: ; preds = %cond_next1150
|
|
|
|
%tmp934 = add i64 0, %lsum.11225.0 ; <i64> [#uses=1]
|
|
|
|
br i1 false, label %cond_next979, label %cond_true974
|
|
|
|
|
|
|
|
cond_true974: ; preds = %bb929
|
|
|
|
ret void
|
|
|
|
|
|
|
|
cond_next979: ; preds = %bb929
|
|
|
|
br label %cond_false1036
|
|
|
|
|
|
|
|
cond_false1036: ; preds = %cond_next979, %cond_true893
|
|
|
|
%lsum.11225.0 = phi i64 [ 0, %cond_true893 ], [ %tmp934, %cond_next979 ] ; <i64> [#uses=2]
|
|
|
|
br i1 false, label %cond_next1056, label %cond_true1051
|
|
|
|
|
|
|
|
cond_true1051: ; preds = %cond_false1036
|
|
|
|
ret void
|
|
|
|
|
|
|
|
cond_next1056: ; preds = %cond_false1036
|
|
|
|
br i1 false, label %cond_next1150, label %cond_true1071
|
|
|
|
|
|
|
|
cond_true1071: ; preds = %cond_next1056
|
|
|
|
ret void
|
|
|
|
|
|
|
|
cond_next1150: ; preds = %cond_next1056
|
|
|
|
%tmp1156 = icmp eq %struct.edge_def* null, null ; <i1> [#uses=1]
|
|
|
|
br i1 %tmp1156, label %bb1159, label %bb929
|
|
|
|
|
|
|
|
bb1159: ; preds = %cond_next1150
|
|
|
|
br i1 false, label %cond_true1169, label %UnifiedReturnBlock
|
|
|
|
|
|
|
|
cond_true1169: ; preds = %bb1159
|
|
|
|
%tmp11741175 = trunc i64 %lsum.11225.0 to i32 ; <i32> [#uses=1]
|
[opaque pointer type] Add textual IR support for explicit type parameter to the call instruction
See r230786 and r230794 for similar changes to gep and load
respectively.
Call is a bit different because it often doesn't have a single explicit
type - usually the type is deduced from the arguments, and just the
return type is explicit. In those cases there's no need to change the
IR.
When that's not the case, the IR usually contains the pointer type of
the first operand - but since typed pointers are going away, that
representation is insufficient so I'm just stripping the "pointerness"
of the explicit type away.
This does make the IR a bit weird - it /sort of/ reads like the type of
the first operand: "call void () %x(" but %x is actually of type "void
()*" and will eventually be just of type "ptr". But this seems not too
bad and I don't think it would benefit from repeating the type
("void (), void () * %x(" and then eventually "void (), ptr %x(") as has
been done with gep and load.
This also has a side benefit: since the explicit type is no longer a
pointer, there's no ambiguity between an explicit type and a function
that returns a function pointer. Previously this case needed an explicit
type (eg: a function returning a void() function was written as
"call void () () * @x(" rather than "call void () * @x(" because of the
ambiguity between a function returning a pointer to a void() function
and a function returning void).
No ambiguity means even function pointer return types can just be
written alone, without writing the whole function's type.
This leaves /only/ the varargs case where the explicit type is required.
Given the special type syntax in call instructions, the regex-fu used
for migration was a bit more involved in its own unique way (as every
one of these is) so here it is. Use it in conjunction with the apply.sh
script and associated find/xargs commands I've provided in rr230786 to
migrate your out of tree tests. Do let me know if any of this doesn't
cover your cases & we can iterate on a more general script/regexes to
help others with out of tree tests.
About 9 test cases couldn't be automatically migrated - half of those
were functions returning function pointers, where I just had to manually
delete the function argument types now that we didn't need an explicit
function type there. The other half were typedefs of function types used
in calls - just had to manually drop the * from those.
import fileinput
import sys
import re
pat = re.compile(r'((?:=|:|^|\s)call\s(?:[^@]*?))(\s*$|\s*(?:(?:\[\[[a-zA-Z0-9_]+\]\]|[@%](?:(")?[\\\?@a-zA-Z0-9_.]*?(?(3)"|)|{{.*}}))(?:\(|$)|undef|inttoptr|bitcast|null|asm).*$)')
addrspace_end = re.compile(r"addrspace\(\d+\)\s*\*$")
func_end = re.compile("(?:void.*|\)\s*)\*$")
def conv(match, line):
if not match or re.search(addrspace_end, match.group(1)) or not re.search(func_end, match.group(1)):
return line
return line[:match.start()] + match.group(1)[:match.group(1).rfind('*')].rstrip() + match.group(2) + line[match.end():]
for line in sys.stdin:
sys.stdout.write(conv(re.search(pat, line), line))
llvm-svn: 235145
2015-04-17 07:24:18 +08:00
|
|
|
%tmp1178 = tail call i32 (%struct._IO_FILE* , i8* , ...) @fprintf( %struct._IO_FILE* noalias %file , i8* getelementptr ([49 x i8], [49 x i8]* @.str32, i32 0, i64 0) , i32 %tmp11741175, i32 0 ) ; <i32> [#uses=0]
|
2007-10-16 02:33:50 +08:00
|
|
|
ret void
|
|
|
|
|
|
|
|
UnifiedReturnBlock: ; preds = %bb1159
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @dump_flow_info(%struct._IO_FILE*)
|
|
|
|
|
|
|
|
declare i32 @max_reg_num()
|
|
|
|
|
|
|
|
declare void @rtl_check_failed_flag(i8*, %struct.rtx_def*, i8*, i32, i8*)
|
|
|
|
|
|
|
|
declare i32 @reg_preferred_class(i32)
|
|
|
|
|
|
|
|
declare i32 @reg_alternate_class(i32)
|
|
|
|
|
2011-06-17 11:14:27 +08:00
|
|
|
declare zeroext i8 @maybe_hot_bb_p(%struct.basic_block_def*)
|
2007-10-16 02:33:50 +08:00
|
|
|
|
2011-06-17 11:14:27 +08:00
|
|
|
declare zeroext i8 @probably_never_executed_bb_p(%struct.basic_block_def*)
|
2007-10-16 02:33:50 +08:00
|
|
|
|
|
|
|
declare void @dump_regset(%struct.bitmap_head_def*, %struct._IO_FILE*)
|
|
|
|
|
|
|
|
declare void @debug_flow_info()
|
|
|
|
|
|
|
|
declare void @alloc_aux_for_edges(i32)
|
|
|
|
|
|
|
|
declare void @clear_aux_for_edges()
|
|
|
|
|
|
|
|
declare void @free_aux_for_edges()
|
|
|
|
|
|
|
|
declare void @brief_dump_cfg(%struct._IO_FILE*)
|
|
|
|
|
|
|
|
declare i32 @fputc(i32, i8*)
|
|
|
|
|
|
|
|
declare void @update_bb_profile_for_threading(%struct.basic_block_def*, i32, i64, %struct.edge_def*)
|