Otawa  0.10
CATBuilder.h
Go to the documentation of this file.
1 /*
2  * CATBuilder 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_CAT_CATBUILDER_H
22 #define OTAWA_CAT_CATBUILDER_H
23 
24 #include <elm/assert.h>
26 #include <otawa/proc/Feature.h>
27 
28 namespace otawa {
29 
30 // Extern classes
31 namespace dfa { class BitSet; }
32 
33 class CFG;
34 class ContextTree;
35 class LBlock;
36 class LBlockSet;
37 
38 namespace cat {
39 
40 // CATBuilder class
41 class CATBuilder: public Processor {
42 public:
44  static p::declare reg;
46  virtual void processWorkSpace(WorkSpace *fw );
47 private:
49  void processLBlockSet(WorkSpace *fw, LBlockSet *lbset);
50  void setCATEGORISATION(LBlockSet *lineset, ContextTree *S, int dec);
51  void worst(LBlock *line, ContextTree *S, LBlockSet *cacheline, int dec);
52 };
53 
54 // Properties
56 
57 } } // otawa::cat
58 
59 #endif // OTAWA_CAT_CATBUILDER_H
CATBuilder(p::declare &r=reg)
Definition: cat_CATBuilder.cpp:158
Create a new CATBuilder processor.
Definition: CATBuilder.h:41
static Identifier< bool > NON_CONFLICT
Does anybody know anything about this?
Definition: CATBuilder.h:43
Class to declare simple a processor.
Definition: Registration.h:213
This class implements a set as a bit vector.
Definition: BitSet.h:82
void worst(LBlock *line, ContextTree *S, LBlockSet *cacheline, int dec)
Definition: cat_CATBuilder.cpp:220
Control Flow Graph representation.
Definition: CFG.h:42
The processor class is implemented by all code processor.
Definition: Processor.h:49
static p::declare reg
Definition: CATBuilder.h:44
A workspace represents a program, its run-time and all information about WCET computation or any othe...
Definition: WorkSpace.h:67
dfa::BitSet * buildLBLOCKSET(LBlockSet *lcache, ContextTree *root)
Annotate all the loop headers with the set of the l-blocks contained in the loop. ...
Definition: cat_CATBuilder.cpp:368
Identifier< BasicBlock * > LOWERED_CATEGORY
This property is set for L-Block categories that has been lowered, that is, they was classified as fi...
The l-block is an abstraction allowing to split the basic block according to the bound of the cache b...
Definition: LBlock.h:43
virtual void processWorkSpace(WorkSpace *fw)
Process the given framework.
Definition: cat_CATBuilder.cpp:117
This class represents the list of l-blocks of a task for a chosen cache row.
Definition: LBlockSet.h:38
Definition: ContextTree.h:37
void setCATEGORISATION(LBlockSet *lineset, ContextTree *S, int dec)
Definition: cat_CATBuilder.cpp:169
void processLBlockSet(WorkSpace *fw, LBlockSet *lbset)
Definition: cat_CATBuilder.cpp:79