comparison gcc/emit-rtl.h @ 67:f6334be47118

update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 22 Mar 2011 17:18:12 +0900
parents 77e2b8dfacca
children 04ced10e8804
comparison
equal deleted inserted replaced
65:65488c3d617d 67:f6334be47118
1 /* Exported functions from emit-rtl.c 1 /* Exported functions from emit-rtl.c
2 Copyright (C) 2004, 2007, 2008 Free Software Foundation, Inc. 2 Copyright (C) 2004, 2007, 2008, 2010 Free Software Foundation, Inc.
3 3
4 This file is part of GCC. 4 This file is part of GCC.
5 5
6 GCC is free software; you can redistribute it and/or modify it under 6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free 7 the terms of the GNU General Public License as published by the Free
49 extern rtx replace_equiv_address (rtx, rtx); 49 extern rtx replace_equiv_address (rtx, rtx);
50 50
51 /* Likewise, but the reference is not required to be valid. */ 51 /* Likewise, but the reference is not required to be valid. */
52 extern rtx replace_equiv_address_nv (rtx, rtx); 52 extern rtx replace_equiv_address_nv (rtx, rtx);
53 53
54 extern rtx gen_blockage (void);
55 extern rtvec gen_rtvec (int, ...);
56 extern rtx copy_insn_1 (rtx);
57 extern rtx copy_insn (rtx);
58 extern rtx gen_int_mode (HOST_WIDE_INT, enum machine_mode);
59 extern rtx emit_copy_of_insn_after (rtx, rtx);
60 extern void set_reg_attrs_from_value (rtx, rtx);
61 extern void set_reg_attrs_for_parm (rtx, rtx);
62 extern void set_reg_attrs_for_decl_rtl (tree t, rtx x);
63 extern void adjust_reg_mode (rtx, enum machine_mode);
64 extern int mem_expr_equal_p (const_tree, const_tree);
65
66 /* Return the first insn of the current sequence or current function. */
67
68 static inline rtx
69 get_insns (void)
70 {
71 return crtl->emit.x_first_insn;
72 }
73
74 /* Specify a new insn as the first in the chain. */
75
76 static inline void
77 set_first_insn (rtx insn)
78 {
79 gcc_checking_assert (!insn || !PREV_INSN (insn));
80 crtl->emit.x_first_insn = insn;
81 }
82
83 /* Return the last insn emitted in current sequence or current function. */
84
85 static inline rtx
86 get_last_insn (void)
87 {
88 return crtl->emit.x_last_insn;
89 }
90
91 /* Specify a new insn as the last in the chain. */
92
93 static inline void
94 set_last_insn (rtx insn)
95 {
96 gcc_checking_assert (!insn || !NEXT_INSN (insn));
97 crtl->emit.x_last_insn = insn;
98 }
99
100 /* Return a number larger than any instruction's uid in this function. */
101
102 static inline int
103 get_max_uid (void)
104 {
105 return crtl->emit.x_cur_insn_uid;
106 }
54 #endif /* GCC_EMIT_RTL_H */ 107 #endif /* GCC_EMIT_RTL_H */