Otawa  0.10
WCETCountRecorder.h
Go to the documentation of this file.
1 /*
2  * $Id$
3  * Copyright (c) 2007, IRIT UPS.
4  *
5  * WCETCountRecorder class interface.
6  */
7 #ifndef OTAWA_IPET_WCET_COUNT_RECORDER_H
8 #define OTAWA_IPET_WCET_COUNT_RECORDER_H
9 
10 #include <otawa/proc/BBProcessor.h>
11 #include <otawa/proc/Feature.h>
12 #include <otawa/ilp.h>
13 
14 namespace otawa { namespace ipet {
15 
16 // WCETCountRecorder class
18 public:
19  static p::declare reg;
21 protected:
22  virtual void processBB(WorkSpace *ws, CFG *cfg, BasicBlock *bb);
23  virtual void setup(WorkSpace *ws);
24  virtual void cleanup(WorkSpace *ws);
25 private:
27 };
28 
29 } } // otawa::ipet
30 
31 #endif // OTAWA_IPET_WCET_COUNT_RECORDER_H
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
virtual void setup(WorkSpace *ws)
This method is called before an anlysis to let the processor do some initialization.
Definition: ipet_WCETCountRecorder.cpp:33
Class to declare simple a processor.
Definition: Registration.h:213
WCETCountRecorder(p::declare &r=reg)
Definition: ipet_WCETCountRecorder.cpp:73
ilp::System * system
Definition: WCETCountRecorder.h:26
WorkSpace * ws
Definition: Processor.h:185
dtd::Element bb(dtd::make("bb", _BB).attr(id).attr(address).attr(size))
Control Flow Graph representation.
Definition: CFG.h:42
static p::declare reg
Definition: WCETCountRecorder.h:19
This class may be used to record back in the CFG the execution count of each basic block and of each ...
Definition: WCETCountRecorder.h:17
A workspace represents a program, its run-time and all information about WCET computation or any othe...
Definition: WorkSpace.h:67
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_WCETCountRecorder.cpp:43
This is the minimal definition of a basic block.
Definition: BasicBlock.h:43
An ILP system is a colletion of ILP constraint that may maximize or minimize some object function...
Definition: System.h:42
virtual void processBB(WorkSpace *ws, CFG *cfg, BasicBlock *bb)
Perform the work of the given basic block.
Definition: ipet_WCETCountRecorder.cpp:52