gcc/
[official-gcc.git] / gcc / tree-ssa-scopedtables.h
blobbc30ee6758350b31a267c0b7aafd40723f25e31b
1 /* Header file for SSA dominator optimizations.
2 Copyright (C) 2013-2015 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 3, 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 COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 #ifndef GCC_TREE_SSA_SCOPED_TABLES_H
21 #define GCC_TREE_SSA_SCOPED_TABLES_H
23 class const_and_copies
25 public:
26 const_and_copies (FILE *, int);
27 ~const_and_copies (void) { stack.release (); }
28 void push_marker (void) { stack.safe_push (NULL_TREE); }
29 void pop_to_marker (void);
30 void record_const_or_copy (tree, tree);
31 void record_const_or_copy (tree, tree, tree);
32 void invalidate (tree);
34 private:
35 vec<tree> stack;
36 FILE *dump_file;
37 int dump_flags;
40 #endif /* GCC_TREE_SSA_SCOPED_TABLES_H */