2006-09-13 Andreas Krebbel <krebbel1@de.ibm.com>
[official-gcc.git] / gcc / emit-rtl.h
blobb8e7d0da96e39db26d4a5a3c933d497e6c7ffc93
1 /* Exported functions from emit-rtl.c
2 Copyright (C) 2004 Free Software Foundation, Inc.
4 This file is part of GCC.
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
8 Software Foundation; either version 2, or (at your option) any later
9 version.
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING. If not, write to the Free
18 Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
19 02110-1301, USA. */
21 #ifndef GCC_EMIT_RTL_H
22 #define GCC_EMIT_RTL_H
24 /* Set the alias set of MEM to SET. */
25 extern void set_mem_alias_set (rtx, HOST_WIDE_INT);
27 /* Set the alignment of MEM to ALIGN bits. */
28 extern void set_mem_align (rtx, unsigned int);
30 /* Set the expr for MEM to EXPR. */
31 extern void set_mem_expr (rtx, tree);
33 /* Set the offset for MEM to OFFSET. */
34 extern void set_mem_offset (rtx, rtx);
36 /* Set the size for MEM to SIZE. */
37 extern void set_mem_size (rtx, rtx);
39 /* Return a memory reference like MEMREF, but with its address changed to
40 ADDR. The caller is asserting that the actual piece of memory pointed
41 to is the same, just the form of the address is being changed, such as
42 by putting something into a register. */
43 extern rtx replace_equiv_address (rtx, rtx);
45 /* Likewise, but the reference is not required to be valid. */
46 extern rtx replace_equiv_address_nv (rtx, rtx);
48 #endif /* GCC_EMIT_RTL_H */