GCC Middle and Back End API Reference
emit-rtl.c File Reference

Functions

static rtx change_address_1 (rtx, enum machine_mode, rtx, int)
static void set_used_decls (tree)
static void mark_label_nuses (rtx)
static hashval_t const_int_htab_hash (const void *)
static int const_int_htab_eq (const void *, const void *)
static hashval_t const_double_htab_hash (const void *)
static int const_double_htab_eq (const void *, const void *)
static rtx lookup_const_double (rtx)
static hashval_t const_fixed_htab_hash (const void *)
static int const_fixed_htab_eq (const void *, const void *)
static rtx lookup_const_fixed (rtx)
static hashval_t mem_attrs_htab_hash (const void *)
static int mem_attrs_htab_eq (const void *, const void *)
static hashval_t reg_attrs_htab_hash (const void *)
static int reg_attrs_htab_eq (const void *, const void *)
static reg_attrsget_reg_attrs (tree, int)
static rtx gen_const_vector (enum machine_mode, int)
static void copy_rtx_if_shared_1 (rtx *orig)
static hashval_t const_int_htab_hash ()
static int const_int_htab_eq ()
static hashval_t const_double_htab_hash ()
static int const_double_htab_eq ()
static hashval_t const_fixed_htab_hash ()
static int const_fixed_htab_eq ()
static hashval_t mem_attrs_htab_hash ()
static bool mem_attrs_eq_p ()
static int mem_attrs_htab_eq ()
static void set_mem_attrs ()
static hashval_t reg_attrs_htab_hash ()
static int reg_attrs_htab_eq ()
static reg_attrsget_reg_attrs ()
rtx gen_blockage ()
rtx gen_raw_REG ()
rtx gen_rtx_CONST_INT ()
rtx gen_int_mode ()
static rtx lookup_const_double ()
rtx const_double_from_real_value ()
static rtx lookup_const_fixed ()
rtx const_fixed_from_fixed_value ()
double_int rtx_to_double_int ()
rtx immed_double_int_const ()
rtx immed_double_const ()
rtx gen_rtx_REG ()
rtx gen_rtx_MEM ()
rtx gen_const_mem ()
rtx gen_frame_mem ()
rtx gen_tmp_stack_mem ()
bool validate_subreg (enum machine_mode omode, enum machine_mode imode, const_rtx reg, unsigned int offset)
rtx gen_rtx_SUBREG ()
rtx gen_lowpart_SUBREG ()
rtvec gen_rtvec ()
rtvec gen_rtvec_v ()
int byte_lowpart_offset (enum machine_mode outer_mode, enum machine_mode inner_mode)
rtx gen_reg_rtx ()
bool reg_is_parm_p ()
static void update_reg_offset ()
rtx gen_rtx_REG_offset (rtx reg, enum machine_mode mode, unsigned int regno, int offset)
rtx gen_reg_rtx_offset ()
void adjust_reg_mode ()
void set_reg_attrs_from_value ()
rtx gen_reg_rtx_and_attrs ()
void set_reg_attrs_for_parm ()
void set_reg_attrs_for_decl_rtl ()
void set_decl_rtl ()
void set_decl_incoming_rtl ()
void mark_user_reg ()
void mark_reg_pointer ()
int max_reg_num ()
int max_label_num ()
int get_first_label_num ()
void maybe_set_first_label_num ()
rtx gen_lowpart_common ()
rtx gen_highpart ()
rtx gen_highpart_mode ()
unsigned int subreg_lowpart_offset ()
unsigned int subreg_highpart_offset ()
int subreg_lowpart_p ()
bool paradoxical_subreg_p ()
rtx operand_subword ()
rtx operand_subword_force ()
int mem_expr_equal_p ()
int get_mem_align_offset ()
void set_mem_attributes_minus_bitpos (rtx ref, tree t, int objectp, HOST_WIDE_INT bitpos)
void set_mem_attributes ()
void set_mem_alias_set ()
void set_mem_addr_space ()
void set_mem_align ()
void set_mem_expr ()
void set_mem_offset ()
void clear_mem_offset ()
void set_mem_size ()
void clear_mem_size ()
static rtx change_address_1 ()
rtx change_address ()
rtx adjust_address_1 (rtx memref, enum machine_mode mode, HOST_WIDE_INT offset, int validate, int adjust_address, int adjust_object, HOST_WIDE_INT size)
rtx adjust_automodify_address_1 (rtx memref, enum machine_mode mode, rtx addr, HOST_WIDE_INT offset, int validate)
rtx offset_address ()
rtx replace_equiv_address ()
rtx replace_equiv_address_nv ()
rtx widen_memory_access ()
tree get_spill_slot_decl ()
void set_mem_attrs_for_spill ()
rtx gen_label_rtx ()
void set_new_first_and_last_insn ()
static void unshare_all_rtl_1 ()
void unshare_all_rtl_again ()
unsigned int unshare_all_rtl ()
static void verify_rtx_sharing ()
static void reset_insn_used_flags ()
static void reset_all_used_flags ()
static void verify_insn_sharing ()
DEBUG_FUNCTION void verify_rtl_sharing ()
void unshare_all_rtl_in_chain ()
static void set_used_decls ()
rtx copy_rtx_if_shared ()
static void copy_rtx_if_shared_1 ()
static void mark_used_flags ()
void reset_used_flags ()
void set_used_flags ()
rtx make_safe_from ()
rtx get_last_insn_anywhere ()
rtx get_first_nonnote_insn ()
rtx get_last_nonnote_insn ()
int get_max_insn_count ()
rtx next_insn ()
rtx previous_insn ()
rtx next_nonnote_insn ()
rtx next_nonnote_insn_bb ()
rtx prev_nonnote_insn ()
rtx prev_nonnote_insn_bb ()
rtx next_nondebug_insn ()
rtx prev_nondebug_insn ()
rtx next_nonnote_nondebug_insn ()
rtx prev_nonnote_nondebug_insn ()
rtx next_real_insn ()
rtx prev_real_insn ()
rtx last_call_insn ()
int active_insn_p ()
rtx next_active_insn ()
rtx prev_active_insn ()
rtx next_cc0_user ()
rtx prev_cc0_setter ()
static int find_auto_inc ()
static void mark_label_nuses ()
rtx try_split ()
rtx make_insn_raw ()
static rtx make_debug_insn_raw ()
static rtx make_jump_insn_raw ()
static rtx make_call_insn_raw ()
static rtx make_note_raw ()
static void link_insn_into_chain ()
void add_insn ()
static void add_insn_after_nobb ()
static void add_insn_before_nobb ()
void add_insn_after ()
void add_insn_before ()
void set_insn_deleted ()
void remove_insn ()
void add_function_usage_to ()
void delete_insns_since ()
void reorder_insns_nobb ()
void reorder_insns ()
static rtx emit_pattern_before_noloc (rtx x, rtx before, rtx last, basic_block bb, rtx(*make_raw)(rtx))
rtx emit_insn_before_noloc ()
rtx emit_jump_insn_before_noloc ()
rtx emit_call_insn_before_noloc ()
rtx emit_debug_insn_before_noloc ()
rtx emit_barrier_before ()
rtx emit_label_before ()
static rtx emit_insn_after_1 ()
static rtx emit_pattern_after_noloc (rtx x, rtx after, basic_block bb, rtx(*make_raw)(rtx))
rtx emit_insn_after_noloc ()
rtx emit_jump_insn_after_noloc ()
rtx emit_call_insn_after_noloc ()
rtx emit_debug_insn_after_noloc ()
rtx emit_barrier_after ()
rtx emit_label_after ()
static bool note_outside_basic_block_p ()
rtx emit_note_after ()
rtx emit_note_before ()
static rtx emit_pattern_after_setloc (rtx pattern, rtx after, int loc, rtx(*make_raw)(rtx))
static rtx emit_pattern_after (rtx pattern, rtx after, bool skip_debug_insns, rtx(*make_raw)(rtx))
rtx emit_insn_after_setloc ()
rtx emit_insn_after ()
rtx emit_jump_insn_after_setloc ()
rtx emit_jump_insn_after ()
rtx emit_call_insn_after_setloc ()
rtx emit_call_insn_after ()
rtx emit_debug_insn_after_setloc ()
rtx emit_debug_insn_after ()
static rtx emit_pattern_before_setloc (rtx pattern, rtx before, int loc, bool insnp, rtx(*make_raw)(rtx))
static rtx emit_pattern_before (rtx pattern, rtx before, bool skip_debug_insns, bool insnp, rtx(*make_raw)(rtx))
rtx emit_insn_before_setloc ()
rtx emit_insn_before ()
rtx emit_jump_insn_before_setloc ()
rtx emit_jump_insn_before ()
rtx emit_call_insn_before_setloc ()
rtx emit_call_insn_before ()
rtx emit_debug_insn_before_setloc ()
rtx emit_debug_insn_before ()
rtx emit_insn ()
rtx emit_debug_insn ()
rtx emit_jump_insn ()
rtx emit_call_insn ()
rtx emit_label ()
rtx emit_jump_table_data ()
rtx emit_barrier ()
rtx emit_note_copy ()
rtx emit_note ()
rtx emit_clobber ()
rtx gen_clobber ()
rtx emit_use ()
rtx gen_use ()
rtx set_unique_reg_note ()
rtx set_dst_reg_note ()
static enum rtx_code classify_insn ()
rtx emit ()
void start_sequence ()
void push_to_sequence ()
void push_to_sequence2 ()
void push_topmost_sequence ()
void pop_topmost_sequence ()
void end_sequence ()
int in_sequence_p ()
static void init_virtual_regs ()
rtx copy_insn_1 ()
rtx copy_insn ()
rtx copy_delay_slot_insn ()
void init_emit ()
static rtx gen_const_vector ()
rtx gen_rtx_CONST_VECTOR ()
void init_emit_regs ()
void init_emit_once ()
rtx emit_copy_of_insn_after ()
rtx gen_hard_reg_clobber ()
void insn_locations_init ()
void insn_locations_finalize ()
void set_curr_insn_location ()
location_t curr_insn_location ()
tree insn_scope ()
int insn_line ()
const char * insn_file ()
bool need_atomic_barrier_p ()

Variables

struct target_rtl default_target_rtl
struct target_rtlthis_target_rtl = &default_target_rtl
enum machine_mode byte_mode
enum machine_mode word_mode
enum machine_mode double_mode
enum machine_mode ptr_mode
struct rtl_data x_rtl
rtxregno_reg_rtx
static int label_num = 1
rtx const_tiny_rtx [4][(int) MAX_MACHINE_MODE]
rtx const_true_rtx
REAL_VALUE_TYPE dconst0
REAL_VALUE_TYPE dconst1
REAL_VALUE_TYPE dconst2
REAL_VALUE_TYPE dconstm1
REAL_VALUE_TYPE dconsthalf
FIXED_VALUE_TYPE fconst0 [MAX_FCONST0]
FIXED_VALUE_TYPE fconst1 [MAX_FCONST1]
rtx const_int_rtx [MAX_SAVED_CONST_INT *2+1]
rtx pc_rtx
rtx ret_rtx
rtx simple_return_rtx
rtx cc0_rtx
static htab_t const_int_htab
static htab_t mem_attrs_htab
static htab_t reg_attrs_htab
static htab_t const_double_htab
static htab_t const_fixed_htab
int split_branch_probability = -1
static tree spill_slot_decl
static struct sequence_stackfree_sequence_stack
static rtx copy_insn_scratch_in [MAX_RECOG_OPERANDS]
static rtx copy_insn_scratch_out [MAX_RECOG_OPERANDS]
static int copy_insn_n_scratches
static rtvec orig_asm_operands_vector
static rtvec copy_asm_operands_vector
static rtvec orig_asm_constraints_vector
static rtvec copy_asm_constraints_vector
static rtx hard_reg_clobbers [NUM_MACHINE_MODES][FIRST_PSEUDO_REGISTER]
location_t prologue_location
location_t epilogue_location
static location_t curr_location

Function Documentation

int active_insn_p ( )
Find the next insn after INSN that really does something.  This routine
   does not look inside SEQUENCEs.  After reload this also skips over
   standalone USE and CLOBBER insn.   

References reload_completed.

