Otawa  0.10
EdgeACSBuilder.h
Go to the documentation of this file.
1 /*
2  * $Id$
3  * This is the Abstract Cache State builder.
4  *
5  * This file is part of OTAWA
6  * Copyright (c) 2007, IRIT UPS.
7  *
8  * OTAWA is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * OTAWA is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with OTAWA; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  */
23 #ifndef CACHE_EDGEACSBUILDER_H_
24 #define CACHE_EDGEACSBUILDER_H_
25 
26 #include <otawa/prop/Identifier.h>
27 #include <otawa/proc/Processor.h>
28 #include <otawa/hard/Cache.h>
29 #include <otawa/cache/LBlockSet.h>
32 #include <elm/genstruct/Vector.h>
33 
34 namespace otawa {
35 
36 using namespace elm;
37 
38 extern Identifier<Vector<MUSTProblem::Domain*> *> CACHE_EDGE_ACS_MUST;
39 extern Identifier<Vector<PERSProblem::Domain*> *> CACHE_EDGE_ACS_PERS;
40 
41 extern Identifier<fmlevel_t> FIRSTMISS_LEVEL;
42 extern Identifier<bool> PSEUDO_UNROLLING;
43 extern Identifier<genstruct::Vector<MUSTProblem::Domain*>*> CACHE_ACS_MUST_ENTRY;
44 
46 
47  void processLBlockSet(otawa::WorkSpace*, LBlockSet *, const hard::Cache *);
49 
50  bool unrolling;
52 
53  public:
54  EdgeACSBuilder(void);
55  virtual void processWorkSpace(otawa::WorkSpace*);
56  virtual void configure(const PropList &props);
57 
58 
59 
60 };
61 
63 
64 }
65 
66 #endif /*CACHE_EDGEACSBUILDER_H_*/
Feature< EdgeACSBuilder > ICACHE_EDGE_ACS_FEATURE
This feature represents the availability of Abstract Cache State informations.
fmlevel_t level
Definition: EdgeACSBuilder.h:48
Identifier< Vector< MUSTProblem::Domain * > * > CACHE_EDGE_ACS_MUST
This property represents the "must" Abstract Cache State of a basic block.
This processor builds the MUST and PERS cache states before each basic block.
Definition: EdgeACSBuilder.h:45
The processor class is implemented by all code processor.
Definition: Processor.h:49
bool unrolling
Definition: EdgeACSBuilder.h:50
Identifier< bool > PSEUDO_UNROLLING
This property represents the "persistence" Abstract Cache State of a basic block. ...
Definition: features.h:42
A workspace represents a program, its run-time and all information about WCET computation or any othe...
Definition: WorkSpace.h:67
Identifier< fmlevel_t > FIRSTMISS_LEVEL
Specify the loop-level-precision of the First Miss computation (inner, outer, multi-level) ...
Definition: features.h:41
This class contains the configuration of a level of cache of processor.
Definition: Cache.h:34
Identifier< genstruct::Vector< MUSTProblem::Domain * > * > CACHE_ACS_MUST_ENTRY
This property allows us to set an entry must ACS.
Definition: features.h:43
This class represents the list of l-blocks of a task for a chosen cache row.
Definition: LBlockSet.h:38
Identifier< Vector< PERSProblem::Domain * > * > CACHE_EDGE_ACS_PERS
This property represents the "persistence" Abstract Cache State of a basic block. ...
This a list of properties.
Definition: PropList.h:63
genstruct::Vector< MUSTProblem::Domain * > * must_entry
Definition: EdgeACSBuilder.h:51
enum otawa::fmlevel fmlevel_t
A feature is a set of facilities, usually provided using properties, available on a framework...
Definition: Feature.h:46