predict.h 1.53 KB
Newer Older
Jan Hubicka committed
1 2 3 4
/* This file contains the definitions and documentation for the
   builtins used in the GNU compiler.
   Copyright (C) 2001 Free Software Foundation, Inc.

5
This file is part of GCC.
Jan Hubicka committed
6

7 8 9 10
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2, or (at your option) any later
version.
Jan Hubicka committed
11

12 13 14 15
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.
Jan Hubicka committed
16 17

You should have received a copy of the GNU General Public License
18 19 20
along with GCC; see the file COPYING.  If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.  */
Jan Hubicka committed
21

22
#define DEF_PREDICTOR(ENUM, NAME, HITRATE, FLAGS) ENUM,
Jan Hubicka committed
23 24 25 26
enum br_predictor
{
#include "predict.def"

27
  /* Upper bound on non-language-specific builtins.  */
Jan Hubicka committed
28 29 30 31 32 33 34 35 36
  END_PREDICTORS
};
#undef DEF_PREDICTOR
enum prediction
{
   NOT_TAKEN,
   TAKEN
};

37 38 39
/* Flags for NOTE_PREDICTION */
#define IS_TAKEN 1		/* Predict edges to the block as taken.  */

Jan Hubicka committed
40 41 42 43
extern void predict_insn_def	PARAMS ((rtx, enum br_predictor,
					 enum prediction));
extern void predict_insn	PARAMS ((rtx, enum br_predictor, int));

44
/* Avoid unneeded dependency on basic_block.h  */
Jan Hubicka committed
45 46 47 48 49
#ifdef BASIC_BLOCK
extern void predict_edge	PARAMS ((edge, enum br_predictor, int));
extern void predict_edge_def	PARAMS ((edge, enum br_predictor,
					 enum prediction));
#endif