Otawa  0.10
CatConstraintBuilder.h
Go to the documentation of this file.
1 /*
2  * dcache::CatConstraintBuilder 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_CATCONSTRAINTBUILDER_H_
22 #define OTAWA_DCACHE_CATCONSTRAINTBUILDER_H_
23 
24 #include <otawa/proc/Processor.h>
25 #include <otawa/prop/Identifier.h>
26 
27 
28 namespace otawa {
29 
30 namespace ilp { class Var; }
31 
32 namespace dcache {
33 
35 public:
36  static p::declare reg;
38 protected:
39  virtual void processWorkSpace(otawa::WorkSpace *ws);
40  virtual void configure(const PropList& props);
41  void collectStats(WorkSpace *ws);
42 private:
43  bool _explicit;
44 };
45 
46 } } // otawa::dcache
47 
48 #endif /* OTAWA_DCACHE_CATCONSTRAINTBUILDER_H_ */
static p::declare reg
Definition: CatConstraintBuilder.h:36
virtual void processWorkSpace(otawa::WorkSpace *ws)
Process the given framework.
Definition: dcache_CatConstraintBuilder.cpp:212
Class to declare simple a processor.
Definition: Registration.h:213
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_CatConstraintBuilder.cpp:204
This processor allocates the variable to count misses of a data cache and makes the constraints for t...
Definition: CatConstraintBuilder.h:34
WorkSpace * ws
Definition: Processor.h:185
The processor class is implemented by all code processor.
Definition: Processor.h:49
bool _explicit
Definition: CatConstraintBuilder.h:43
A workspace represents a program, its run-time and all information about WCET computation or any othe...
Definition: WorkSpace.h:67
This a list of properties.
Definition: PropList.h:63
void collectStats(WorkSpace *ws)
This method is invoked if the user has required to collect statistics about the processor.
Definition: dcache_CatConstraintBuilder.cpp:318
CatConstraintBuilder(p::declare &r=reg)
Definition: dcache_CatConstraintBuilder.cpp:198