Otawa  0.10
StackAnalysis.h
Go to the documentation of this file.
1 /*
2  * dfa::StackAnalysis 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
20  * 02110-1301 USA
21  */
22 
23 #ifndef OTAWA_DFA_STACKANALYSIS_H_
24 #define OTAWA_DFA_STACKANALYSIS_H_
25 
26 #include <otawa/proc/Processor.h>
27 
28 namespace otawa {
29 
30 namespace hard { class Register; }
31 
32 // StackAnalysis class
33 class StackAnalysis: public Processor {
34 public:
37 
38  static p::declare reg;
40  virtual void configure(const PropList &props);
41 
42 protected:
43  virtual void processWorkSpace(WorkSpace *ws);
45 };
46 
48 
49 } // otawa
50 
51 #endif /* OTAWA_DFA_STACKANALYSIS_H_ */
Feature< StackAnalysis > STACK_ANALYSIS_FEATURE
This features ensure that the stack analysis has been identified.
Definition: features.h:148
genstruct::Vector< init_t > inits
Definition: StackAnalysis.h:44
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: util_StackAnalysis.cpp:923
WorkSpace * ws
Definition: Processor.h:185
The processor class is implemented by all code processor.
Definition: Processor.h:49
static p::declare reg
Definition: StackAnalysis.h:38
A workspace represents a program, its run-time and all information about WCET computation or any othe...
Definition: WorkSpace.h:67
virtual void processWorkSpace(WorkSpace *ws)
Process the given framework.
Definition: util_StackAnalysis.cpp:867
static Identifier< init_t > INITIAL
This identifier is a configuration for the StackAnalysis processor.
Definition: StackAnalysis.h:36
This class represents identifier with a typed associated value.
Definition: Identifier.h:51
This a list of properties.
Definition: PropList.h:63
StackAnalysis(p::declare &r=reg)
Definition: util_StackAnalysis.cpp:855
This analyzer computes accessed addresses.
Definition: StackAnalysis.h:33
Pair< const hard::Register *, Address > init_t
Definition: StackAnalysis.h:35
A feature is a set of facilities, usually provided using properties, available on a framework...
Definition: Feature.h:46