• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-armeabi-2013.11/lib/gcc/arm-none-eabi/4.8.1/plugin/include/
1/* Exported functions from emit-rtl.c
2   Copyright (C) 2004-2013 Free Software Foundation, Inc.
3
4This file is part of GCC.
5
6GCC is free software; you can redistribute it and/or modify it under
7the terms of the GNU General Public License as published by the Free
8Software Foundation; either version 3, or (at your option) any later
9version.
10
11GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12WARRANTY; without even the implied warranty of MERCHANTABILITY or
13FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14for more details.
15
16You should have received a copy of the GNU General Public License
17along with GCC; see the file COPYING3.  If not see
18<http://www.gnu.org/licenses/>.  */
19
20#ifndef GCC_EMIT_RTL_H
21#define GCC_EMIT_RTL_H
22
23/* Set the alias set of MEM to SET.  */
24extern void set_mem_alias_set (rtx, alias_set_type);
25
26/* Set the alignment of MEM to ALIGN bits.  */
27extern void set_mem_align (rtx, unsigned int);
28
29/* Set the address space of MEM to ADDRSPACE.  */
30extern void set_mem_addr_space (rtx, addr_space_t);
31
32/* Set the expr for MEM to EXPR.  */
33extern void set_mem_expr (rtx, tree);
34
35/* Set the offset for MEM to OFFSET.  */
36extern void set_mem_offset (rtx, HOST_WIDE_INT);
37
38/* Clear the offset recorded for MEM.  */
39extern void clear_mem_offset (rtx);
40
41/* Set the size for MEM to SIZE.  */
42extern void set_mem_size (rtx, HOST_WIDE_INT);
43
44/* Clear the size recorded for MEM.  */
45extern void clear_mem_size (rtx);
46
47/* Set the attributes for MEM appropriate for a spill slot.  */
48extern void set_mem_attrs_for_spill (rtx);
49extern tree get_spill_slot_decl (bool);
50
51/* Return a memory reference like MEMREF, but with its address changed to
52   ADDR.  The caller is asserting that the actual piece of memory pointed
53   to is the same, just the form of the address is being changed, such as
54   by putting something into a register.  */
55extern rtx replace_equiv_address (rtx, rtx);
56
57/* Likewise, but the reference is not required to be valid.  */
58extern rtx replace_equiv_address_nv (rtx, rtx);
59
60extern rtx gen_blockage (void);
61extern rtvec gen_rtvec (int, ...);
62extern rtx copy_insn_1 (rtx);
63extern rtx copy_insn (rtx);
64extern rtx copy_delay_slot_insn (rtx);
65extern rtx gen_int_mode (HOST_WIDE_INT, enum machine_mode);
66extern rtx emit_copy_of_insn_after (rtx, rtx);
67extern void set_reg_attrs_from_value (rtx, rtx);
68extern void set_reg_attrs_for_parm (rtx, rtx);
69extern void set_reg_attrs_for_decl_rtl (tree t, rtx x);
70extern void adjust_reg_mode (rtx, enum machine_mode);
71extern int mem_expr_equal_p (const_tree, const_tree);
72
73extern bool need_atomic_barrier_p (enum memmodel, bool);
74
75/* Return the first insn of the current sequence or current function.  */
76
77static inline rtx
78get_insns (void)
79{
80  return crtl->emit.x_first_insn;
81}
82
83/* Specify a new insn as the first in the chain.  */
84
85static inline void
86set_first_insn (rtx insn)
87{
88  gcc_checking_assert (!insn || !PREV_INSN (insn));
89  crtl->emit.x_first_insn = insn;
90}
91
92/* Return the last insn emitted in current sequence or current function.  */
93
94static inline rtx
95get_last_insn (void)
96{
97  return crtl->emit.x_last_insn;
98}
99
100/* Specify a new insn as the last in the chain.  */
101
102static inline void
103set_last_insn (rtx insn)
104{
105  gcc_checking_assert (!insn || !NEXT_INSN (insn));
106  crtl->emit.x_last_insn = insn;
107}
108
109/* Return a number larger than any instruction's uid in this function.  */
110
111static inline int
112get_max_uid (void)
113{
114  return crtl->emit.x_cur_insn_uid;
115}
116#endif /* GCC_EMIT_RTL_H */
117