1169689Skan/* Utilities for ipa analysis. 2169689Skan Copyright (C) 2004-2005 Free Software Foundation, Inc. 3169689Skan Contributed by Kenneth Zadeck <zadeck@naturalbridge.com> 4169689Skan 5169689SkanThis file is part of GCC. 6169689Skan 7169689SkanGCC is free software; you can redistribute it and/or modify it under 8169689Skanthe terms of the GNU General Public License as published by the Free 9169689SkanSoftware Foundation; either version 2, or (at your option) any later 10169689Skanversion. 11169689Skan 12169689SkanGCC is distributed in the hope that it will be useful, but WITHOUT ANY 13169689SkanWARRANTY; without even the implied warranty of MERCHANTABILITY or 14169689SkanFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15169689Skanfor more details. 16169689Skan 17169689SkanYou should have received a copy of the GNU General Public License 18169689Skanalong with GCC; see the file COPYING. If not, write to the Free 19169689SkanSoftware Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 20169689Skan02110-1301, USA. */ 21169689Skan 22169689Skan#ifndef GCC_IPA_UTILS_H 23169689Skan#define GCC_IPA_UTILS_H 24169689Skan#include "tree.h" 25169689Skan#include "cgraph.h" 26169689Skan 27169689Skan/* Used for parsing attributes of asm code. */ 28169689Skanextern tree memory_identifier_string; 29169689Skan 30169689Skanstruct ipa_dfs_info { 31169689Skan int dfn_number; 32169689Skan int low_link; 33169689Skan bool new; 34169689Skan bool on_stack; 35169689Skan struct cgraph_node* next_cycle; 36169689Skan PTR aux; 37169689Skan}; 38169689Skan 39169689Skan 40169689Skan 41169689Skan/* In ipa-utils.c */ 42169689Skanvoid ipa_utils_print_order (FILE*, const char *, struct cgraph_node**, int); 43169689Skanint ipa_utils_reduced_inorder (struct cgraph_node **, bool, bool); 44169689Skantree get_base_var (tree); 45169689Skan 46169689Skan 47169689Skan#endif /* GCC_IPA_UTILS_H */ 48169689Skan 49169689Skan 50