Otawa  0.10
ConstraintBuilder.h
Go to the documentation of this file.
1 /*
2  * ConstraintBuilder class interface
3  *
4  * This file is part of OTAWA
5  * Copyright (c) 2006, 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_CCG_CCGCONSTRAINTBUILDER_H
22 #define OTAWA_CCG_CCGCONSTRAINTBUILDER_H
23 
24 #include <elm/assert.h>
25 #include <otawa/proc/Processor.h>
26 #include <otawa/hard/Cache.h>
27 #include <otawa/ccg/features.h>
28 
29 namespace otawa {
30 
31 // Extern class
32 class CFG;
33 class ContextTree;
34 class LBlock;
35 class LBlockSet;
36 namespace ilp {
37  class System;
38  class Var;
39 }
40 
41 namespace ccg {
42 
43 class Node;
44 
45 // ConstraintBuilder class
47 public:
48  static p::declare reg;
50  virtual void processWorkSpace(WorkSpace *fw);
51  virtual void configure(const PropList& props = PropList::EMPTY);
52 
53 private:
54  bool _explicit;
55  void processLBlockSet(WorkSpace *fw, LBlockSet *lbset);
56  void addConstraintHeader(ilp::System *system, LBlockSet *graph, ContextTree *ct,
57  LBlock *boc);
58 };
59 
60 } } // otawa::ccg
61 
62 #endif // OTAWA_CCG_CCGCONSTRAINTBUILDER_H
void addConstraintHeader(ilp::System *system, LBlockSet *graph, ContextTree *ct, LBlock *boc)
Definition: ccg_ConstraintBuilder.cpp:386
static const PropList EMPTY
This is an empty proplist for convenience.
Definition: PropList.h:66
Class to declare simple a processor.
Definition: Registration.h:213
bool _explicit
Definition: ConstraintBuilder.h:54
ConstraintBuilder(p::declare &r=reg)
Constructor.
Definition: ccg_ConstraintBuilder.cpp:117
static p::declare reg
Definition: ConstraintBuilder.h:48
This processor allows handling timing effects of the instruction cache in the IPET approach...
Definition: ConstraintBuilder.h:46
The processor class is implemented by all code processor.
Definition: Processor.h:49
The l-block is an abstraction allowing to split the basic block according to the bound of the cache b...
Definition: features.h:44
A workspace represents a program, its run-time and all information about WCET computation or any othe...
Definition: WorkSpace.h:67
void processLBlockSet(WorkSpace *fw, LBlockSet *lbset)
Definition: ccg_ConstraintBuilder.cpp:131
Definition: ContextTree.h:37
This class represents the list of l-blocks of a task for a chosen cache row.
Definition: features.h:75
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
virtual void processWorkSpace(WorkSpace *fw)
Process the given framework.
Definition: ccg_ConstraintBuilder.cpp:374
virtual void configure(const PropList &props=PropList::EMPTY)
This method may be called for configuring a processor thanks to information passed in the property li...
Definition: ccg_ConstraintBuilder.cpp:123