Referenced by active_insn_between(), add_cfis_to_fde(), can_fallthru(), dup_block_and_redirect(), emit_pattern_after_setloc(), emit_pattern_before_setloc(), expensive_function_p(), flow_active_insn_p(), next_active_insn(), next_active_insn_bb(), peep2_attempt(), prev_active_insn(), prev_active_insn_bb(), ready_remove_first_dispatch(), and reemit_insn_block_notes().

void add_function_usage_to ( )
Append CALL_FUSAGE to the CALL_INSN_FUNCTION_USAGE for CALL_INSN.   

Referenced by emit_call_1(), and expand_builtin_apply().

void add_insn ( )
Add INSN to the end of the doubly-linked list.
   INSN may be an INSN, JUMP_INSN, CALL_INSN, CODE_LABEL, BARRIER or NOTE.   

References get_insns(), get_last_insn(), link_insn_into_chain(), set_first_insn(), and set_last_insn().

Referenced by emit_barrier(), emit_call_insn(), emit_debug_insn(), emit_inc(), emit_insn(), emit_jump_insn(), emit_jump_table_data(), emit_label(), emit_libcall_block_1(), emit_note(), emit_note_copy(), and inc_for_reload().

void add_insn_after ( )
Like add_insn_after_nobb, but try to set BLOCK_FOR_INSN.
   If BB is NULL, an attempt is made to infer the bb from before.

   This and the next function should be the only functions called
   to insert an insn once delay slots have been filled since only
   they know how to update a SEQUENCE.  

References add_insn_after_nobb(), and df_insn_rescan().

Referenced by delete_from_delay_slot(), emit_barrier_after(), emit_delay_sequence(), emit_label_after(), emit_note_after(), emit_pattern_after_noloc(), relax_delay_slots(), and try_split().

static void add_insn_after_nobb ( )
static
Add INSN into the doubly-linked list after insn AFTER.   

References get_last_insn(), sequence_stack::last, link_insn_into_chain(), sequence_stack::next, set_last_insn(), and stack.

Referenced by add_insn_after(), and emit_note_after().

void add_insn_before ( )
Like add_insn_before_nobb, but try to set BLOCK_FOR_INSN.
   If BB is NULL, an attempt is made to infer the bb from before.

   This and the previous function should be the only functions called
   to insert an insn once delay slots have been filled since only
   they know how to update a SEQUENCE.  

References add_insn_before_nobb(), and df_insn_rescan().

Referenced by emit_barrier_before(), emit_label_before(), emit_note_before(), emit_pattern_before_noloc(), and permute_partial_schedule().

static void add_insn_before_nobb ( )
static
Add INSN into the doubly-linked list before insn BEFORE.   

References sequence_stack::first, get_insns(), link_insn_into_chain(), sequence_stack::next, set_first_insn(), and stack.

Referenced by add_insn_before(), and emit_note_before().

rtx adjust_address_1 ( rtx  memref,
enum machine_mode  mode,
HOST_WIDE_INT  offset,
int  validate,
int  adjust_address,
int  adjust_object,
HOST_WIDE_INT  size 
)
Return a memory reference like MEMREF, but with its mode changed
   to MODE and its address offset by OFFSET bytes.  If VALIDATE is
   nonzero, the memory address is forced to be valid.
   If ADJUST_ADDRESS is zero, OFFSET is only used to update MEM_ATTRS
   and the caller is responsible for adjusting MEMREF base register.
   If ADJUST_OBJECT is zero, the underlying object associated with the
   memory reference is left unchanged and the caller is responsible for
   dealing with it.  Otherwise, if the new memory reference is outside
   the underlying object, even partially, then the object is dropped.
   SIZE, if nonzero, is the size of an access in cases where MODE
   has no inherent size.   

References mem_attrs::addrspace, mem_attrs::alias, mem_attrs::align, change_address_1(), copy_rtx(), mem_attrs::expr, get_address_mode(), get_mem_attrs(), HOST_BITS_PER_WIDE_INT, HOST_WIDE_INT, memory_address_addr_space_p(), mem_attrs::offset, offset, mem_attrs::offset_known_p, plus_constant(), set_mem_attrs(), shift, mem_attrs::size, mem_attrs::size_known_p, targetm, and trunc_int_for_mode().

Referenced by adjust_automodify_address_1(), and widen_memory_access().

rtx adjust_automodify_address_1 ( rtx  memref,
enum machine_mode  mode,
rtx  addr,
HOST_WIDE_INT  offset,
int  validate 
)
Return a memory reference like MEMREF, but with its mode changed
   to MODE and its address changed to ADDR, which is assumed to be
   MEMREF offset by OFFSET bytes.  If VALIDATE is
   nonzero, the memory address is forced to be valid.   

References adjust_address_1(), and change_address_1().

void adjust_reg_mode ( )
Adjust REG in-place so that it has mode MODE.  It is assumed that the
   new register is a (possibly paradoxical) lowpart of the old one.   

References byte_lowpart_offset(), and update_reg_offset().

Referenced by do_SUBST_MODE(), try_combine(), and undo_all().

int byte_lowpart_offset ( enum machine_mode  outer_mode,
enum machine_mode  inner_mode 
)
Return the number of bytes between the start of an OUTER_MODE
   in-memory value and the start of an INNER_MODE in-memory value,
   given that the former is a lowpart of the latter.  It may be a
   paradoxical lowpart, in which case the offset will be negative
   on big-endian targets.   

References subreg_lowpart_offset().

Referenced by adjust_reg_mode(), alter_subreg(), set_reg_attrs_for_decl_rtl(), set_reg_attrs_from_value(), track_loc_p(), var_lowpart(), and vt_add_function_parameter().

rtx change_address ( )
Like change_address_1 with VALIDATE nonzero, but we are not saying in what
   way we are changing MEMREF, so we only preserve the alias set.   

References mem_attrs::align, change_address_1(), mem_attrs::expr, gen_rtx_MEM(), get_mem_attrs(), mem_attrs_eq_p(), mem_attrs::offset_known_p, set_mem_attrs(), mem_attrs::size, and mem_attrs::size_known_p.

Referenced by assign_parm_setup_block(), emit_block_move_via_loop(), and expand_builtin_init_trampoline().

