Otawa  0.10
DeadCodeAnalysis.h
Go to the documentation of this file.
1 /*
2  * $Id$
3  * Dead Code processor interface
4  *
5  * This file is part of OTAWA
6  * Copyright (c) 2011, 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 
24 #ifndef OTAWA_DATA_CLP_DEADCODE_H_
25 #define OTAWA_DATA_CLP_DEADCODE_H_
26 
27 #include <otawa/proc/Processor.h>
28 
29 namespace otawa {
30 
31 // DeadCodeAnalysis class
32 class DeadCodeAnalysis: public Processor {
33 public:
34  DeadCodeAnalysis(void);
35 protected:
36  virtual void processWorkSpace(WorkSpace *ws);
37 };
38 
41 
42 } // otawa
43 
44 #endif /* OTAWA_DATA_CLP_DEADCODE_H_ */
WorkSpace * ws
Definition: Processor.h:185
Feature< DeadCodeAnalysis > DEAD_CODE_ANALYSIS_FEATURE
The processor class is implemented by all code processor.
Definition: Processor.h:49
This analyzer add the NEVER_TAKEN identifer on edges which are never taken.
Definition: DeadCodeAnalysis.h:32
virtual void processWorkSpace(WorkSpace *ws)
Process the given framework.
Definition: clp_analysis.cpp:2508
A workspace represents a program, its run-time and all information about WCET computation or any othe...
Definition: WorkSpace.h:67
DeadCodeAnalysis(void)
Definition: clp_analysis.cpp:2503
A feature is a set of facilities, usually provided using properties, available on a framework...
Definition: Feature.h:46
Identifier< bool > NEVER_TAKEN