Otawa  0.10
TimeDeltaObjectFunctionModifier.h
Go to the documentation of this file.
1 /*
2  * TimeDeltaObjectFunctionModifier class interface
3  *
4  * This file is part of OTAWA
5  * Copyright (c) 2006-07, 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 Foobar; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 #ifndef OTAWA_TSIM_TIME_DELTA_OBJECT_FUNCTION_MODIFIER_H
22 #define OTAWA_TSIM_TIME_DELTA_OBJECT_FUNCTION_MODIFIER_H
23 
24 #include <elm/assert.h>
25 #include <otawa/proc/BBProcessor.h>
26 #include <otawa/proc/Feature.h>
27 
28 namespace otawa { namespace tsim {
29 
30 
31 // TimeDeltaObjectFunctionModifier class
33 public:
34  static p::declare reg;
36 
37  // BBProcessor overload
38  virtual void processBB(WorkSpace *fw, CFG *cfg, BasicBlock *bb);
39 };
40 
41 // Features
43 
44 } } // otawa::tsim
45 
46 #endif // OTAWA_TSIM_TIME_DELTA_OBJECT_FUNCTION_MODIFIER_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
Class to declare simple a processor.
Definition: Registration.h:213
This processor is used for modify the object function to maximize for resolving the IPET system...
Definition: TimeDeltaObjectFunctionModifier.h:32
dtd::Element bb(dtd::make("bb", _BB).attr(id).attr(address).attr(size))
Control Flow Graph representation.
Definition: CFG.h:42
virtual void processBB(WorkSpace *fw, CFG *cfg, BasicBlock *bb)
Perform the work of the given basic block.
Definition: tsim_TimeDeltaObjectFunctionModifier.cpp:68
TimeDeltaObjectFunctionModifier(p::declare &r=reg)
Build a new basic object function builder.
Definition: tsim_TimeDeltaObjectFunctionModifier.cpp:62
A workspace represents a program, its run-time and all information about WCET computation or any othe...
Definition: WorkSpace.h:67
Feature< TimeDeltaObjectFunctionModifier > EDGE_TIME_FEATURE
This feature ensurers that the TIME_DELTA property linked to the CFG edges are used in the maximized ...
This is the minimal definition of a basic block.
Definition: BasicBlock.h:43
static p::declare reg
Definition: TimeDeltaObjectFunctionModifier.h:34
A feature is a set of facilities, usually provided using properties, available on a framework...
Definition: Feature.h:46