Otawa  0.10
features.h
Go to the documentation of this file.
1 /*
2  * ConsBuilder processor interface
3  * Copyright (c) 2011, IRIT UPS.
4  *
5  * This file is part of OTAWA
6  *
7  * OTAWA is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * OTAWA is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with OTAWA; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 #ifndef OTAWA_BRANCH_FEATURES_H_
22 #define OTAWA_BRANCH_FEATURES_H_
23 
24 #include <elm/io.h>
25 
26 namespace otawa {
27 
28 using namespace elm;
29 
30 namespace ilp { class Var; }
31 
32 namespace branch {
33 
34 // numbered conditions feature
38 
39 
40 // category feature
41 typedef enum category_t {
42  UNDEF = 0,
43  ALWAYS_D = 1,
44  ALWAYS_H = 2,
47  MAX = 5
48 } category_t;
50 
51 // category feature
55 
56 
57 // branch constraints feature
60 
61 // support feature
63 
64 } } // otawa::branch
65 
66 #endif /* OTAWA_BRANCH_FEATURES_H_ */
Definition: features.h:44
p::feature CONSTRAINTS_FEATURE
This feature ensures that the constraints associated with each data cache block categories has been t...
Definition: features.h:45
Definition: features.h:47
Definition: features.h:42
const category_t NOT_CLASSIFIED
Definition: categories.h:83
Identifier< int * > COND_MAX
This features returns an array integer giving, for each BHT set, the maximum number of branches in th...
elm::io::Output & operator<<(elm::io::Output &out, Address addr)
Definition: base.cpp:188
p::feature NUMBERED_CONDITIONS_FEATURE
This feature assign numbers to branch present in a workspace for next processing. ...
p::feature CATEGORY_FEATURE
This features ensures that a category each data block access have received a category describing its ...
category_t
Definition: features.h:41
category_t
Definition: categories.h:37
p::feature SUPPORT_FEATURE
This feature adds to the objective function of the ILP system the raw cost of the BHT behaviour (that...
sys::SystemOutStream & out
Identifier< category_t > & CATEGORY
Definition: cache_categories.cpp:160
otawa::cache::category_t category_t
Definition: categories.h:77
Identifier< BasicBlock * > HEADER
Loop header of FIRST_UNKNOWN branch prediction category.
Definition: features.h:43
Identifier< ilp::Var * > MISSPRED_VAR
This properties gives the variables counting the number of miss-prediction for a basic block ending w...
A variable is an identifier used for performing ILP computation.
Definition: Var.h:36
Identifier< int > COND_NUMBER
Property giving the number of the control in its BHT set.
inst branch(int to)
Definition: inst.h:149
Shortcut to create a feature with a maker (without the mess of SilentFeature).
Definition: AbstractFeature.h:51