PR c++/79653
[official-gcc.git] / gcc / gcse-common.h
blob83e966f4eb792789190223575d44d0b4c9d47833
1 /* Structures and prototypes common across the normal GCSE
2 implementation and the post-reload implementation.
3 Copyright (C) 1997-2017 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 3, or (at your option) any later
10 version.
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
21 #ifndef GCC_GCSE_COMMON_H
22 #define GCC_GCSE_COMMON_H
24 typedef vec<rtx_insn *> vec_rtx_heap;
25 struct modify_pair
27 rtx dest; /* A MEM. */
28 rtx dest_addr; /* The canonical address of `dest'. */
31 typedef vec<modify_pair> vec_modify_pair_heap;
33 struct gcse_note_stores_info
35 rtx_insn *insn;
36 vec<modify_pair> *canon_mem_list;
39 extern void compute_transp (const_rtx, int, sbitmap *, bitmap,
40 bitmap, vec<modify_pair> *);
41 extern void record_last_mem_set_info_common (rtx_insn *,
42 vec<rtx_insn *> *,
43 vec<modify_pair> *,
44 bitmap, bitmap);
47 #endif