Otawa  0.10
CatBuilder.h
Go to the documentation of this file.
1 /*
2  * dcache::ACSBuilder class interface
3  *
4  * This file is part of OTAWA
5  * Copyright (c) 2009, 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_DCACHE_CATBUILDER_H_
22 #define OTAWA_DCACHE_CATBUILDER_H_
23 
24 //#include <otawa/cache/categorisation/CATBuilder.h>
27 #include "features.h"
28 
29 namespace otawa { namespace dcache {
30 
31 
32 // CATBuilder class
33 class CATBuilder: public Processor {
34 public:
35  static p::declare reg;
37  virtual void processWorkSpace(WorkSpace *ws);
38  virtual void configure(const PropList &props);
39  virtual void cleanup(WorkSpace *ws);
40 
41 private:
42  void processLBlockSet(WorkSpace *ws, const BlockCollection& coll, const hard::Cache *cache);
44  //CategoryStats *cstats;
45 };
46 
47 } } // otawa::dcache
48 
49 #endif /* OTAWA_DCACHE_CATBUILDER_H_ */
Class to declare simple a processor.
Definition: Registration.h:213
WorkSpace * ws
Definition: Processor.h:185
CATBuilder(p::declare &r=reg)
Definition: dcache_CatBuilder.cpp:61
virtual void processWorkSpace(WorkSpace *ws)
Process the given framework.
Definition: dcache_CatBuilder.cpp:204
The processor class is implemented by all code processor.
Definition: Processor.h:49
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
StringOption cache(command, 'c',"cache","used cache","path","")
virtual void configure(const PropList &props)
This method may be called for configuring a processor thanks to information passed in the property li...
Definition: dcache_CatBuilder.cpp:193
Processor to get the categories for each block access of a data cache.
Definition: CatBuilder.h:33
data_fmlevel_t firstmiss_level
Definition: CatBuilder.h:43
This a list of properties.
Definition: PropList.h:63
static p::declare reg
Definition: CatBuilder.h:35
data_fmlevel_t
Definition: features.h:38
virtual void cleanup(WorkSpace *ws)
This method is called after the end of the processor analysis to let it do some clean up...
Definition: dcache_CatBuilder.cpp:67
A block collections stores the list of data blocks used in a task for a specific line.
Definition: features.h:108
void processLBlockSet(WorkSpace *ws, const BlockCollection &coll, const hard::Cache *cache)
Definition: dcache_CatBuilder.cpp:96