Otawa  0.10
BlockBuilder.h
Go to the documentation of this file.
1 /*
2  * dcache::BlockBuilder 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_BLOCKBUILDER_H_
22 #define OTAWA_DCACHE_BLOCKBUILDER_H_
23 
24 #include "features.h"
25 #include <otawa/prog/Inst.h>
26 #include <otawa/proc/BBProcessor.h>
27 #include <otawa/proc/Feature.h>
28 
29 namespace otawa {
30 
31 namespace hard {
32  class Cache;
33  class Memory;
34 }
35 
36 namespace clp { class Manager; }
37 
38 namespace dcache {
39 
40 // BlockBuilder class
41 class BlockBuilder: public BBProcessor {
42 public:
43  static p::declare reg;
45  virtual void configure(const PropList &props);
46 
47 protected:
48  virtual void setup(WorkSpace *ws);
49  virtual void processBB(WorkSpace *ws, CFG *cfg, BasicBlock *bb);
50 
51 private:
53  const hard::Memory *mem;
58 };
59 
60 } } // otawa
61 
62 #endif /* OTAWA_DCACHE_BLOCKBUILDER_H_ */
clp::Manager * man
Definition: BlockBuilder.h:57
virtual void processBB(WorkSpace *ws, CFG *cfg, BasicBlock *bb)
Perform the work of the given basic block.
Definition: dcache_BlockBuilder.cpp:106
This processor is dedicated to the basic block process thru proccessBB() method.
Definition: BBProcessor.h:72
CFG * cfg(void) const
Get the current CFG.
Definition: CFGProcessor.h:56
Class to declare simple a processor.
Definition: Registration.h:213
BlockBuilder(p::declare &r=reg)
Definition: dcache_BlockBuilder.cpp:64
static p::declare reg
Definition: BlockBuilder.h:43
Address sp
Definition: BlockBuilder.h:55
WorkSpace * ws
Definition: Processor.h:185
dtd::Element bb(dtd::make("bb", _BB).attr(id).attr(address).attr(size))
Control Flow Graph representation.
Definition: CFG.h:42
Class to represent the whole memory of the platform.
Definition: Memory.h:173
const hard::Cache * cache
Definition: BlockBuilder.h:52
BlockCollection * colls
Definition: BlockBuilder.h:56
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
Build the list of blocks used for L1 data cache analysis and decorate each basic block with the list ...
Definition: BlockBuilder.h:41
The representation of an address in OTAWA.
Definition: base.h:54
This class allows to exploit the result of a CLP analysis.
Definition: features.h:34
virtual void configure(const PropList &props)
Configure the current processor.
Definition: dcache_BlockBuilder.cpp:70
This is the minimal definition of a basic block.
Definition: BasicBlock.h:43
genstruct::Vector< BlockAccess > blocks
Definition: BlockBuilder.h:54
This a list of properties.
Definition: PropList.h:63
virtual void setup(WorkSpace *ws)
This method is called before an anlysis to let the processor do some initialization.
Definition: dcache_BlockBuilder.cpp:78
A block collections stores the list of data blocks used in a task for a specific line.
Definition: features.h:108
const hard::Memory * mem
Definition: BlockBuilder.h:53