Otawa  0.10
CATConstraintBuilder.h
Go to the documentation of this file.
1 /*
2  * CATConstraintBuilder class interface
3  * Copyright (c) 2006, IRIT UPS.
4  *
5  * This file is part of OTAWA
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
20  * 02110-1301 USA
21  */
22 #ifndef OTAWA_CAT_CATCONSTRAINTBUILDER_H
23 #define OTAWA_CAT_CATCONSTRAINTBUILDER_H
24 
25 
26 #include <elm/assert.h>
27 #include <otawa/proc/Processor.h>
28 #include <otawa/proc/Feature.h>
29 
30 namespace otawa {
31 
32 // Extern classes
33 class ContextTree;
34 class LBlockSet;
35 
36 namespace cat {
37 
38 // CATConstraintBuilder class
40 public:
41  static p::declare reg;
43  virtual void processWorkSpace(WorkSpace *fw);
44  virtual void configure(const PropList& props);
45 
46 private:
47  bool _explicit;
48  void processLBlockSet(WorkSpace *fw, LBlockSet *lbset);
49  void buildLBLOCKSET(LBlockSet *lcache, ContextTree *root);
50 };
51 
52 } } // otawa::cat
53 
54 
55 #endif //OTAWA_CAT_CATCONSTRAINTBUILDER_H_
virtual void processWorkSpace(WorkSpace *fw)
Process the given framework.
Definition: cat_CATConstraintBuilder.cpp:271
Class to declare simple a processor.
Definition: Registration.h:213
This processor uses categories assigned to L-block of the instruction cache to add contraints and to ...
Definition: CATConstraintBuilder.h:39
The processor class is implemented by all code processor.
Definition: Processor.h:49
CATConstraintBuilder(p::declare &r=reg)
Build a builder of constraints based on instruction cache access categories.
Definition: cat_CATConstraintBuilder.cpp:108
A workspace represents a program, its run-time and all information about WCET computation or any othe...
Definition: WorkSpace.h:67
virtual void configure(const PropList &props)
This method may be called for configuring a processor thanks to information passed in the property li...
Definition: cat_CATConstraintBuilder.cpp:327
This class represents the list of l-blocks of a task for a chosen cache row.
Definition: LBlockSet.h:38
void processLBlockSet(WorkSpace *fw, LBlockSet *lbset)
Definition: cat_CATConstraintBuilder.cpp:114
static p::declare reg
Definition: CATConstraintBuilder.h:41
Definition: ContextTree.h:37
void buildLBLOCKSET(LBlockSet *lcache, ContextTree *root)
Annotate all the loop headers with the set of the l-blocks contained in the loop. ...
Definition: cat_CATConstraintBuilder.cpp:292
This a list of properties.
Definition: PropList.h:63
bool _explicit
Definition: CATConstraintBuilder.h:47