OTAWA  2.0
Framework to perform machine analysis and compute WCET.
ILPSystemGetter.h
Go to the documentation of this file.
1 /*
2  * $Id$
3  * ILPSystemGetter class interface
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 02110-1301 USA
21  */
22 #ifndef OTAWA_IPET_ILP_SYSTEM_GETTER
23 #define OTAWA_IPET_ILP_SYSTEM_GETTER
24 
25 #include <otawa/proc/Processor.h>
26 #include <otawa/proc/Feature.h>
27 #include <otawa/prop/Identifier.h>
28 
29 namespace otawa {
30 
31 // Extern declaration
32 namespace ilp {
33  class System;
34 }
35 
36 namespace ipet {
37 
38 // SystemGetter class
39 class ILPSystemGetter: public Processor {
40 public:
41  static p::declare reg;
42  ILPSystemGetter(void);
43 protected:
44  string plugin_name;
45  void configure(const PropList &props) override;
46  void processWorkSpace(WorkSpace *ws) override;
47  void destroy(WorkSpace *ws) override;
48 private:
49  bool max;
50 };
51 
52 } } // otawa::ipet
53 
54 #endif // OTAWA_IPET_ILP_SYSTEM_GETTER
otawa::ipet::ILPSystemGetter::destroy
void destroy(WorkSpace *ws) override
This method is called when the properties produced by a processor are no more useful and can be relea...
Definition: ipet_ILPSystemGetter.cpp:89
Processor.h
otawa::WorkSpace
Definition: WorkSpace.h:71
Feature.h
otawa::Processor::ws
WorkSpace * ws
Definition: Processor.h:189
otawa::ipet::ILPSystemGetter
Definition: ILPSystemGetter.h:39
otawa::Processor
Definition: Processor.h:50
otawa::ipet::ILPSystemGetter::plugin_name
string plugin_name
Definition: ILPSystemGetter.h:44
Identifier.h
otawa::ipet::ILPSystemGetter::configure
void configure(const PropList &props) override
This method may be called for configuring a processor thanks to information passed in the property li...
Definition: ipet_ILPSystemGetter.cpp:81
otawa::ipet::ILPSystemGetter::reg
static p::declare reg
Definition: ILPSystemGetter.h:41
otawa::ipet::ILPSystemGetter::ILPSystemGetter
ILPSystemGetter(void)
Build the processor.
Definition: ipet_ILPSystemGetter.cpp:55
otawa::ipet::ILPSystemGetter::max
bool max
Definition: ILPSystemGetter.h:49
otawa::p::declare
Definition: Registration.h:188
otawa::ipet::ILPSystemGetter::processWorkSpace
void processWorkSpace(WorkSpace *ws) override
Process the given framework.
Definition: ipet_ILPSystemGetter.cpp:61
otawa::PropList
Definition: PropList.h:67
otawa
Development Note Letting the ToDo / ToDoList class visible in the header is clumsy.
Definition: ArrayStore.h:25