|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcetus.exec.Driver
public class Driver
Implements the command line parser and controls pass ordering.
Users may extend this class by overriding runPasses
(which provides a default sequence of passes). The derived
class should pass an instance of itself to the run method.
Derived classes have access to a protected Program object.
| Field Summary | |
|---|---|
protected java.lang.String[] |
filenames
The filenames supplied on the command line. |
protected static CommandLineOptionSet |
options
A mapping from option names to option values. |
protected Program |
program
Override runPasses to do something with this object. |
| Constructor Summary | |
|---|---|
protected |
Driver()
Constructor used by derived classes. |
| Method Summary | |
|---|---|
static java.lang.String |
getOptionValue(java.lang.String key)
Returns the value of the given key or null if the value is not set. |
static java.util.HashSet |
getSkipProcedureSet()
Returns the set a procedure names that should be excluded from transformations. |
static void |
main(java.lang.String[] args)
Entry point for Cetus; creates a new Driver object, and calls run on it with args. |
protected void |
parseCommandLine(java.lang.String[] args)
Parses command line options to Cetus. |
protected void |
parseFiles_old()
Parses all of the files listed in filenames and creates a Program object. |
protected void |
parseFiles()
|
void |
printUsage()
Prints the list of options that Cetus accepts. |
void |
printVersion()
Prints the compiler version. |
void |
run(java.lang.String[] args)
Runs this driver with args as the command line. |
void |
runPasses()
Runs analysis and optimization passes on the program. |
protected static void |
setOptionValue(java.lang.String key,
java.lang.String value)
Sets the value of the option represented by key to value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static CommandLineOptionSet options
protected Program program
protected java.lang.String[] filenames
| Constructor Detail |
|---|
protected Driver()
| Method Detail |
|---|
public static java.lang.String getOptionValue(java.lang.String key)
public static java.util.HashSet getSkipProcedureSet()
protected void parseCommandLine(java.lang.String[] args)
args - The String array passed to main by the system.protected void parseFiles_old()
Program object.
protected void parseFiles()
public void printUsage()
public void printVersion()
public void run(java.lang.String[] args)
args - The command line from main.public void runPasses()
protected static void setOptionValue(java.lang.String key,
java.lang.String value)
key - The option name.value - The option value.public static void main(java.lang.String[] args)
args - Command line options.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||