1 /* Structures and prototypes common across the normal GCSE 2 implementation and the post-reload implementation. 3 Copyright (C) 1997-2018 Free Software Foundation, Inc. 4 5 This file is part of GCC. 6 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. 11 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. 16 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/>. */ 20 21 #ifndef GCC_GCSE_COMMON_H 22 #define GCC_GCSE_COMMON_H 23 24 typedef vec<rtx_insn *> vec_rtx_heap; 25 struct modify_pair 26 { 27 rtx dest; /* A MEM. */ 28 rtx dest_addr; /* The canonical address of `dest'. */ 29 }; 30 31 typedef vec<modify_pair> vec_modify_pair_heap; 32 33 struct gcse_note_stores_info 34 { 35 rtx_insn *insn; 36 vec<modify_pair> *canon_mem_list; 37 }; 38 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); 45 46 47 #endif 48