Otawa  0.10
ACSBuilder.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 OTAWA_CACHE_ACSBUILDER_H_
24 #define OTAWA_CACHE_ACSBUILDER_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>
30 #include <elm/genstruct/Vector.h>
31 #include "features.h"
32 
33 namespace otawa {
34 
35 using namespace elm;
36 
37 
38 class ACSBuilder : public otawa::Processor {
39 public:
40  static p::declare reg;
41  ACSBuilder(p::declare& r = reg);
42  virtual void processWorkSpace(otawa::WorkSpace*);
43  virtual void configure(const PropList &props);
44 
45 private:
46  void processLBlockSet(otawa::WorkSpace*, LBlockSet *, const hard::Cache *);
48  bool unrolling;
50 
51 };
52 
53 }
54 
55 #endif /* OTAWA_CACHE_ACSBUILDER_H_*/
This processor builds the MUST and PERS cache states before each basic block.
Definition: ACSBuilder.h:38
Class to declare simple a processor.
Definition: Registration.h:213
fmlevel_t level
Definition: ACSBuilder.h:47
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
bool unrolling
Definition: ACSBuilder.h:48
This class represents the list of l-blocks of a task for a chosen cache row.
Definition: LBlockSet.h:38
This a list of properties.
Definition: PropList.h:63
genstruct::Vector< MUSTProblem::Domain * > * must_entry
Definition: ACSBuilder.h:49
enum otawa::fmlevel fmlevel_t
static p::declare reg
Definition: ACSBuilder.h:40