static rtx change_address_1 ( rtx  ,
enum  machine_mode,
rtx  ,
int   
)
static
static rtx change_address_1 ( )
static
Return a memory reference like MEMREF, but with its mode changed to MODE
   and its address changed to ADDR.  (VOIDmode means don't change the mode.
   NULL for ADDR means don't change the address.)  VALIDATE is nonzero if the
   returned memory location is required to be valid.  The memory
   attributes are not changed.   

References gen_rtx_MEM(), memory_address_addr_space(), memory_address_addr_space_p(), reload_completed, reload_in_progress, and rtx_equal_p().

static enum rtx_code classify_insn ( )
static
Return an indication of which type of insn should have X as a body.
   The value is CODE_LABEL, INSN, CALL_INSN or JUMP_INSN.   

References SET.

Referenced by emit().

void clear_mem_offset ( )
Clear the offset of MEM.   

References get_mem_attrs(), and set_mem_attrs().

Referenced by merge_memattrs().

void clear_mem_size ( )
Clear the size of MEM.   

References get_mem_attrs(), and set_mem_attrs().

Referenced by merge_memattrs().

rtx const_double_from_real_value ( )
Return a CONST_DOUBLE rtx for a floating-point value specified by
   VALUE in mode MODE.   

References lookup_const_double().

static int const_double_htab_eq ( const void *  ,
const void *   
)
static

Referenced by init_emit_once().

static int const_double_htab_eq ( )
static
Returns nonzero if the value represented by X (really a ...)
   is the same as that represented by Y (really a ...)  

References real_identical().

static hashval_t const_double_htab_hash ( const void *  )
static

Referenced by init_emit_once().

static hashval_t const_double_htab_hash ( )
static
Returns a hash code for X (which is really a CONST_DOUBLE).   

References real_hash().

rtx const_fixed_from_fixed_value ( )
Return a CONST_FIXED rtx for a fixed-point value specified by
   VALUE in mode MODE.   

References lookup_const_fixed().

Referenced by const_fixed_from_double_int().

static int const_fixed_htab_eq ( const void *  ,
const void *   
)
static

Referenced by init_emit_once().

static int const_fixed_htab_eq ( )
static
Returns nonzero if the value represented by X (really a ...)
   is the same as that represented by Y (really a ...).   

References fixed_identical().

static hashval_t const_fixed_htab_hash ( const void *  )
static

Referenced by init_emit_once().

static hashval_t const_fixed_htab_hash ( )
static
Returns a hash code for X (which is really a CONST_FIXED).   

References fixed_hash().

static int const_int_htab_eq ( const void *  ,
const void *   
)
static

Referenced by init_emit_once().

static int const_int_htab_eq ( )
static
Returns nonzero if the value represented by X (which is really a
   CONST_INT) is the same as that given by Y (which is really a
   HOST_WIDE_INT *).   

References HOST_WIDE_INT.

static hashval_t const_int_htab_hash ( const void *  )
static

Referenced by init_emit_once().

static hashval_t const_int_htab_hash ( )
static
Returns a hash code for X (which is a really a CONST_INT).   
rtx copy_delay_slot_insn ( )
Return a copy of INSN that can be used in a SEQUENCE delay slot,
   on that assumption that INSN itself remains in its original place.   

References copy_rtx().

Referenced by fill_simple_delay_slots(), fill_slots_from_thread(), and steal_delay_list_from_target().

rtx copy_insn ( )
Create a new copy of an rtx.
   This function differs from copy_rtx in that it handles SCRATCHes and
   ASM_OPERANDs properly.
   INSN doesn't really have to be a full INSN; it could be just the
   pattern.   

References copy_insn_1().

Referenced by add_to_speculative_block(), bypass_block(), compare_and_jump_seq(), eliminate_partially_redundant_load(), eliminate_regs_in_insn(), and emit_copy_of_insn_after().

rtx copy_insn_1 ( )
Recursively create a new copy of an rtx for copy_insn.
   This function differs from copy_rtx in that it handles SCRATCHes and
   ASM_OPERANDs properly.
   Normally, this function is not used directly; use copy_insn as front end.
   However, you could first copy an insn pattern with copy_insn and then use
   this function afterwards to properly copy any REG_NOTEs containing
   SCRATCHes.   

References copy(), copy_asm_constraints_vector, copy_asm_operands_vector, copy_insn_n_scratches, rtvec_alloc(), and shared_const_p().

Referenced by copy_insn(), eliminate_regs_in_insn(), emit_copy_of_insn_after(), and gcse_emit_move_after().

rtx copy_rtx_if_shared ( )
Mark ORIG as in use, and return a copy of it if it was already in use.
   Recursively does the same for subexpressions.  Uses
   copy_rtx_if_shared_1 to reduce stack space.   

References copy_rtx_if_shared_1().

Referenced by try_combine(), unshare_all_rtl_1(), unshare_all_rtl_in_chain(), and unswitch_single_loop().

static void copy_rtx_if_shared_1 ( rtx orig)
static
static void copy_rtx_if_shared_1 ( )
static
Mark *ORIG1 as in use, and set it to a copy of it if it was already in
   use.  Recursively does the same for subexpressions.   

References copy_rtx_if_shared_1(), gen_rtvec_v(), len, and shared_const_p().

rtx emit ( )
Emit the rtl pattern X as an appropriate kind of insn.
   If X is a label, it is simply added into the insn chain.   

References any_uncondjump_p(), classify_insn(), emit_barrier(), emit_call_insn(), emit_debug_insn(), emit_insn(), emit_jump_insn(), and emit_label().

rtx emit_barrier_before ( )
Make an insn of code BARRIER
   and output it before the insn BEFORE.   

References add_insn_before().

rtx emit_call_insn ( )
Make an insn of code CALL_INSN with pattern X
   and add it to the end of the doubly-linked list.   

References add_insn(), emit_insn(), and make_call_insn_raw().

Referenced by emit(), emit_call_1(), and expand_builtin_apply().

rtx emit_call_insn_after ( )
Like emit_call_insn_after_noloc, but set INSN_LOCATION according to AFTER.   

References emit_pattern_after(), and make_call_insn_raw().

Referenced by emit_copy_of_insn_after().

rtx emit_call_insn_after_noloc ( )
Make an instruction with body X and code CALL_INSN
   and output it after the instruction AFTER.   

References emit_pattern_after_noloc(), and make_call_insn_raw().

rtx emit_call_insn_after_setloc ( )
Like emit_call_insn_after_noloc, but set INSN_LOCATION according to LOC.   

References emit_pattern_after_setloc(), and make_call_insn_raw().

rtx emit_call_insn_before ( )
Like emit_call_insn_before_noloc,
   but set insn_location according to BEFORE.   

References emit_pattern_before(), and make_call_insn_raw().

rtx emit_call_insn_before_noloc ( )
Make an instruction with body X and code CALL_INSN
   and output it before the instruction BEFORE.   

References emit_pattern_before_noloc(), and make_call_insn_raw().

rtx emit_call_insn_before_setloc ( )
Like emit_insn_before_noloc, but set INSN_LOCATION according to LOC.   

References emit_pattern_before_setloc(), and make_call_insn_raw().

rtx emit_copy_of_insn_after ( )
Produce exact duplicate of insn INSN after AFTER.
   Care updating of libcall regions if present.   

References add_reg_note(), copy_insn(), copy_insn_1(), emit_call_insn_after(), emit_debug_insn_after(), emit_insn_after(), emit_jump_insn_after(), and mark_jump_label().

Referenced by duplicate_insn_chain(), and relax_delay_slots().

rtx emit_debug_insn ( )
Make an insn of code DEBUG_INSN with pattern X
   and add it to the end of the doubly-linked list.   

References add_insn(), get_last_insn(), last, make_debug_insn_raw(), and sequence_stack::next.

Referenced by emit(), and expand_gimple_basic_block().

rtx emit_debug_insn_after ( )
Like emit_debug_insn_after_noloc, but set INSN_LOCATION according to AFTER.   

References emit_pattern_after(), and make_debug_insn_raw().

Referenced by dead_debug_insert_temp(), and emit_copy_of_insn_after().

rtx emit_debug_insn_after_noloc ( )
Make an instruction with body X and code CALL_INSN
   and output it after the instruction AFTER.   

References emit_pattern_after_noloc(), and make_debug_insn_raw().

rtx emit_debug_insn_after_setloc ( )
Like emit_debug_insn_after_noloc, but set INSN_LOCATION according to LOC.   

References emit_pattern_after_setloc(), and make_debug_insn_raw().

rtx emit_debug_insn_before ( )
Like emit_debug_insn_before_noloc,
   but set insn_location according to BEFORE.   

References emit_pattern_before(), and make_debug_insn_raw().

Referenced by avoid_complex_debug_insns(), dead_debug_insert_temp(), dead_debug_promote_uses(), and delete_trivially_dead_insns().

rtx emit_debug_insn_before_noloc ( )
Make an instruction with body X and code DEBUG_INSN
   and output it before the instruction BEFORE.   

References emit_pattern_before_noloc(), and make_debug_insn_raw().

rtx emit_debug_insn_before_setloc ( )
Like emit_insn_before_noloc, but set INSN_LOCATION according to LOC.   

References emit_pattern_before_setloc(), and make_debug_insn_raw().

rtx emit_insn ( )
Take X and emit it at the end of the doubly-linked
   INSN list.

   Returns the last insn emitted.   

References add_insn(), get_last_insn(), last, make_insn_raw(), and sequence_stack::next.

Referenced by allocate_dynamic_stack_space(), asan_clear_shadow(), assign_parm_setup_reg(), assign_parms(), check_and_process_move(), convert_move(), curr_insn_transform(), do_compare_and_jump(), doloop_modify(), duplicate_insns_of_cycles(), emit(), emit_add2_insn(), emit_add3_insn(), emit_call_insn(), emit_clobber(), emit_delay_sequence(), emit_inc(), emit_inc_dec_insn_before(), emit_input_reload_insns(), emit_insn_if_valid_for_reload(), emit_move_ccmode(), emit_move_insn_1(), emit_move_list(), emit_move_multi_word(), emit_move_via_integer(), emit_output_reload_insns(), emit_stack_probe(), emit_stack_restore(), emit_stack_save(), emit_use(), expand_absneg_bit(), expand_asm_loc(), expand_asm_memory_barrier(), expand_asm_operands(), expand_atomic_fetch_op(), expand_binop(), expand_binop_directly(), expand_builtin_atomic_clear(), expand_builtin_int_roundingfn(), expand_builtin_int_roundingfn_2(), expand_builtin_longjmp(), expand_builtin_mathfn(), expand_builtin_mathfn_2(), expand_builtin_mathfn_3(), expand_builtin_mathfn_ternary(), expand_builtin_memcmp(), expand_builtin_nonlocal_goto(), expand_builtin_prefetch(), expand_builtin_return(), expand_builtin_setjmp_receiver(), expand_builtin_setjmp_setup(), expand_builtin_strcmp(), expand_builtin_strncmp(), expand_builtin_trap(), expand_call(), expand_compare_and_swap_loop(), expand_cond_expr_using_cmove(), expand_copysign_bit(), expand_ctz(), expand_doubleword_clz(), expand_dw2_landing_pad_for_region(), expand_eh_return(), expand_expr_real_1(), expand_expr_real_2(), expand_ffs(), expand_function_end(), expand_mem_signal_fence(), expand_mem_thread_fence(), expand_sdiv_pow2(), expand_unop(), expand_unop_direct(), expand_vector_broadcast(), expmed_mult_highpart_optab(), find_shift_sequence(), gen_cond_trap(), gen_reload(), gen_reload_chain_without_interm_reg_p(), gmalloc(), implicit_clobber_conflict_p(), inc_for_reload(), insert_insn_on_edge(), match_reload(), maybe_emit_unop_insn(), maybe_expand_insn(), move_block_from_reg(), move_block_to_reg(), move_by_pieces(), move_by_pieces_1(), noce_emit_cmove(), noce_emit_move_insn(), noce_emit_store_flag(), noce_try_cmove_arith(), prepare_cmp_insn(), process_addr_reg(), process_address(), process_insert_insn(), simplify_operand_subreg(), stack_protect_epilogue(), stack_protect_prologue(), store_by_pieces(), store_by_pieces_2(), store_constructor(), and thread_prologue_and_epilogue_insns().

static rtx emit_insn_after_1 ( )
static
Helper for emit_insn_after, handles lists of instructions
   efficiently.   

References df_insn_rescan(), df_set_bb_dirty(), first, get_last_insn(), last, and set_last_insn().

Referenced by emit_pattern_after_noloc().

rtx emit_insn_after_noloc ( )
Make X be output after the insn AFTER and set the BB of insn.  If
   BB is NULL, an attempt is made to infer the BB from AFTER.   

References emit_pattern_after_noloc(), and make_insn_raw().

Referenced by cfg_layout_merge_blocks(), commit_one_edge_insertion(), emit_nop_for_unique_locus_between(), expand_gimple_basic_block(), fixup_reorder_chain(), gimple_expand_cfg(), insert_insn_end_basic_block(), and insert_insn_start_basic_block().

rtx emit_insn_after_setloc ( )
Like emit_insn_after_noloc, but set INSN_LOCATION according to LOC.   

References emit_pattern_after_setloc(), and make_insn_raw().

Referenced by peep2_attempt(), and try_split().

rtx emit_insn_before_noloc ( )
Make X be output before the instruction BEFORE.   

References emit_pattern_before_noloc(), and make_insn_raw().

Referenced by commit_one_edge_insertion(), and insert_insn_end_basic_block().

rtx emit_jump_insn_after_noloc ( )
Make an insn of code JUMP_INSN with body X
   and output it after the insn AFTER.   

References emit_pattern_after_noloc(), and make_jump_insn_raw().

Referenced by try_redirect_by_replacing_jump().

rtx emit_jump_insn_after_setloc ( )
Like emit_jump_insn_after_noloc, but set INSN_LOCATION according to LOC.   

References emit_pattern_after_setloc(), and make_jump_insn_raw().

Referenced by force_nonfallthru_and_redirect().

rtx emit_jump_insn_before ( )
Like emit_jump_insn_before_noloc, but set INSN_LOCATION according to BEFORE.   

References emit_pattern_before(), and make_jump_insn_raw().

Referenced by create_check_block_twin(), and cse_insn().

rtx emit_jump_insn_before_noloc ( )
Make an instruction with body X and code JUMP_INSN
   and output it before the instruction BEFORE.   

References emit_pattern_before_noloc(), and make_jump_insn_raw().

rtx emit_jump_insn_before_setloc ( )
like emit_insn_before_noloc, but set INSN_LOCATION according to LOC.   

References emit_pattern_before_setloc(), and make_jump_insn_raw().

rtx emit_jump_table_data ( )
Make an insn of code JUMP_TABLE_DATA
   and add it to the end of the doubly-linked list.   

References add_insn(), and table.

Referenced by emit_case_dispatch_table().

rtx emit_label_after ( )
Emit the label LABEL after the insn AFTER.   

References add_insn_after().

Referenced by find_end_label(), get_label_before(), and sched_create_recovery_block().

rtx emit_label_before ( )
Emit the label LABEL before the insn BEFORE.   

References add_insn_before().

Referenced by block_label(), and get_uncond_jump_length().

rtx emit_note ( )
rtx emit_note_copy ( )
Emit a copy of note ORIG.   

References add_insn(), and make_note_raw().

Referenced by duplicate_insn_chain().

static rtx emit_pattern_after ( rtx  pattern,
rtx  after,
bool  skip_debug_insns,
rtx(*)(rtx make_raw 
)
static
Insert PATTERN after AFTER.  MAKE_RAW indicates how to turn PATTERN
   into a real insn.  SKIP_DEBUG_INSNS indicates whether to insert after
   any DEBUG_INSNs.   

References emit_pattern_after_noloc(), and emit_pattern_after_setloc().

Referenced by emit_call_insn_after(), emit_debug_insn_after(), emit_insn_after(), and emit_jump_insn_after().

static rtx emit_pattern_after_setloc ( rtx  pattern,
rtx  after,
int  loc,
rtx(*)(rtx make_raw 
)
static
Insert PATTERN after AFTER, setting its INSN_LOCATION to LOC.
   MAKE_RAW indicates how to turn PATTERN into a real insn.   

References active_insn_p(), emit_pattern_after_noloc(), and last.

Referenced by emit_call_insn_after_setloc(), emit_debug_insn_after_setloc(), emit_insn_after_setloc(), emit_jump_insn_after_setloc(), and emit_pattern_after().

static rtx emit_pattern_before ( rtx  pattern,
rtx  before,
bool  skip_debug_insns,
bool  insnp,
rtx(*)(rtx make_raw 
)
static
Insert PATTERN before BEFORE.  MAKE_RAW indicates how to turn PATTERN
   into a real insn.  SKIP_DEBUG_INSNS indicates whether to insert
   before any DEBUG_INSNs.  INSNP indicates if PATTERN is meant for an
   INSN as opposed to a JUMP_INSN, CALL_INSN, etc.   

References emit_pattern_before_noloc(), emit_pattern_before_setloc(), and sequence_stack::next.

Referenced by emit_call_insn_before(), emit_debug_insn_before(), emit_insn_before(), and emit_jump_insn_before().

static rtx emit_pattern_before_noloc ( rtx  x,
rtx  before,
rtx  last,
basic_block  bb,
rtx(*)(rtx make_raw 
)
static
Emit insn(s) of given code and pattern
   at a specified place within the doubly-linked list.

   All of the emit_foo global entry points accept an object
   X which is either an insn list or a PATTERN of a single
   instruction.

   There are thus a few canonical ways to generate code and
   emit it at a specific place in the instruction stream.  For
   example, consider the instruction named SPOT and the fact that
   we would like to emit some instructions before SPOT.  We might
   do it like this:

        start_sequence ();
        ... emit the new instructions ...
        insns_head = get_insns ();
        end_sequence ();

        emit_insn_before (insns_head, SPOT);

   It used to be common to generate SEQUENCE rtl instead, but that
   is a relic of the past which no longer occurs.  The reason is that
   SEQUENCE rtl results in much fragmented RTL memory since the SEQUENCE
   generated would almost certainly die right after it was created.   

References add_insn_before(), last, and sequence_stack::next.

Referenced by emit_call_insn_before_noloc(), emit_debug_insn_before_noloc(), emit_insn_before_noloc(), emit_jump_insn_before_noloc(), emit_pattern_before(), and emit_pattern_before_setloc().

static rtx emit_pattern_before_setloc ( rtx  pattern,
rtx  before,
int  loc,
bool  insnp,
rtx(*)(rtx make_raw 
)
static
Insert PATTERN before BEFORE, setting its INSN_LOCATION to LOC.
   MAKE_RAW indicates how to turn PATTERN into a real insn.  INSNP
   indicates if PATTERN is meant for an INSN as opposed to a JUMP_INSN,
   CALL_INSN, etc.   

References active_insn_p(), emit_pattern_before_noloc(), first, get_insns(), and last.

Referenced by emit_call_insn_before_setloc(), emit_debug_insn_before_setloc(), emit_insn_before_setloc(), emit_jump_insn_before_setloc(), and emit_pattern_before().

void end_sequence ( void  )
After emitting to a sequence, restore previous saved state.

   To get the contents of the sequence just made, you must call
   `get_insns' *before* calling here.

   If the compiler might have deferred popping arguments while
   generating this sequence, and this sequence will not be immediately
   inserted into the instruction stream, use do_pending_stack_adjust
   before calling get_insns.  That will ensure that the deferred
   pops are inserted into this sequence, and not into some random
   location in the instruction stream.  See INHIBIT_DEFER_POP for more
   information about deferred popping of arguments.   

References sequence_stack::first, free_sequence_stack, sequence_stack::last, memset(), sequence_stack::next, set_first_insn(), and set_last_insn().

Referenced by add_test(), asan_clear_shadow(), asan_emit_stack_protection(), assign_parm_setup_block(), assign_parm_setup_reg(), assign_parm_setup_stack(), assign_parms_unsplit_complex(), check_and_process_move(), combine_var_copies_in_loop_exit(), compare_and_jump_seq(), compensate_edge(), computation_cost(), cond_move_process_if_block(), convert_move(), copy_src_to_dest(), curr_insn_transform(), doloop_modify(), dup_block_and_redirect(), dw2_build_landing_pads(), emit_delay_sequence(), emit_inc_dec_insn_before(), emit_initial_value_sets(), emit_input_reload_insns(), emit_move_list(), emit_move_multi_word(), emit_output_reload_insns(), emit_partition_copy(), emit_use_return_register_into_block(), end_ifcvt_sequence(), expand_absneg_bit(), expand_atomic_fetch_op(), expand_binop(), expand_builtin_apply_args(), expand_builtin_int_roundingfn(), expand_builtin_int_roundingfn_2(), expand_builtin_mathfn(), expand_builtin_mathfn_2(), expand_builtin_mathfn_3(), expand_builtin_mathfn_ternary(), expand_builtin_return(), expand_builtin_saveregs(), expand_builtin_strlen(), expand_call(), expand_cond_expr_using_cmove(), expand_copysign_bit(), expand_ctz(), expand_doubleword_clz(), expand_dummy_function_end(), expand_expr_real_2(), expand_ffs(), expand_fix(), expand_fixed_convert(), expand_float(), expand_function_end(), expand_sdiv_pow2(), expand_twoval_binop_libfunc(), expand_unop(), expmed_mult_highpart_optab(), find_shift_sequence(), fix_crossing_unconditional_branches(), gen_clobber(), gen_cond_trap(), gen_move_insn(), gen_use(), generate_prolog_epilog(), get_address_cost(), get_arg_pointer_save_area(), gimple_expand_cfg(), gmalloc(), implicit_clobber_conflict_p(), inherit_in_ebb(), inherit_reload_reg(), init_set_costs(), initialize_uninitialized_regs(), insert_base_initialization(), insert_insn_on_edge(), insert_move_insn_before(), insert_value_copy_on_edge(), insert_var_expansion_initialization(), instantiate_virtual_regs_in_insn(), match_asm_constraints_1(), match_reload(), noce_emit_cmove(), noce_emit_move_insn(), noce_emit_store_flag(), noce_process_if_block(), noce_try_abs(), noce_try_addcc(), noce_try_cmove(), noce_try_cmove_arith(), noce_try_minmax(), noce_try_sign_mask(), noce_try_store_flag(), noce_try_store_flag_constants(), noce_try_store_flag_mask(), optimize_mode_switching(), pop_topmost_sequence(), prepare_float_lib_cmp(), process_addr_reg(), process_address(), process_insert_insn(), record_store(), replace_read(), resolve_shift_zext(), resolve_simple_move(), rtl_lv_add_condition_to_bb(), simplify_operand_subreg(), sjlj_emit_dispatch_table(), sjlj_emit_function_enter(), sjlj_emit_function_exit(), sjlj_mark_call_sites(), split_iv(), thread_prologue_and_epilogue_insns(), try_optimize_cfg(), and unroll_loop_runtime_iterations().

static int find_auto_inc ( )
static
Find a RTX_AUTOINC class rtx which matches DATA.   

References RTX_AUTOINC, and rtx_equal_p().

Referenced by try_split().

rtx gen_blockage ( void  )
Generate an empty ASM_INPUT, which is used to block attempts to schedule,
   and to block register equivalences to be seen across this insn.   

Referenced by expand_builtin_setjmp_receiver(), expand_function_end(), and thread_prologue_and_epilogue_insns().

rtx gen_clobber ( )
Return a sequence of insns to clobber lvalue X.   

References emit_clobber(), end_sequence(), get_insns(), and start_sequence().

Referenced by eliminate_regs_in_insn(), and find_reloads().

rtx gen_const_mem ( )
Generate a memory referring to non-trapping constant memory.   

References gen_rtx_MEM().

Referenced by assemble_trampoline_template(), build_constant_desc(), do_tablejump(), and force_const_mem().

static rtx gen_const_vector ( enum  machine_mode,
int   
)
static

Referenced by init_emit_once().

static rtx gen_const_vector ( )
static
Generate a vector constant for mode MODE and constant value CONSTANT.   

References const_tiny_rtx, and rtvec_alloc().

rtx gen_frame_mem ( )
Generate a MEM referring to fixed portions of the frame, e.g., register
   save areas.   

References gen_rtx_MEM(), get_frame_alias_set(), and set_mem_alias_set().

Referenced by expand_builtin_return_addr().

rtx gen_hard_reg_clobber ( )

References gen_rtx_REG(), and hard_reg_clobbers.

rtx gen_highpart_mode ( )
Like gen_highpart, but accept mode of EXP operand in case EXP can
   be VOIDmode constant.   

References gen_highpart(), simplify_gen_subreg(), and subreg_highpart_offset().

rtx gen_lowpart_common ( )
Return a value representing some low-order bits of X, where the number
   of low-order bits is given by MODE.  Note that no conversion is done
   between floating-point and fixed-point values, rather, the bit
   representation is returned.

   This function handles the cases in common between gen_lowpart, below,
   and two variants in cse.c and combine.c.  These are the cases that can
   be safely handled at all points in the compilation.

   If this is not a case we can handle, return 0.   

References HOST_BITS_PER_WIDE_INT, mode_for_size(), offset, simplify_gen_subreg(), and subreg_lowpart_offset().

Referenced by combine_simplify_rtx(), do_output_reload(), expand_expr_real_1(), extract_low_bits(), force_to_mode(), gen_lowpart_for_combine(), gen_lowpart_general(), gen_lowpart_if_possible(), move2add_use_add2_insn(), store_split_bit_field(), and strip_paradoxical_subreg().

rtx gen_reg_rtx ( )
Generate a REG rtx for a new pseudo register of mode MODE.
   This pseudo is assigned the next sequential register number.   

References gen_raw_REG(), generating_concat_p, memset(), min_align(), and regno_reg_rtx.

Referenced by allocate_basic_variable(), allocate_dynamic_stack_space(), assign_parm_remove_parallels(), assign_parm_setup_reg(), assign_parm_setup_stack(), assign_temp(), avoid_likely_spilled_reg(), choose_best_pseudo_reg(), convert_modes(), convert_move(), copy_blkmode_to_reg(), copy_to_mode_reg(), copy_to_reg(), copy_to_suggested_reg(), do_compare_and_jump(), do_jump_by_parts_zero_rtx(), do_store_flag(), do_tablejump(), doloop_optimize(), emit_block_move_via_loop(), emit_conditional_add(), emit_conditional_move(), emit_cstore(), emit_group_load_1(), emit_group_store(), emit_libcall_block_1(), emit_library_call_value_1(), emit_stack_save(), emit_store_flag_1(), emit_store_flag_force(), entry_register(), expand_abs(), expand_absneg_bit(), expand_asm_operands(), expand_assignment(), expand_atomic_compare_and_swap(), expand_atomic_fetch_op(), expand_atomic_load(), expand_atomic_test_and_set(), expand_binop(), expand_builtin(), expand_builtin_apply(), expand_builtin_cexpi(), expand_builtin_eh_copy_values(), expand_builtin_eh_filter(), expand_builtin_eh_pointer(), expand_builtin_int_roundingfn(), expand_builtin_int_roundingfn_2(), expand_builtin_mathfn(), expand_builtin_mathfn_2(), expand_builtin_mathfn_3(), expand_builtin_mathfn_ternary(), expand_builtin_memcmp(), expand_builtin_powi(), expand_builtin_signbit(), expand_builtin_sincos(), expand_builtin_stpcpy(), expand_builtin_strcmp(), expand_builtin_strlen(), expand_builtin_strncmp(), expand_builtin_thread_pointer(), expand_call(), expand_compare_and_swap_loop(), expand_copysign_absneg(), expand_copysign_bit(), expand_divmod(), expand_doubleword_bswap(), expand_doubleword_clz(), expand_doubleword_shift_condmove(), expand_expr_real_1(), expand_expr_real_2(), expand_fix(), expand_float(), expand_function_end(), expand_function_start(), expand_gimple_basic_block(), expand_mult_highpart(), expand_one_error_var(), expand_one_register_var(), expand_parity(), expand_sdiv_pow2(), expand_sfix_optab(), expand_smod_pow2(), expand_twoval_binop(), expand_twoval_unop(), expand_unop(), expand_var_during_unrolling(), expand_vec_perm(), expand_vector_broadcast(), extract_bit_field_1(), extract_bit_field_using_extv(), find_shift_sequence(), fix_crossing_unconditional_branches(), force_not_mem(), force_operand(), force_reg(), gen_group_rtx(), gen_reg_rtx_and_attrs(), gen_reg_rtx_offset(), get_hard_reg_initial_val(), get_temp_reg(), implicit_clobber_conflict_p(), ira_create_new_reg(), load_register_parameters(), lra_create_new_reg_with_unique_value(), make_safe_from(), maybe_emit_compare_and_swap_exchange_loop(), maybe_emit_group_store(), maybe_legitimize_operand(), maybe_optimize_fetch_op(), noce_emit_cmove(), noce_process_if_block(), noce_try_addcc(), noce_try_cmove_arith(), noce_try_sign_mask(), noce_try_store_flag_mask(), prepare_cmp_insn(), prepare_float_lib_cmp(), resolve_simple_move(), round_trampoline_addr(), save_fixed_argument_area(), schedule_reg_moves(), split_iv(), store_bit_field_1(), store_bit_field_using_insv(), store_constructor(), store_field(), store_one_arg(), store_unaligned_arguments_into_pseudos(), unroll_loop_runtime_iterations(), widen_bswap(), widen_leading(), and widen_operand().

rtx gen_reg_rtx_and_attrs ( )
Generate a REG rtx for a new pseudo register, copying the mode
   and attributes from X.   

References gen_reg_rtx(), and set_reg_attrs_from_value().

Referenced by build_store_vectors(), delete_store(), hoist_code(), move_invariant_reg(), and pre_delete().

rtx gen_reg_rtx_offset ( )
Generate a new pseudo-register with the same attributes as REG, but
   with OFFSET added to the REG_OFFSET.   

References gen_reg_rtx(), and update_reg_offset().

Referenced by decompose_register().

rtvec gen_rtvec ( )
Create an rtvec and stores within it the RTXen passed in the arguments.   

References rtvec_def::elem, and rtvec_alloc().

Referenced by expand_asm_memory_barrier(), and try_combine().

rtx gen_rtx_CONST_INT ( )
There are some RTL codes that require special attention; the generation
   functions do the raw handling.  If you add to this list, modify
   special_rtx in gengenrtl.c as well.   

References const_int_rtx, and const_true_rtx.

Referenced by init_emit_once().

rtx gen_rtx_CONST_VECTOR ( )
Generate a vector like gen_rtx_raw_CONST_VEC, but use the zero vector when
   all elements are zero, and the one vector when all elements are one.   

Referenced by const_vector_from_tree(), expand_mult_highpart(), expand_vec_perm(), expand_vector_broadcast(), simplify_binary_operation_1(), simplify_const_binary_operation(), simplify_const_unary_operation(), simplify_immed_subreg(), and simplify_ternary_operation().

rtx gen_rtx_MEM ( )

Referenced by asan_emit_stack_protection(), assign_parm_find_stack_rtl(), assign_parm_setup_reg(), assign_parms(), assign_stack_local_1(), assign_stack_temp_for_type(), change_address(), change_address_1(), compute_argument_addresses(), cselib_init(), decode_addr_const(), default_static_chain(), emit_call_1(), emit_library_call_value_1(), emit_move_change_mode(), emit_move_complex_push(), emit_push_insn(), emit_single_push_insn_1(), emit_stack_probe(), emit_stack_restore(), expand_asm_memory_barrier(), expand_asm_operands(), expand_assignment(), expand_builtin_apply(), expand_builtin_atomic_compare_exchange(), expand_builtin_init_dwarf_reg_sizes(), expand_builtin_init_trampoline(), expand_builtin_longjmp(), expand_builtin_nonlocal_goto(), expand_builtin_return(), expand_builtin_setjmp_setup(), expand_builtin_strlen(), expand_builtin_update_setjmp_buf(), expand_builtin_va_copy(), expand_call(), expand_debug_expr(), expand_errno_check(), expand_expr_real_1(), expand_function_start(), expand_one_error_var(), expand_one_stack_var_at(), gen_const_mem(), gen_frame_mem(), gen_tmp_stack_mem(), get_builtin_sync_mem(), get_group_info(), get_memory_rtx(), get_spill_slot_decl(), init_caller_save(), init_expr_target(), init_fake_stack_mems(), init_reload(), init_set_costs(), initialize_argument_information(), make_decl_rtl(), noce_try_cmove_arith(), prepare_call_arguments(), produce_memory_decl_rtl(), replace_pseudos_in(), rest_of_handle_auto_inc_dec(), restore_fixed_argument_area(), rtl_for_decl_init(), rtl_for_decl_location(), save_fixed_argument_area(), scan_insn(), sched_analyze_2(), store_one_arg(), and vt_add_function_parameter().

rtx gen_rtx_REG ( )

References cfun, rtl_data::frame_pointer_needed, gen_raw_REG(), lra_in_progress, regno_reg_rtx, reload_completed, and reload_in_progress.

Referenced by assign_parm_setup_block(), can_assign_to_reg_without_clobbers_p(), can_reload_into(), canon_reg(), choose_best_pseudo_reg(), choose_best_reg_1(), choose_reload_regs(), combine_reloads(), combine_set_extension(), cse_cc_succs(), cse_condition_code_reg(), cse_insn(), default_static_chain(), do_output_reload(), emit_library_call_value_1(), expand_asm_operands(), expand_builtin_apply(), expand_builtin_apply_args_1(), expand_builtin_return(), expand_call(), expand_dw2_landing_pad_for_region(), expand_function_end(), find_comparisons_in_bb(), find_dummy_reload(), find_reloads_address_1(), gen_hard_reg_clobber(), gen_reload(), gen_reload_chain_without_interm_reg_p(), gen_rtx_REG_offset(), get_hard_reg_initial_val(), gmalloc(), handle_common_deferred_options(), init_caller_save(), init_elim_table(), init_expr_target(), init_lower_subreg(), init_reload(), insert_restore(), insert_save(), load_register_parameters(), maybe_memory_address_addr_space_p(), maybe_select_cc_mode(), move2add_use_add3_insn(), move_block_from_reg(), move_block_to_reg(), move_btr_def(), peep2_find_free_register(), prefer_and_bit_test(), push_reload(), reg_to_stack(), reload_adjust_reg_for_mode(), reload_combine_recognize_pattern(), reload_cse_regs_1(), reload_cse_simplify_operands(), reload_cse_simplify_set(), replace_reg_with_saved_mem(), result_vector(), set_reload_reg(), setup_prohibited_mode_move_regs(), simplify_set(), transform_ifelse(), try_combine(), and try_eliminate_compare().

rtx gen_rtx_REG_offset ( rtx  reg,
enum machine_mode  mode,
unsigned int  regno,
int  offset 
)
Generate a register with same attributes as REG, but with OFFSET
   added to the REG_OFFSET.   

References gen_rtx_REG(), and update_reg_offset().

Referenced by alter_subreg(), expand_debug_parm_decl(), simplify_subreg(), var_lowpart(), and vt_add_function_parameter().

rtx gen_tmp_stack_mem ( )
Generate a MEM referring to a temporary use of the stack, not part
    of the fixed stack frame.  For example, something which is pushed
    by a target splitter.   

References function::calls_alloca, cfun, gen_rtx_MEM(), get_frame_alias_set(), and set_mem_alias_set().

rtx gen_use ( )
Return a sequence of insns to use rvalue X.   

References emit_use(), end_sequence(), get_insns(), and start_sequence().

Referenced by rtl_flow_call_edges_add().

int get_first_label_num ( void  )
Return first label number used in this function (if any were used).   

References first_label_num.

Referenced by compute_alignments(), init_eliminable_invariants(), and reload_combine().

rtx get_first_nonnote_insn ( void  )
Return the first nonnote insn emitted in current sequence or current
   function.  This routine looks inside SEQUENCEs.   

References get_insns(), and next_insn().

rtx get_last_insn_anywhere ( void  )
Emission of insns (adding them to the doubly-linked list).   
Return the last insn emitted, even if it is in a sequence now pushed.   

References get_last_insn(), sequence_stack::last, sequence_stack::next, and stack.

rtx get_last_nonnote_insn ( void  )
Return the last nonnote insn emitted in current sequence or current
   function.  This routine looks inside SEQUENCEs.   

References get_last_insn(), and previous_insn().

int get_max_insn_count ( void  )
Return the number of actual (non-debug) insns emitted in this
   function.   

Referenced by alloc_hash_table().

int get_mem_align_offset ( )
Return OFFSET if XEXP (MEM, 0) - OFFSET is known to be ALIGN
   bits aligned for 0 <= OFFSET < ALIGN / BITS_PER_UNIT, or
   -1 if not known.   

References component_ref_field_offset(), rtl_data::expr, host_integerp(), HOST_WIDE_INT, offset, and tree_low_cst().

static reg_attrs* get_reg_attrs ( tree  ,
int   
)
static
static reg_attrs* get_reg_attrs ( )
static
Allocate a new reg_attrs structure and insert it into the hash table if
   one identical to it is not already in the table.  We are doing this for
   MEM of mode MODE.   

References reg_attrs::decl, memcpy(), reg_attrs::offset, and offset.

rtx immed_double_const ( )
Return a CONST_DOUBLE or CONST_INT for a value specified as a pair
   of ints: I0 is the low-order word and I1 is the high-order word.
   For values that are larger than HOST_BITS_PER_DOUBLE_INT, the
   implied upper bits are copies of the high bit of i1.  The value
   itself is neither signed nor unsigned.  Do not use this routine for
   non-integer modes; convert to REAL_VALUE_TYPE and use
   CONST_DOUBLE_FROM_REAL_VALUE.   

References gen_int_mode(), HOST_BITS_PER_WIDE_INT, i1, and lookup_const_double().

Referenced by c_readstr(), clz_loc_descriptor(), expand_doubleword_shift(), expand_expr_real_1(), expand_expr_real_2(), expand_smod_pow2(), expand_subword_shift(), immed_double_int_const(), simplify_const_unary_operation(), and simplify_immed_subreg().

int in_sequence_p ( void  )
Return 1 if currently emitting into a sequence.   

Referenced by expand_dummy_function_end(), expand_function_end(), and resolve_simple_move().

void init_emit ( void  )
Initialize data structures and variables in this file
   before generating rtl for each function.   

References first_label_num, init_virtual_regs(), label_num, memcpy(), regno_reg_rtx, set_first_insn(), and set_last_insn().

Referenced by prepare_function_start().

void init_emit_regs ( void  )
Initialise global register information required by all functions.   

References mem_attrs::addrspace, mem_attrs::align, gen_raw_REG(), init_reg_modes_target(), mem_attrs::size, and mem_attrs::size_known_p.

Referenced by backend_init_target().

static void init_virtual_regs ( )
static
Put the various virtual registers into REGNO_REG_RTX.   

References regno_reg_rtx.

Referenced by init_emit().

const char* insn_file ( )
Return source file of the statement that produced this insn.   

Referenced by dump_insn_location(), notice_source_line(), and print_rtx().

int insn_line ( )
Return line number of the statement that produced this insn.   

Referenced by dump_insn_location(), notice_source_line(), and print_rtx().

void insn_locations_finalize ( void  )
At the end of emit stage, clear current location.   

References curr_location.

Referenced by expand_thunk(), and gimple_expand_cfg().

void insn_locations_init ( void  )
Allocate insn location datastructure.   

Referenced by expand_thunk(), and gimple_expand_cfg().

tree insn_scope ( )
Return lexical scope block insn belongs to.   

Referenced by dwarf2out_var_location(), and reemit_insn_block_notes().

rtx last_call_insn ( void  )
Return the last CALL_INSN in the current list, or 0 if there is none.
   This routine does not look inside SEQUENCEs.   

References get_last_insn().

Referenced by emit_call_1(), and expand_builtin_apply().

static void link_insn_into_chain ( )
inlinestatic
Add INSN to the end of the doubly-linked list, between PREV and NEXT.
   INSN may be any object that can appear in the chain: INSN_P and NOTE_P objects,
   but also BARRIERs and JUMP_TABLE_DATAs.  PREV and NEXT may be NULL.   

References sequence_stack::next.

Referenced by add_insn(), add_insn_after_nobb(), and add_insn_before_nobb().

static rtx lookup_const_double ( rtx  )
static
static rtx lookup_const_double ( )
static
CONST_DOUBLEs might be created from pairs of integers, or from
   REAL_VALUE_TYPEs.  Also, their length is known only at run time,
   so we cannot use gen_rtx_raw_CONST_DOUBLE.   
Determine whether REAL, a CONST_DOUBLE, already exists in the
   hash table.  If so, return its counterpart; otherwise add it
   to the hash table and return it.   
static rtx lookup_const_fixed ( rtx  )
static
static rtx lookup_const_fixed ( )
static
Determine whether FIXED, a CONST_FIXED, already exists in the
   hash table.  If so, return its counterpart; otherwise add it
   to the hash table and return it.   
static rtx make_call_insn_raw ( )
static
static rtx make_debug_insn_raw ( )
static
static rtx make_jump_insn_raw ( )
static
static rtx make_note_raw ( )
static
Like `make_insn_raw' but make a NOTE instead of an insn.   

References memset().

Referenced by emit_note(), emit_note_after(), emit_note_before(), and emit_note_copy().

rtx make_safe_from ( )
Copy X if necessary so that it won't be altered by changes in OTHER.
   Return X or the rtx for the pseudo reg the value of X was copied into.
   OTHER must be valid as a SET_DEST.   

References emit_move_insn(), gen_reg_rtx(), and reg_mentioned_p().

static void mark_label_nuses ( rtx  )
static

Referenced by mark_label_nuses(), and try_split().

static void mark_label_nuses ( )
static
Increment the label uses for all labels present in rtx.   

References mark_label_nuses().

void mark_reg_pointer ( )
static void mark_used_flags ( )
static
Set the USED bit in X and its non-shareable subparts to FLAG.   

Referenced by reset_used_flags(), and set_used_flags().

void mark_user_reg ( )
Identify REG (which may be a CONCAT) as a user register.   

Referenced by assign_parm_setup_reg(), and expand_one_register_var().

int max_label_num ( void  )
Return 1 + the largest label number used so far in the current function.   

References label_num.

Referenced by compute_alignments(), grow_label_align(), init_eliminable_invariants(), reload_combine(), shorten_branches(), and update_alignments().

int max_reg_num ( void  )
Return 1 plus largest pseudo reg number used in the current function.   

Referenced by allocate_reg_info(), assign_by_spills(), build_conflicts(), build_single_def_use_links(), build_store_vectors(), choose_best_pseudo_reg(), cleanup_cfg(), combine_split_insns(), compute_hash_table_work(), compute_store_table(), create_live_range_start_chains(), create_log_links(), cse_main(), cselib_init(), curr_insn_transform(), dead_or_predicable(), decompose_multiword_subregs(), df_grow_reg_info(), df_print_word_regset(), dump_reg_info(), execute_jump(), expand_reg_info(), find_costs_and_classes(), find_moveable_pseudos(), fix_reg_equiv_init(), fwprop_done(), fwprop_init(), grow_reg_equivs(), if_convert(), implicit_clobber_conflict_p(), init_alias_analysis(), init_costs(), init_deps(), init_live_reload_and_inheritance_pseudos(), init_lives(), init_loop_tree_node(), init_reg_info(), init_regno_assign_info(), initiate_allocnos(), initiate_regno_cost_classes(), ira(), ira_emit(), ira_expand_reg_equiv(), ira_flattening(), ira_print_disposition(), ira_set_pseudo_classes(), ira_sort_regnos_for_alter_reg(), is_too_expensive(), lra(), lra_assign(), lra_clear_live_ranges(), lra_coalesce(), lra_constraints(), lra_create_live_ranges(), lra_eliminate(), lra_emit_add(), lra_emit_move(), lra_final_code_change(), lra_need_for_spills_p(), lra_spill(), lra_update_reg_val_offset(), maybe_memory_address_addr_space_p(), print_live_ranges(), print_pseudo_costs(), propagate_allocno_info(), rebuild_regno_allocno_maps(), reg_is_remote_constant_p(), regmove_optimize(), regno_clobbered_at_setjmp(), regstat_compute_calls_crossed(), regstat_compute_ri(), regstat_init_n_sets_and_refs(), remove_some_program_points_and_update_live_ranges(), remove_unnecessary_allocnos(), resize_reg_info(), rest_of_handle_auto_inc_dec(), rest_of_handle_combine(), rest_of_handle_cse(), rest_of_handle_cse2(), rest_of_handle_cse_after_global_opts(), rest_of_handle_sms(), sched_analyze_reg(), sched_init(), setup_live_pseudos_and_spill_after_risky_transforms(), setup_min_max_allocno_live_range_point(), setup_preferred_alternate_classes_for_new_pseudos(), setup_reg_classes(), setup_reg_equiv_init(), spill_pseudos(), try_combine(), and web_main().

void maybe_set_first_label_num ( )
If the rtx for label was created during the expansion of a nested
   function, then first_label_num won't include this label number.
   Fix this now so that array indices work later.   

References first_label_num.

Referenced by expand_label().

static bool mem_attrs_eq_p ( )
static
static int mem_attrs_htab_eq ( const void *  ,
const void *   
)
static

Referenced by init_emit_once().

static int mem_attrs_htab_eq ( )
static
Returns nonzero if the value represented by X (which is really a
   mem_attrs *) is the same as that given by Y (which is also really a
   mem_attrs *).   

References mem_attrs_eq_p().

static hashval_t mem_attrs_htab_hash ( const void *  )
static

Referenced by init_emit_once().

static hashval_t mem_attrs_htab_hash ( )
static
int mem_expr_equal_p ( )
Returns 1 if both MEM_EXPR can be considered equal
   and 0 otherwise.   

References operand_equal_p().

Referenced by merge_memattrs().

bool need_atomic_barrier_p ( )
Return true if memory model MODEL requires a pre-operation (release-style)
   barrier or a post-operation (acquire-style) barrier.  While not universal,
   this function matches behavior of several targets.   

References MEMMODEL_ACQ_REL, MEMMODEL_ACQUIRE, MEMMODEL_CONSUME, MEMMODEL_RELAXED, MEMMODEL_RELEASE, and MEMMODEL_SEQ_CST.

rtx next_cc0_user ( )
Return the next insn that uses CC0 after INSN, which is assumed to
   set it.  This is the inverse of prev_cc0_setter (i.e., prev_cc0_setter
   applied to the result of this function should yield INSN).

   Normally, this is simply the next insn.  However, if a REG_CC_USER note
   is present, it contains the insn that uses CC0.

   Return 0 if we can't find the insn.   

References find_reg_note(), next_nonnote_insn(), and reg_mentioned_p().

Referenced by next_insn_tests_no_inequality().

rtx next_insn ( )
Return the next insn.  If it is a SEQUENCE, return the first insn
   of the sequence.   

Referenced by emit_notes_in_bb(), get_first_nonnote_insn(), mark_target_live_regs(), move_nop_to_previous_block(), peephole2_optimize(), process_insn_equiv_class(), and record_effective_endpoints().

rtx next_nondebug_insn ( )
Return the next insn after INSN that is not a DEBUG_INSN.  This
   routine does not look inside SEQUENCEs.   
rtx next_nonnote_insn_bb ( )
Return the next insn after INSN that is not a NOTE, but stop the
   search before we enter another basic block.  This routine does not
   look inside SEQUENCEs.   

Referenced by get_last_bb_insn().

rtx next_nonnote_nondebug_insn ( )
Return the next insn after INSN that is not a NOTE nor DEBUG_INSN.
   This routine does not look inside SEQUENCEs.   

Referenced by distribute_notes(), find_moveable_pseudos(), queue_to_ready(), reload_cse_move2add(), sched_analyze_insn(), set_live_p(), and try_combine().

rtx next_real_insn ( )
Return the next INSN, CALL_INSN or JUMP_INSN after INSN;
   or 0, if there is none.  This routine does not look inside
   SEQUENCEs.   

Referenced by commit_schedule(), dwarf2out_var_location(), expand_gimple_stmt(), fill_simple_delay_slots(), mark_transaction_restart_calls(), optimize_reg_copy_1(), relax_delay_slots(), and rtx_renumbered_equal_p().

static bool note_outside_basic_block_p ( )
static
Notes require a bit of special handling: Some notes need to have their
   BLOCK_FOR_INSN set, others should never have it set, and some should
   have it set or clear depending on the context.    
Return true iff a note of kind SUBTYPE should be emitted with routines
   that never set BLOCK_FOR_INSN on NOTE.  BB_BOUNDARY is true if the
   caller is asked to emit a note before BB_HEAD, or after BB_END.   

Referenced by emit_note_after(), and emit_note_before().

rtx offset_address ( )
Return a memory reference like MEMREF, but whose address is changed by
   adding OFFSET, an RTX, to it.  POW2 is the highest power of two factor
   known to be in OFFSET (possibly 1).   

References mem_attrs::addrspace, mem_attrs::align, change_address_1(), force_reg(), get_address_mode(), get_mem_attrs(), memory_address_addr_space_p(), mem_attrs::offset_known_p, set_mem_attrs(), simplify_gen_binary(), mem_attrs::size, mem_attrs::size_known_p, and update_temp_slot_address().

Referenced by expand_assignment(), expand_expr_real_1(), store_constructor(), and store_expr().

rtx operand_subword ( )
Return subword OFFSET of operand OP.
   The word number, OFFSET, is interpreted as the word number starting
   at the low-order address.  OFFSET 0 is the low-order word if not
   WORDS_BIG_ENDIAN, otherwise it is the high-order word.

   If we cannot extract the required word, we return zero.  Otherwise,
   an rtx corresponding to the requested word will be returned.

   VALIDATE_ADDRESS is nonzero if the address should be validated.  Before
   reload has completed, a valid address will always be returned.  After
   reload, if a valid address cannot be returned, we return zero.

   If VALIDATE_ADDRESS is zero, we simply form the required address; validating
   it is the responsibility of the caller.

   MODE is the mode of OP in case it is a CONST_INT.

   ??? This is still rather broken for some cases.  The problem for the
   moment is that all callers of this thing provide no 'goal mode' to
   tell us to work with.  This exists because all callers were written
   in a word based SUBREG world.
   Now use of this function can be deprecated by simplify_subreg in most
   cases.

References reload_completed, replace_equiv_address(), simplify_gen_subreg(), strict_memory_address_addr_space_p(), and word_mode.

Referenced by convert_move(), copy_blkmode_from_reg(), copy_blkmode_to_reg(), emit_move_multi_word(), expand_absneg_bit(), expand_binop(), expand_copysign_bit(), expand_doubleword_bswap(), expand_doubleword_mult(), expand_unop(), extract_bit_field_1(), find_equiv_reg(), move_block_from_reg(), and operand_subword_force().

rtx operand_subword_force ( )
void pop_topmost_sequence ( void  )
After emitting to the outer-level insn chain, update the outer-level
   insn chain, and restore the previous saved state.   

References end_sequence(), sequence_stack::first, get_insns(), get_last_insn(), sequence_stack::last, sequence_stack::next, and stack.

Referenced by expand_builtin_apply_args(), expand_builtin_saveregs(), and get_arg_pointer_save_area().

rtx prev_active_insn ( )
Find the last insn before INSN that really does something.  This routine
   does not look inside SEQUENCEs.  After reload this also skips over
   standalone USE and CLOBBER insn.   

References active_insn_p().

Referenced by delete_dead_insn(), merge_blocks_move_successor_nojumps(), and relax_delay_slots().

rtx prev_cc0_setter ( )
Find the insn that set CC0 for INSN.  Unless INSN has a REG_CC_SETTER
   note, it is the previous insn.   

References find_reg_note(), prev_nonnote_insn(), and sets_cc0_p().

Referenced by distribute_notes(), and emit_use_return_register_into_block().

rtx prev_nondebug_insn ( )
Return the previous insn before INSN that is not a DEBUG_INSN.
   This routine does not look inside SEQUENCEs.   

Referenced by doloop_condition_get(), doloop_register_get(), outgoing_edges_match(), sched_extend_bb(), try_forward_edges(), and update_equiv_regs().

rtx prev_nonnote_insn_bb ( )
Return the previous insn before INSN that is not a NOTE, but stop
   the search before we enter another basic block.  This routine does
   not look inside SEQUENCEs.   

Referenced by find_bb_boundaries().

rtx prev_nonnote_nondebug_insn ( )
Return the previous insn before INSN that is not a NOTE nor DEBUG_INSN.
   This routine does not look inside SEQUENCEs.   

Referenced by canonicalize_condition(), chain_to_prev_insn(), chain_to_prev_insn_p(), cse_extended_basic_block(), deps_start_bb(), noce_process_if_block(), reload_combine_recognize_pattern(), and try_head_merge_bb().

rtx prev_real_insn ( )
Return the last INSN, CALL_INSN or JUMP_INSN before INSN;
   or 0, if there is none.  This routine does not look inside
   SEQUENCEs.   

Referenced by add_var_loc_to_decl(), dwarf2out_var_location(), lra_delete_dead_insn(), and try_head_merge_bb().

rtx previous_insn ( )
Return the previous insn.  If it is a SEQUENCE, return the last insn
   of the sequence.   

Referenced by delete_scheduled_jump(), dwarf2out_var_location(), and get_last_nonnote_insn().

void push_to_sequence ( )
Set up the insn chain starting with FIRST as the current sequence,
   saving the previously current one.  See the documentation for
   start_sequence for more information about how to use this function.   

References last, set_first_insn(), set_last_insn(), and start_sequence().

Referenced by curr_insn_transform(), emit_input_reload_insns(), emit_output_reload_insns(), expand_builtin_return(), insert_insn_on_edge(), match_reload(), process_addr_reg(), process_address(), and simplify_operand_subreg().

void push_to_sequence2 ( )
Like push_to_sequence, but take the last insn as an argument to avoid
   looping through the list.   

References set_first_insn(), set_last_insn(), and start_sequence().

Referenced by assign_parm_setup_block(), assign_parm_setup_reg(), assign_parm_setup_stack(), and assign_parms_unsplit_complex().

void push_topmost_sequence ( void  )
Set up the outer-level insn chain
   as the current sequence, saving the previously current one.   

References sequence_stack::first, sequence_stack::last, sequence_stack::next, set_first_insn(), set_last_insn(), stack, and start_sequence().

Referenced by expand_builtin_apply_args(), expand_builtin_saveregs(), and get_arg_pointer_save_area().

static int reg_attrs_htab_eq ( const void *  ,
const void *   
)
static

Referenced by init_emit_once().

static int reg_attrs_htab_eq ( )
static
Returns nonzero if the value represented by X (which is really a
   reg_attrs *) is the same as that given by Y (which is also really a
   reg_attrs *).   

References reg_attrs::decl, and reg_attrs::offset.

static hashval_t reg_attrs_htab_hash ( const void *  )
static

Referenced by init_emit_once().

static hashval_t reg_attrs_htab_hash ( )
static
Returns a hash code for X (which is a really a reg_attrs *).   

References reg_attrs::decl, and reg_attrs::offset.

bool reg_is_parm_p ( )
Return TRUE if REG is a PARM_DECL, FALSE otherwise.   

Referenced by ira_build_conflicts().

void remove_insn ( )
Unlink INSN from the insn chain.

   This function knows how to handle sequences.
   
   This function does not invalidate data flow information associated with
   INSN (i.e. does not call df_insn_delete).  That makes this function
   usable for only disconnecting an insn from the chain, and re-emit it
   elsewhere later.

   To later insert INSN elsewhere in the insn chain via add_insn and
   similar functions, PREV_INSN and NEXT_INSN must be nullified by
   the caller.  Nullifying them here breaks many insn chain walks.

   To really delete an insn and related DF information, use delete_insn.   

References sequence_stack::first, get_insns(), get_last_insn(), sequence_stack::last, sequence_stack::next, set_first_insn(), set_last_insn(), and stack.

Referenced by delete_insn(), delete_related_insns(), emit_delay_sequence(), remove_notes(), resolve_simple_move(), and try_split().

void reorder_insns_nobb ( )
This function is deprecated, please use sequences instead.

   Move a consecutive bunch of insns to a different place in the chain.
   The insns to be moved are those between FROM and TO.
   They are moved to a new position after the insn AFTER.
   AFTER must not be FROM or TO or any insn in between.

   This function does not know about SEQUENCEs and hence should not be
   called after delay-slot filling has been done.   

References get_insns(), get_last_insn(), set_first_insn(), and set_last_insn().

Referenced by cleanup_barriers(), create_basic_block_structure(), delete_insn(), get_ebb_head_tail(), merge_blocks_move_predecessor_nojumps(), merge_blocks_move_successor_nojumps(), permute_partial_schedule(), reload_as_needed(), reorder_insns(), and rtl_merge_blocks().

rtx replace_equiv_address ( )
Return a memory reference like MEMREF, but with its address changed to
   ADDR.  The caller is asserting that the actual piece of memory pointed
   to is the same, just the form of the address is being changed, such as
   by putting something into a register.   

References change_address_1(), and update_temp_slot_address().

Referenced by emit_move_resolve_push(), expand_expr_real_1(), expand_movstr(), instantiate_virtual_regs_in_insn(), maybe_legitimize_operand_same_code(), operand_subword(), try_apply_stack_adjustment(), use_anchored_address(), and validize_mem().

static void reset_all_used_flags ( )
static
Go through all the RTL insn bodies and clear all the USED bits.   

References get_insns(), and reset_insn_used_flags().

Referenced by verify_rtl_sharing().

static void reset_insn_used_flags ( )
static
Reset used-flags for INSN.   

References reset_used_flags().

Referenced by reset_all_used_flags().

void reset_used_flags ( )
Clear all the USED bits in X to allow copy_rtx_if_shared to be used
   to look for shared sub-parts.   

References mark_used_flags().

Referenced by reset_insn_used_flags(), try_combine(), unshare_all_rtl_again(), and verify_insn_sharing().

void set_decl_incoming_rtl ( )
Assign the RTX X to parameter declaration T.  BY_REFERENCE_P is true
   if the ABI requires the parameter to be passed by reference.   

References set_reg_attrs_for_decl_rtl().

Referenced by assign_parms(), assign_parms_unsplit_complex(), and expand_function_start().

void set_decl_rtl ( )
Assign the RTX X to declaration T.   

References set_reg_attrs_for_decl_rtl().

rtx set_dst_reg_note ( )
Like set_unique_reg_note, but don't do anything unless INSN sets DST.   

References set_unique_reg_note().

Referenced by assign_parm_setup_reg(), emit_libcall_block_1(), expand_absneg_bit(), expand_binop(), expand_divmod(), expand_fix(), expand_function_start(), expand_mult_const(), and gen_reload().

void set_insn_deleted ( )
Replace insn with an deleted instruction note.   

References df_insn_delete().

Referenced by find_moveable_pseudos().

void set_mem_addr_space ( )
Set the address space of MEM to ADDRSPACE (target-defined).   

References mem_attrs::addrspace, get_mem_attrs(), and set_mem_attrs().

Referenced by expand_debug_expr(), expand_expr_real_1(), noce_try_cmove_arith(), and produce_memory_decl_rtl().

void set_mem_attributes_minus_bitpos ( rtx  ref,
tree  t,
int  objectp,
HOST_WIDE_INT  bitpos 
)
Given REF (a MEM) and T, either the type of X or the expression
   corresponding to REF, set the memory attributes.  OBJECTP is nonzero
   if we are making a new object of this type.  BITPOS is nonzero if
   there is an offset outstanding on T that will be applied later.   

References mem_attrs::addrspace, mem_attrs::alias, mem_attrs::align, array_ref_element_size(), array_ref_low_bound(), component_uses_parent_alias_set(), mem_attrs::expr, get_alias_set(), get_base_address(), get_object_alignment_1(), host_integerp(), HOST_WIDE_INT, integer_zerop(), memset(), mem_attrs::offset, mem_attrs::offset_known_p, set_mem_attrs(), mem_attrs::size, mem_attrs::size_known_p, tree_could_trap_p(), tree_low_cst(), and type().

Referenced by expand_assignment(), and set_mem_attributes().

void set_mem_attrs_for_spill ( )
Given MEM, a result from assign_stack_local, fill in the memory
   attributes as appropriate for a register allocator spill slot.
   These slots are not aliasable by other memory.  We arrange for
   them all to use a single MEM_EXPR, so that the aliasing code can
   work properly in the case of shared spill slots.   

References mem_attrs::addrspace, mem_attrs::alias, mem_attrs::expr, get_mem_attrs(), get_spill_slot_decl(), mem_attrs::offset, mem_attrs::offset_known_p, and set_mem_attrs().

Referenced by alter_reg(), and assign_mem_slot().

void set_mem_expr ( )
void set_mem_offset ( )
Set the offset of MEM to OFFSET.   

References get_mem_attrs(), offset, and set_mem_attrs().

Referenced by assign_parm_find_stack_rtl(), and assign_parm_setup_stack().

void set_new_first_and_last_insn ( )
For procedure integration.   
Install new pointers to the first and last insns in the chain.
   Also, set cur_insn_uid to one higher than the last in use.
   Used for an inline-procedure after copying the insn chain.   

References set_first_insn(), and set_last_insn().

void set_reg_attrs_for_decl_rtl ( )
Set the REG_ATTRS for registers in value X, given that X represents
   decl T.   

References byte_lowpart_offset(), get_reg_attrs(), and subreg_lowpart_p().

Referenced by emit_case_decision_tree(), expand_asm_operands(), expand_expr_real_1(), set_decl_incoming_rtl(), set_decl_rtl(), and set_rtl().

void set_reg_attrs_for_parm ( )
Set the register attributes for registers contained in PARM_RTX.
   Use needed values from memory attributes of MEM.   

References get_reg_attrs(), and set_reg_attrs_from_value().

Referenced by assign_parm_find_stack_rtl().

void set_reg_attrs_from_value ( )
Copy REG's attributes from X, if X has any attributes.  If REG and X
   have different modes, REG is a (possibly paradoxical) lowpart of X.   

References byte_lowpart_offset(), get_reg_attrs(), mark_reg_pointer(), offset, subreg_lowpart_p(), and update_reg_offset().

Referenced by gen_reg_rtx_and_attrs(), reg_scan_mark_refs(), and set_reg_attrs_for_parm().

static void set_used_decls ( tree  )
static
static void set_used_decls ( )
static
Go through all virtual stack slots of a function and mark them as
   shared.  We never replace the DECL_RTLs themselves with a copy,
   but expressions mentioned into a DECL_RTL cannot be shared with
   expressions in the instruction stream.

   Note that reload may convert pseudo registers into memories in-place.
   Pseudo registers are always shared, but MEMs never are.  Thus if we
   reset the used flags on MEMs in the instruction stream, we must set
   them again on MEMs that appear in DECL_RTLs.   

References set_used_decls(), and set_used_flags().

void set_used_flags ( )
Set all the USED bits in X to allow copy_rtx_if_shared to be used
   to look for shared sub-parts.   

References mark_used_flags().

Referenced by end_ifcvt_sequence(), noce_process_if_block(), set_used_decls(), and unshare_all_rtl_again().

void start_sequence ( void  )
Begin emitting insns to a sequence.  If this sequence will contain
   something that might cause the compiler to pop arguments to function
   calls (because those pops have previously been deferred; see
   INHIBIT_DEFER_POP for more details), use do_pending_stack_adjust
   before calling this function.  That will ensure that the deferred
   pops are not accidentally emitted in the middle of this sequence.   

References sequence_stack::first, free_sequence_stack, get_insns(), get_last_insn(), sequence_stack::last, sequence_stack::next, set_first_insn(), and set_last_insn().

Referenced by add_test(), asan_clear_shadow(), asan_emit_stack_protection(), assign_parm_setup_reg(), check_and_process_move(), combine_var_copies_in_loop_exit(), compare_and_jump_seq(), compensate_edge(), computation_cost(), cond_move_process_if_block(), convert_move(), copy_src_to_dest(), curr_insn_transform(), doloop_modify(), dup_block_and_redirect(), dw2_build_landing_pads(), emit_delay_sequence(), emit_inc_dec_insn_before(), emit_initial_value_sets(), emit_move_list(), emit_move_multi_word(), emit_output_reload_insns(), emit_partition_copy(), emit_use_return_register_into_block(), expand_absneg_bit(), expand_atomic_fetch_op(), expand_binop(), expand_builtin_apply_args(), expand_builtin_int_roundingfn(), expand_builtin_int_roundingfn_2(), expand_builtin_mathfn(), expand_builtin_mathfn_2(), expand_builtin_mathfn_3(), expand_builtin_mathfn_ternary(), expand_builtin_saveregs(), expand_builtin_strlen(), expand_call(), expand_cond_expr_using_cmove(), expand_copysign_bit(), expand_ctz(), expand_doubleword_clz(), expand_expr_real_2(), expand_ffs(), expand_fix(), expand_fixed_convert(), expand_float(), expand_function_end(), expand_sdiv_pow2(), expand_twoval_binop_libfunc(), expand_unop(), expmed_mult_highpart_optab(), find_shift_sequence(), fix_crossing_unconditional_branches(), gen_clobber(), gen_cond_trap(), gen_move_insn(), gen_use(), generate_prolog_epilog(), get_address_cost(), get_arg_pointer_save_area(), gimple_expand_cfg(), gmalloc(), implicit_clobber_conflict_p(), inherit_in_ebb(), inherit_reload_reg(), init_set_costs(), initialize_uninitialized_regs(), insert_base_initialization(), insert_insn_on_edge(), insert_move_insn_before(), insert_value_copy_on_edge(), insert_var_expansion_initialization(), instantiate_virtual_regs_in_insn(), match_asm_constraints_1(), match_reload(), noce_emit_cmove(), noce_emit_move_insn(), noce_emit_store_flag(), noce_process_if_block(), noce_try_abs(), noce_try_addcc(), noce_try_bitop(), noce_try_cmove(), noce_try_cmove_arith(), noce_try_minmax(), noce_try_move(), noce_try_sign_mask(), noce_try_store_flag(), noce_try_store_flag_constants(), noce_try_store_flag_mask(), optimize_mode_switching(), prepare_float_lib_cmp(), process_addr_reg(), process_address(), process_insert_insn(), push_to_sequence(), push_to_sequence2(), push_topmost_sequence(), record_store(), replace_read(), resolve_shift_zext(), resolve_simple_move(), rtl_lv_add_condition_to_bb(), simplify_operand_subreg(), sjlj_emit_dispatch_table(), sjlj_emit_function_enter(), sjlj_emit_function_exit(), sjlj_mark_call_sites(), split_iv(), thread_prologue_and_epilogue_insns(), try_optimize_cfg(), and unroll_loop_runtime_iterations().

unsigned int subreg_highpart_offset ( )
Return offset in bytes to get OUTERMODE high part
   of the value in mode INNERMODE stored in memory in target format.   

References offset.

Referenced by emit_store_flag_1(), gen_highpart(), and gen_highpart_mode().

rtx try_split ( )
Try splitting insns that can be split for better scheduling.
   PAT is the pattern which might split.
   TRIAL is the insn providing PAT.
   LAST is nonzero if we should return the last insn of the sequence produced.

   If this routine succeeds in splitting, it returns the first or last
   replacement insn depending on the value of LAST.  Otherwise, it
   returns TRIAL.  If the insn to be returned can be split, it will be.   

References add_insn_after(), add_reg_note(), any_condjump_p(), copy_reg_eh_region_note_backward(), delete_insn(), emit_barrier_after(), emit_insn_after_setloc(), find_auto_inc(), find_reg_note(), fixup_args_size_notes(), for_each_rtx(), get_last_insn(), mark_jump_label(), mark_label_nuses(), sequence_stack::next, remove_insn(), rtx_equal_p(), split_branch_probability, split_insns(), and unshare_all_rtl_in_chain().

Referenced by fill_simple_delay_slots(), fill_slots_from_thread(), final_scan_insn(), split_insn(), thread_prologue_and_epilogue_insns(), and try_merge_delay_insns().

unsigned int unshare_all_rtl ( void  )

References get_insns(), and unshare_all_rtl_1().

Referenced by gimple_expand_cfg().

static void unshare_all_rtl_1 ( )
static
Go through all the RTL insn bodies and copy any invalid shared
   structure.  This routine should only be called once.   

References copy_rtx_if_shared(), and unshare_all_rtl_in_chain().

Referenced by unshare_all_rtl(), and unshare_all_rtl_again().

void unshare_all_rtl_again ( )
Go through all the RTL insn bodies and copy any invalid shared
   structure, again.  This is a fairly expensive thing to do so it
   should be done sparingly.   

References cfun, function::decl, reset_used_flags(), set_used_decls(), set_used_flags(), and unshare_all_rtl_1().

Referenced by lra(), and reload().

void unshare_all_rtl_in_chain ( )
Go through all the RTL insn bodies and copy any invalid shared structure.
   Assumes the mark bits are cleared at entry.   

References copy_rtx_if_shared().

Referenced by end_ifcvt_sequence(), noce_process_if_block(), try_split(), unroll_loop_runtime_iterations(), and unshare_all_rtl_1().

static void update_reg_offset ( )
static
Update NEW with the same attributes as REG, but with OFFSET added
   to the REG_OFFSET.   

References get_reg_attrs().

Referenced by adjust_reg_mode(), gen_reg_rtx_offset(), gen_rtx_REG_offset(), and set_reg_attrs_from_value().

bool validate_subreg ( enum machine_mode  omode,
enum machine_mode  imode,
const_rtx  reg,
unsigned int  offset 
)
We want to create (subreg:OMODE (obj:IMODE) OFFSET).  Return true if
   this construct would be valid, and false otherwise.   

References lra_in_progress, subreg_lowpart_offset(), subreg_offset_representable_p(), and word_mode.

Referenced by extract_low_bits(), gen_lowpart_if_possible(), gen_rtx_SUBREG(), make_extraction(), simplify_gen_subreg(), simplify_subreg(), store_bit_field_1(), use_narrower_mode_test(), and valid_multiword_target_p().

static void verify_insn_sharing ( )
static
Verify sharing in INSN.   

References reset_used_flags().

Referenced by verify_rtl_sharing().

DEBUG_FUNCTION void verify_rtl_sharing ( void  )
Go through all the RTL insn bodies and check that there is no unexpected
   sharing in between the subexpressions.   

References get_insns(), reset_all_used_flags(), timevar_pop(), timevar_push(), and verify_insn_sharing().

Referenced by execute_function_todo().

static void verify_rtx_sharing ( )
static
Check that ORIG is not marked when it should not be and mark ORIG as in use,
   Recursively does the same for subexpressions.   

References debug_rtx(), error(), internal_error(), len, reload_completed, reload_in_progress, SET, and shared_const_p().

rtx widen_memory_access ( )
Return a memory reference like MEMREF, but with its mode widened to
   MODE and offset by OFFSET.  This would be used by targets that e.g.
   cannot issue QImode memory operations and have to use SImode memory
   operations plus masking logic.   

References adjust_address_1(), mem_attrs::alias, compare_tree_int(), component_ref_field_offset(), mem_attrs::expr, get_mem_attrs(), host_integerp(), mem_attrs::offset, mem_attrs::offset_known_p, set_mem_attrs(), mem_attrs::size, mem_attrs::size_known_p, and tree_low_cst().


Variable Documentation

enum machine_mode byte_mode
htab_t const_double_htab
static
A hash table storing all CONST_DOUBLEs.   
htab_t const_fixed_htab
static
A hash table storing all CONST_FIXEDs.   
htab_t const_int_htab
static
A hash table storing CONST_INTs whose absolute value is greater
   than MAX_SAVED_CONST_INT.   
rtx const_int_rtx[MAX_SAVED_CONST_INT *2+1]
We make one copy of (const_int C) where C is in
   [- MAX_SAVED_CONST_INT, MAX_SAVED_CONST_INT]
   to save space during the compilation and simplify comparisons of
   integers.   

Referenced by gen_rtx_CONST_INT(), and init_emit_once().

rtx const_tiny_rtx[4][(int) MAX_MACHINE_MODE]
We record floating-point CONST_DOUBLEs in each floating-point mode for
   the values of 0, 1, and 2.  For the integer entries and VOIDmode, we
   record a copy of const[012]_rtx and constm1_rtx.  CONSTM1_RTX
   is set only for MODE_INT and MODE_VECTOR_INT modes.   

Referenced by gen_const_vector(), and init_emit_once().

rtvec copy_asm_constraints_vector
static

Referenced by copy_insn_1().

rtvec copy_asm_operands_vector
static
When an insn is being copied by copy_insn_1, this is nonzero if we have
   copied an ASM_OPERANDS.
   In that case, it is the copied input-operand vector.   

Referenced by copy_insn_1().

int copy_insn_n_scratches
static

Referenced by copy_insn_1().

rtx copy_insn_scratch_in[MAX_RECOG_OPERANDS]
static
Used by copy_insn_1 to avoid copying SCRATCHes more than once.   
rtx copy_insn_scratch_out[MAX_RECOG_OPERANDS]
static
location_t curr_location
static
Hold current location information and last location information, so the
   datastructures are built lazily only when some instructions in given
   place are needed.   

Referenced by branch_prob(), curr_insn_location(), and insn_locations_finalize().

struct target_rtl default_target_rtl
@verbatim Emit RTL for the GCC expander.

Copyright (C) 1987-2013 Free Software Foundation, Inc.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see http://www.gnu.org/licenses/.

Middle-to-low level generation of rtx code and insns.

   This file contains support functions for creating rtl expressions
   and manipulating them in the doubly-linked chain of insns.

   The patterns of the insns are created by machine-dependent
   routines in insn-emit.c, which is generated automatically from
   the machine description.  These routines make the individual rtx's
   of the pattern with `gen_rtx_fmt_ee' and others in genrtl.[ch],
   which are automatically generated from rtl.def; what is machine
   dependent is the kind of rtx's they make and what arguments they
   use.   
enum machine_mode double_mode

Referenced by init_emit_once().

location_t epilogue_location
Record fixed-point constant 0 and 1.   
struct sequence_stack* free_sequence_stack
static
Space for free sequence stack entries.   

Referenced by end_sequence(), and start_sequence().

rtx hard_reg_clobbers[NUM_MACHINE_MODES][FIRST_PSEUDO_REGISTER]
static

Referenced by gen_hard_reg_clobber().

int label_num = 1
static
This is *not* reset after each function.  It gives each CODE_LABEL
   in the entire compilation a unique label number.   

Referenced by init_emit(), and max_label_num().

htab_t mem_attrs_htab
static
A hash table storing memory attribute structures.   
rtvec orig_asm_constraints_vector
static
Likewise for the constraints vector.   
rtvec orig_asm_operands_vector
static
When an insn is being copied by copy_insn_1, this is nonzero if we have
   copied an ASM_OPERANDS.
   In that case, it is the original input-operand vector.   
htab_t reg_attrs_htab
static
A hash table storing register attribute structures.   
rtx* regno_reg_rtx
tree spill_slot_decl
static
A fake decl that is used as the MEM_EXPR of spill slots.   

Referenced by get_spill_slot_decl().

int split_branch_probability = -1
Probability of the conditional branch currently proceeded by try_split.
   Set to -1 otherwise.   

Referenced by try_split().

struct target_rtl* this_target_rtl = &default_target_rtl
enum machine_mode word_mode

Referenced by adjust_bit_field_mem_for_reg(), assign_parm_setup_block(), build_word_mode_vector_type(), can_assign_to_reg_without_clobbers_p(), can_decompose_p(), compute_costs(), compute_splitting_shift(), convert_move(), copy_blkmode_from_reg(), copy_blkmode_to_reg(), create_new_invariant(), decompose_register(), default_emutls_var_fields(), default_libgcc_cmp_return_mode(), default_libgcc_shift_count_mode(), default_preferred_simd_mode(), default_unwind_word_mode(), do_jump_by_parts_equality_rtx(), do_jump_by_parts_greater_rtx(), do_jump_by_parts_zero_rtx(), do_output_reload(), doloop_optimize(), emit_block_move_via_loop(), emit_case_bit_tests(), emit_library_call_value_1(), emit_push_insn(), emit_stack_probe(), emit_store_flag(), emit_store_flag_1(), emit_store_flag_force(), emutls_common_1(), equiv_constant(), execute_optimize_bswap(), expand_absneg_bit(), expand_binop(), expand_builtin_signbit(), expand_copysign_absneg(), expand_copysign_bit(), expand_doubleword_bswap(), expand_doubleword_clz(), expand_doubleword_mult(), expand_doubleword_shift(), expand_doubleword_shift_condmove(), expand_errno_check(), expand_expr_real_2(), expand_subword_shift(), expand_superword_shift(), expand_switch_using_bit_tests_p(), expand_unop(), expand_vector_parallel(), extract_bit_field_1(), extract_fixed_bit_field(), extract_high_half(), extract_split_bit_field(), find_decomposable_shift_zext(), find_decomposable_subregs(), find_if_header(), find_reloads_address_1(), fold_truth_andor_1(), force_const_mem(), gen_int_libfunc(), get_optab_extraction_insn(), get_traditional_extraction_insn(), init_emit_once(), init_lower_subreg(), init_reg_modes_target(), load_register_parameters(), lshift_cheap_p(), make_extraction(), mem_loc_descriptor(), move_block_from_reg(), move_block_to_reg(), operand_subword(), optimize_bit_field_compare(), optimize_bitfield_assignment_op(), prepare_cmp_insn(), push_reload(), reload_cse_simplify_operands(), reload_cse_simplify_set(), resolve_clobber(), resolve_shift_zext(), resolve_simple_move(), simplify_while_replacing(), store_bit_field_1(), store_constructor(), store_fixed_bit_field(), store_split_bit_field(), store_unaligned_arguments_into_pseudos(), try_combine(), undefined_operand_subword_p(), valid_multiword_target_p(), and validate_subreg().

struct rtl_data x_rtl
Datastructures maintained for currently processed function in RTL form.