OpenASIP  2.0
SchedulerCmdLineOptions.hh
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2010 Tampere University.
3 
4  This file is part of TTA-Based Codesign Environment (TCE).
5 
6  Permission is hereby granted, free of charge, to any person obtaining a
7  copy of this software and associated documentation files (the "Software"),
8  to deal in the Software without restriction, including without limitation
9  the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  and/or sell copies of the Software, and to permit persons to whom the
11  Software is furnished to do so, subject to the following conditions:
12 
13  The above copyright notice and this permission notice shall be included in
14  all copies or substantial portions of the Software.
15 
16  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  DEALINGS IN THE SOFTWARE.
23  */
24 /**
25  * @file SchedulerCmdLineOptions.hh
26  *
27  * Declaration of SchedulerCmdLineOptions class.
28  *
29  * @author Ari Mets�halme 2005 (ari.metsahalme-no.spam-tut.fi)
30  * @author Pekka Jääskeläinen 2010
31  * @note rating: red
32  */
33 
34 #ifndef TTA_SCHEDULER_CMD_LINE_OPTIONS_HH
35 #define TTA_SCHEDULER_CMD_LINE_OPTIONS_HH
36 
37 #include <string>
38 #include "CmdLineOptions.hh"
39 #include "InterPassDatum.hh"
40 
41 /**
42  * Command line options for the command line interface of the
43  * Scheduler (schedule).
44  */
46 public:
48  virtual ~SchedulerCmdLineOptions();
49 
50  virtual void printVersion() const;
51 
52  virtual bool isMachineFileDefined() const;
53  virtual std::string machineFile() const;
54 
55  virtual bool isOutputFileDefined() const;
56  virtual std::string outputFile() const;
57 
58  virtual int schedulingWindowSize() const {
61  140;
62  }
63 
64  virtual bool useRestrictedAliasAnalyzer() const;
65 
66  virtual bool renameRegisters() const;
67 
68  bool enableStackAA() const;
69 
70  bool enableOffsetAA() const;
71 
72  bool printResourceConstraints() const;
73 
74  virtual int ifConversionThreshold() const;
75  virtual bool dumpIfConversionCFGs() const;
76 
77  virtual int lowMemModeThreshold() const;
78 
79  virtual bool isLoopOptDefined() const;
80  virtual int bypassDistance() const;
81  virtual int noDreBypassDistance() const;
82  virtual int operandShareDistance() const;
83  virtual bool killDeadResults() const;
84 
85  virtual FunctionNameList* noaliasFunctions() const;
86 private:
87  /// Copying forbidden.
89  /// Assignment forbidden.
91 
92  /// Description of the command line usage of the Scheduler.
93  static const std::string USAGE;
94  static const std::string SWL_TARGET_MACHINE;
95  static const std::string SWS_TARGET_MACHINE;
96  static const std::string SWL_OUTPUT_FILE;
97  static const std::string SWS_OUTPUT_FILE;
98  static const std::string SWL_LOOP_FLAG;
99  static const std::string SWL_SCHEDULING_WINDOW;
100  static const std::string SWL_STACK_AA;
101  static const std::string SWL_OFFSET_AA;
102  static const std::string SWL_RENAME_REGISTERS;
103  static const std::string SWL_RESTRICTED_AA;
104  static const std::string SWL_IF_CONVERSION_THRESHOLD;
105  static const std::string SWL_LOWMEM_MODE_THRESHOLD;
106  static const std::string SWL_RESOURCE_CONSTRAINT_PRINTING;
107  static const std::string SWL_KILL_DEAD_RESULTS;
108  static const std::string SWL_NO_DRE_BYPASS_DISTANCE;
109  static const std::string SWL_BYPASS_DISTANCE;
110  static const std::string SWL_DUMP_IFCONVERSION_CFGS;
111  static const std::string SWL_OPERAND_SHARE_DISTANCE;
112  static const std::string SWL_NOALIAS_FUNCTIONS;
113 
114 };
115 
116 #endif
SimpleInterPassDatum
Definition: InterPassDatum.hh:64
SchedulerCmdLineOptions::SWL_RENAME_REGISTERS
static const std::string SWL_RENAME_REGISTERS
Definition: SchedulerCmdLineOptions.hh:102
SchedulerCmdLineOptions::enableOffsetAA
bool enableOffsetAA() const
Definition: SchedulerCmdLineOptions.cc:255
SchedulerCmdLineOptions::SWL_DUMP_IFCONVERSION_CFGS
static const std::string SWL_DUMP_IFCONVERSION_CFGS
Definition: SchedulerCmdLineOptions.hh:110
SchedulerCmdLineOptions::SWL_TARGET_MACHINE
static const std::string SWL_TARGET_MACHINE
Definition: SchedulerCmdLineOptions.hh:94
SchedulerCmdLineOptions::SWL_LOWMEM_MODE_THRESHOLD
static const std::string SWL_LOWMEM_MODE_THRESHOLD
Definition: SchedulerCmdLineOptions.hh:105
SchedulerCmdLineOptions::SWL_RESTRICTED_AA
static const std::string SWL_RESTRICTED_AA
Definition: SchedulerCmdLineOptions.hh:103
SchedulerCmdLineOptions::isLoopOptDefined
virtual bool isLoopOptDefined() const
Definition: SchedulerCmdLineOptions.cc:237
CmdLineOptionParser::isDefined
bool isDefined()
Definition: CmdLineOptionParser.cc:169
SchedulerCmdLineOptions::schedulingWindowSize
virtual int schedulingWindowSize() const
Definition: SchedulerCmdLineOptions.hh:58
SchedulerCmdLineOptions::SchedulerCmdLineOptions
SchedulerCmdLineOptions()
Definition: SchedulerCmdLineOptions.cc:76
SchedulerCmdLineOptions::SWL_RESOURCE_CONSTRAINT_PRINTING
static const std::string SWL_RESOURCE_CONSTRAINT_PRINTING
Definition: SchedulerCmdLineOptions.hh:106
SchedulerCmdLineOptions::USAGE
static const std::string USAGE
Description of the command line usage of the Scheduler.
Definition: SchedulerCmdLineOptions.hh:93
SchedulerCmdLineOptions::killDeadResults
virtual bool killDeadResults() const
Definition: SchedulerCmdLineOptions.cc:361
SchedulerCmdLineOptions::SWL_NOALIAS_FUNCTIONS
static const std::string SWL_NOALIAS_FUNCTIONS
Definition: SchedulerCmdLineOptions.hh:112
CmdLineOptions.hh
SchedulerCmdLineOptions::printVersion
virtual void printVersion() const
Definition: SchedulerCmdLineOptions.cc:186
SchedulerCmdLineOptions
Definition: SchedulerCmdLineOptions.hh:45
SchedulerCmdLineOptions::noaliasFunctions
virtual FunctionNameList * noaliasFunctions() const
Definition: SchedulerCmdLineOptions.cc:373
SchedulerCmdLineOptions::enableStackAA
bool enableStackAA() const
Definition: SchedulerCmdLineOptions.cc:247
SchedulerCmdLineOptions::SWL_BYPASS_DISTANCE
static const std::string SWL_BYPASS_DISTANCE
Definition: SchedulerCmdLineOptions.hh:109
SchedulerCmdLineOptions::lowMemModeThreshold
virtual int lowMemModeThreshold() const
Definition: SchedulerCmdLineOptions.cc:310
SchedulerCmdLineOptions::machineFile
virtual std::string machineFile() const
Definition: SchedulerCmdLineOptions.cc:197
SchedulerCmdLineOptions::SWL_LOOP_FLAG
static const std::string SWL_LOOP_FLAG
Definition: SchedulerCmdLineOptions.hh:98
InterPassDatum.hh
SchedulerCmdLineOptions::SWL_OPERAND_SHARE_DISTANCE
static const std::string SWL_OPERAND_SHARE_DISTANCE
Definition: SchedulerCmdLineOptions.hh:111
CmdLineOptions
Definition: CmdLineOptions.hh:54
SchedulerCmdLineOptions::~SchedulerCmdLineOptions
virtual ~SchedulerCmdLineOptions()
Definition: SchedulerCmdLineOptions.cc:179
SchedulerCmdLineOptions::SWS_TARGET_MACHINE
static const std::string SWS_TARGET_MACHINE
Definition: SchedulerCmdLineOptions.hh:95
SchedulerCmdLineOptions::outputFile
virtual std::string outputFile() const
Definition: SchedulerCmdLineOptions.cc:217
SchedulerCmdLineOptions::isMachineFileDefined
virtual bool isMachineFileDefined() const
Definition: SchedulerCmdLineOptions.cc:207
SchedulerCmdLineOptions::SWL_OUTPUT_FILE
static const std::string SWL_OUTPUT_FILE
Definition: SchedulerCmdLineOptions.hh:96
SchedulerCmdLineOptions::isOutputFileDefined
virtual bool isOutputFileDefined() const
Definition: SchedulerCmdLineOptions.cc:227
SchedulerCmdLineOptions::SWL_KILL_DEAD_RESULTS
static const std::string SWL_KILL_DEAD_RESULTS
Definition: SchedulerCmdLineOptions.hh:107
SchedulerCmdLineOptions::SWL_SCHEDULING_WINDOW
static const std::string SWL_SCHEDULING_WINDOW
Definition: SchedulerCmdLineOptions.hh:99
SchedulerCmdLineOptions::SWL_NO_DRE_BYPASS_DISTANCE
static const std::string SWL_NO_DRE_BYPASS_DISTANCE
Definition: SchedulerCmdLineOptions.hh:108
SchedulerCmdLineOptions::renameRegisters
virtual bool renameRegisters() const
Definition: SchedulerCmdLineOptions.cc:263
SchedulerCmdLineOptions::SWL_STACK_AA
static const std::string SWL_STACK_AA
Definition: SchedulerCmdLineOptions.hh:100
SchedulerCmdLineOptions::printResourceConstraints
bool printResourceConstraints() const
Definition: SchedulerCmdLineOptions.cc:271
SchedulerCmdLineOptions::SWL_IF_CONVERSION_THRESHOLD
static const std::string SWL_IF_CONVERSION_THRESHOLD
Definition: SchedulerCmdLineOptions.hh:104
SchedulerCmdLineOptions::useRestrictedAliasAnalyzer
virtual bool useRestrictedAliasAnalyzer() const
Definition: SchedulerCmdLineOptions.cc:242
SchedulerCmdLineOptions::noDreBypassDistance
virtual int noDreBypassDistance() const
Definition: SchedulerCmdLineOptions.cc:352
SchedulerCmdLineOptions::bypassDistance
virtual int bypassDistance() const
Definition: SchedulerCmdLineOptions.cc:327
CmdLineOptionParser::integer
virtual int integer(int index=0) const
Definition: CmdLineOptionParser.cc:84
CmdLineParser::findOption
CmdLineOptionParser * findOption(std::string name) const
Definition: CmdLineParser.cc:160
SchedulerCmdLineOptions::dumpIfConversionCFGs
virtual bool dumpIfConversionCFGs() const
Definition: SchedulerCmdLineOptions.cc:279
SchedulerCmdLineOptions::SWS_OUTPUT_FILE
static const std::string SWS_OUTPUT_FILE
Definition: SchedulerCmdLineOptions.hh:97
SchedulerCmdLineOptions::operandShareDistance
virtual int operandShareDistance() const
Definition: SchedulerCmdLineOptions.cc:336
SchedulerCmdLineOptions::operator=
SchedulerCmdLineOptions & operator=(const SchedulerCmdLineOptions &)
Assignment forbidden.
SchedulerCmdLineOptions::ifConversionThreshold
virtual int ifConversionThreshold() const
Definition: SchedulerCmdLineOptions.cc:294
SchedulerCmdLineOptions::SWL_OFFSET_AA
static const std::string SWL_OFFSET_AA
Definition: SchedulerCmdLineOptions.hh:101