Otawa  0.10
TrivialAstBlockTime.h
Go to the documentation of this file.
1 /*
2  * TrivialASTBlockTime class interface
3  *
4  * This file is part of OTAWA
5  * Copyright (c) 2005, 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_ETS_TRIVIALASTBLOCKTIME_H
22 #define OTAWA_ETS_TRIVIALASTBLOCKTIME_H
23 
24 #include <elm/assert.h>
25 #include <otawa/ast/ASTProcessor.h>
26 
27 namespace otawa { namespace ets {
28 
29 using namespace ast;
30 
31 // TrivialAstBlockTime class
33 public:
34  static p::declare reg;
36  inline int depth(void) const { return dep; }
37 
38 protected:
39  void processAST(WorkSpace *fw, AST *ba);
40  virtual void configure(PropList& props);
41 
42 private:
43  int dep;
44 };
45 
46 extern Identifier<int> DEPTH;
47 
48 } } // otawa::ets
49 
50 #endif // OTAWA_ETS_TRIVIALASTBLOCKTIME_H
Class to declare simple a processor.
Definition: Registration.h:213
Identifier< int > DEPTH
Depth of the pipeline for the code processor TrivialAstBlockTime.
This is a specialization of the processor class dedicated to AST processing.
Definition: ASTProcessor.h:32
A workspace represents a program, its run-time and all information about WCET computation or any othe...
Definition: WorkSpace.h:67
This processor is used for computing execution of ast blocks in a trivial way, that is...
Definition: TrivialAstBlockTime.h:32
int depth(void) const
Get the depth of the pipeline.
Definition: TrivialAstBlockTime.h:36
This is the base class for the representation of programs as Abstract Syntax Trees.
Definition: AST.h:53
static p::declare reg
Definition: TrivialAstBlockTime.h:34
This a list of properties.
Definition: PropList.h:63
int dep
Definition: TrivialAstBlockTime.h:43