Otawa  0.10
VarAssignment.h
Go to the documentation of this file.
1 /*
2  * $Id$
3  * VarAssignment class interface
4  *
5  * This file is part of OTAWA
6  * Copyright (c) 2005-08, IRIT UPS.
7  *
8  * OTAWA is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * OTAWA is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with OTAWA; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 #ifndef OTAWA_IPET_VARASSIGNMENT_H
23 #define OTAWA_IPET_VARASSIGNMENT_H
24 
25 #include <otawa/proc/BBProcessor.h>
26 #include <otawa/proc/Feature.h>
27 
28 namespace otawa {
29 
30 // pre-declaration
31 namespace ilp { class System; }
32 
33 namespace ipet {
34 
35 // VarAsignment class
36 class VarAssignment: public BBProcessor {
41 
42 protected:
43  virtual void processBB(WorkSpace *fw, CFG *cfg, BasicBlock *bb);
44  virtual void setup(WorkSpace *ws);
45  virtual void cleanup(WorkSpace *ws);
46 
47 public:
48  VarAssignment(void);
49  virtual void configure(const PropList& props);
51 };
52 
53 // Features
55 
56 } } // otawa::ipet
57 
58 #endif // OTAWA_IPET_VARASSIGNMENT_H
59 
bool _explicit
Definition: VarAssignment.h:37
This processor is dedicated to the basic block process thru proccessBB() method.
Definition: BBProcessor.h:72
CFG * cfg(void) const
Get the current CFG.
Definition: CFGProcessor.h:56
dtd::Element edge(dtd::make("edge", _EDGE).attr(source).attr(target).attr(called))
virtual void processBB(WorkSpace *fw, CFG *cfg, BasicBlock *bb)
Perform the work of the given basic block.
Definition: ipet_VarAssignment.cpp:100
This processor ensures that each basic block and each edge of the CFG has a variable associated with ...
Definition: VarAssignment.h:36
virtual void cleanup(WorkSpace *ws)
This method is called after the end of the processor analysis to let it do some clean up...
Definition: ipet_VarAssignment.cpp:132
Definition: Registration.h:138
WorkSpace * ws
Definition: Processor.h:185
dtd::Element bb(dtd::make("bb", _BB).attr(id).attr(address).attr(size))
VarAssignment(void)
Build a new variable assignment processor.
Definition: ipet_VarAssignment.cpp:142
Control Flow Graph representation.
Definition: CFG.h:42
Identifier< String * > FORCE_NAME
Force the ilp variable name of an edge or basic block.
virtual void configure(const PropList &props)
Configure the current processor.
Definition: ipet_VarAssignment.cpp:149
A workspace represents a program, its run-time and all information about WCET computation or any othe...
Definition: WorkSpace.h:67
ilp::System * sys
Definition: VarAssignment.h:38
String makeNodeVar(BasicBlock *bb, CFG *cfg)
Build a node variable name.
Definition: ipet_VarAssignment.cpp:162
This class represents edges in the CFG representation.
Definition: Edge.h:33
String makeEdgeVar(Edge *edge, CFG *cfg)
Build an edge variable name.
Definition: ipet_VarAssignment.cpp:184
This class represents identifier with a typed associated value.
Definition: Identifier.h:51
This is the minimal definition of a basic block.
Definition: BasicBlock.h:43
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
bool _recursive
Definition: VarAssignment.h:37
virtual void setup(WorkSpace *ws)
This method is called before an anlysis to let the processor do some initialization.
Definition: ipet_VarAssignment.cpp:93
static Registration< VarAssignment > reg
Definition: VarAssignment.h:50