Otawa  0.10
FlowFactConstraintBuilder.h
Go to the documentation of this file.
1 /*
2  * ipet::FlowFactConstraintBuilder class interface
3  *
4  * This file is part of OTAWA
5  * Copyright (c) 2005-08, IRIT UPS.
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_IPET_IPET_FLOW_FACT_CONSTRAINT_BUILDER_H
22 #define OTAWA_IPET_IPET_FLOW_FACT_CONSTRAINT_BUILDER_H
23 
24 #include <otawa/proc/Feature.h>
25 #include <otawa/proc/BBProcessor.h>
26 
27 namespace otawa {
28 
29 using namespace elm;
30 
31 // Externals
32 namespace ilp { class System; }
33 
34 namespace ipet {
35 
36 // FlowFactConstraintBuilder class
38 public:
40  virtual void configure(const PropList& props = PropList::EMPTY);
41 
42 protected:
43  virtual void processBB(WorkSpace *ws, CFG *cfg, BasicBlock *bb);
44  virtual void setup(WorkSpace *ws);
45 private:
47  bool _explicit;
48 };
49 
50 } } // otawa::ipet
51 
52 #endif // OTAWA_IPET_IPET_FLOW_FACT_CONSTRAINT_BUILDER_H
This processor is dedicated to the basic block process thru proccessBB() method.
Definition: BBProcessor.h:72
static const PropList EMPTY
This is an empty proplist for convenience.
Definition: PropList.h:66
dtd::Element bb(dtd::make("bb", _BB).attr(id).attr(address).attr(size))
Control Flow Graph representation.
Definition: CFG.h:42
This processor allows using extern flow facts in an IPET system.
Definition: FlowFactConstraintBuilder.h:37
A workspace represents a program, its run-time and all information about WCET computation or any othe...
Definition: WorkSpace.h:67
bool _explicit
Definition: FlowFactConstraintBuilder.h:47
dtd::Element cfg(dtd::make("cfg", _CFG).attr(id).content((entry,*bb, exit,*edge)))
This is the minimal definition of a basic block.
Definition: BasicBlock.h:43
ilp::System * system
Definition: FlowFactConstraintBuilder.h:46
This a list of properties.
Definition: PropList.h:63
An ILP system is a colletion of ILP constraint that may maximize or minimize some object function...
Definition: System.h:42