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