OpenASIP 2.2
Loading...
Searching...
No Matches
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 */
46public:
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;
86private:
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
virtual int integer(int index=0) const
CmdLineOptionParser * findOption(std::string name) const
virtual bool isOutputFileDefined() const
virtual bool useRestrictedAliasAnalyzer() const
SchedulerCmdLineOptions & operator=(const SchedulerCmdLineOptions &)
Assignment forbidden.
static const std::string SWL_IF_CONVERSION_THRESHOLD
static const std::string SWL_RESOURCE_CONSTRAINT_PRINTING
static const std::string SWL_BYPASS_DISTANCE
virtual bool isMachineFileDefined() const
static const std::string SWL_OFFSET_AA
static const std::string SWL_NOALIAS_FUNCTIONS
static const std::string SWS_TARGET_MACHINE
static const std::string SWL_SCHEDULING_WINDOW
virtual int schedulingWindowSize() const
static const std::string SWL_KILL_DEAD_RESULTS
static const std::string SWL_LOOP_FLAG
virtual int lowMemModeThreshold() const
static const std::string SWS_OUTPUT_FILE
SchedulerCmdLineOptions(const SchedulerCmdLineOptions &)
Copying forbidden.
virtual bool killDeadResults() const
static const std::string SWL_NO_DRE_BYPASS_DISTANCE
static const std::string SWL_OUTPUT_FILE
virtual std::string machineFile() const
virtual bool dumpIfConversionCFGs() const
static const std::string SWL_TARGET_MACHINE
virtual int noDreBypassDistance() const
static const std::string SWL_RESTRICTED_AA
static const std::string SWL_RENAME_REGISTERS
static const std::string SWL_DUMP_IFCONVERSION_CFGS
static const std::string SWL_OPERAND_SHARE_DISTANCE
static const std::string USAGE
Description of the command line usage of the Scheduler.
virtual bool renameRegisters() const
virtual int ifConversionThreshold() const
virtual bool isLoopOptDefined() const
static const std::string SWL_LOWMEM_MODE_THRESHOLD
virtual int operandShareDistance() const
virtual std::string outputFile() const
virtual FunctionNameList * noaliasFunctions() const
static const std::string SWL_STACK_AA