00001 /* Definitions for branch prediction routines in the GNU compiler. 00002 Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc. 00003 00004 This file is part of GCC. 00005 00006 GCC is free software; you can redistribute it and/or modify it under 00007 the terms of the GNU General Public License as published by the Free 00008 Software Foundation; either version 2, or (at your option) any later 00009 version. 00010 00011 GCC is distributed in the hope that it will be useful, but WITHOUT ANY 00012 WARRANTY; without even the implied warranty of MERCHANTABILITY or 00013 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00014 for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with GCC; see the file COPYING. If not, write to the Free 00018 Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 00019 02110-1301, USA. */ 00020 00021 #ifndef GCC_PREDICT_H 00022 #define GCC_PREDICT_H 00023 00024 #define DEF_PREDICTOR(ENUM, NAME, HITRATE, FLAGS) ENUM, 00025 enum br_predictor 00026 { 00027 #include "predict.def" 00028 00029 /* Upper bound on non-language-specific builtins. */ 00030 END_PREDICTORS 00031 }; 00032 #undef DEF_PREDICTOR 00033 enum prediction 00034 { 00035 NOT_TAKEN, 00036 TAKEN 00037 }; 00038 00039 extern void predict_insn_def (rtx, enum br_predictor, enum prediction); 00040 extern int counts_to_freqs (void); 00041 00042 #endif /* GCC_PREDICT_H */
1.5.6