Otawa  0.10
CAT2Builder.h
Go to the documentation of this file.
1 /*
2  * CAT2Builder processor interface
3  *
4  * This file is part of OTAWA
5  * Copyright (c) 2007-08, 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
20  * 02110-1301 USA
21  */
22 
23 #ifndef OTAWA_CACHE_CAT2BUILDER_H_
24 #define OTAWA_CACHE_CAT2BUILDER_H_
25 
26 #include <otawa/prop/Identifier.h>
27 #include <otawa/hard/Cache.h>
28 #include <otawa/cache/LBlockSet.h>
30 //#include <otawa/cache/categorisation/CATBuilder.h>
32 #include <otawa/cache/categories.h>
33 
34 namespace otawa {
35 
36 // CAT2Builder class
37 class CAT2Builder: public CFGProcessor {
38 public:
41 
42  virtual void processCFG(WorkSpace*, otawa::CFG*);
43  virtual void setup(WorkSpace*);
44  virtual void configure(const PropList &props);
45 
46 private:
51 };
52 
53 } // otawa
54 
55 
56 #endif /* OTAWA_CACHE_CAT2BUILDER_H_*/
int total_cnt
Definition: CAT2Builder.h:50
This class is used to store statistics about the categories about cache accesses. ...
Definition: categories.h:49
static Registration< CAT2Builder > reg
Definition: CAT2Builder.h:40
Abstract class to represent the registered processors.
Definition: Registration.h:80
fmlevel_t firstmiss_level
Definition: CAT2Builder.h:48
Definition: Registration.h:138
int nc_cnt
Definition: CAT2Builder.h:50
void processLBlockSet(otawa::CFG *, LBlockSet *, const hard::Cache *)
!!TODO!!
Definition: cache_CAT2Builder.cpp:105
int am_cnt
Definition: CAT2Builder.h:50
CAT2Builder(AbstractRegistration &registration=reg)
Definition: cache_CAT2Builder.cpp:52
Control Flow Graph representation.
Definition: CFG.h:42
virtual void configure(const PropList &props)
Configure the current processor.
Definition: cache_CAT2Builder.cpp:207
virtual void processCFG(WorkSpace *, otawa::CFG *)
Definition: cache_CAT2Builder.cpp:221
const AbstractRegistration & registration(void)
Definition: Registry.h:54
This processor produces categorization information for each l-block.
Definition: CAT2Builder.h:37
A workspace represents a program, its run-time and all information about WCET computation or any othe...
Definition: WorkSpace.h:67
This class contains the configuration of a level of cache of processor.
Definition: Cache.h:34
This is a specialization of the processor class dedicated to CFG processing.
Definition: CFGProcessor.h:35
int pers_cnt
Definition: CAT2Builder.h:50
This class represents the list of l-blocks of a task for a chosen cache row.
Definition: LBlockSet.h:38
cache::CategoryStats * cstats
Definition: CAT2Builder.h:49
int ah_cnt
Definition: CAT2Builder.h:50
This a list of properties.
Definition: PropList.h:63
enum otawa::fmlevel fmlevel_t
virtual void setup(WorkSpace *)
!!TODO!!
Definition: cache_CAT2Builder.cpp:201