public class Driver
extends java.lang.Object
Program
object.Modifier and Type | Field and Description |
---|---|
static java.util.ArrayList<java.lang.String> |
autoTurnedOnOptions |
static java.lang.String |
brokenLink |
static java.lang.String |
cetusInfoURL |
static java.lang.String |
cetusURL
URL to build number
|
static java.lang.String |
currentVersion
version number
|
static java.lang.String |
onlineVersion |
static java.lang.String |
preferencesDirFileName |
static java.io.File |
preferencesFile |
static java.lang.String |
preferencesFileName
Cetus default option file
|
static ThreadUpdate |
t2 |
static boolean |
updateNeeded |
static java.lang.String |
version
Compiler version information, GUI added since 1.4.0
|
static java.lang.String |
versionInfoString |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkUpdate()
check if there is a new Cetus
|
void |
dumpOptionsFile()
dump default options to file options.cetus in working directory
do not overwrite if file already exists.
|
void |
dumpSystemOptionsFile() |
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 of procedure names that should be excluded from
transformations.
|
static boolean |
isIncluded(java.lang.String name,
java.lang.String hir_type,
java.lang.String hir_name) |
void |
loadOptionsFile()
load options.cetus
search order is working directory and then home directory
|
static void |
main(java.lang.String[] args)
Entry point for Cetus; creates a new Driver object,
and calls run on it with args.
|
java.lang.String |
printUsage()
Prints the list of options that Cetus accepts.
|
void |
printVersion()
Prints the compiler version.
|
static void |
registerOptions()
Register default legal set of options and default values for Driver.
|
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.
|
static void |
setOptionValue(java.lang.String key,
java.lang.String value)
Sets the value of the option represented by key to
value.
|
public static java.lang.String preferencesFileName
public static java.lang.String preferencesDirFileName
public static java.io.File preferencesFile
public static java.lang.String currentVersion
public static java.lang.String cetusURL
public static java.lang.String cetusInfoURL
public static java.lang.String versionInfoString
public static boolean updateNeeded
public static final java.lang.String brokenLink
public static java.lang.String onlineVersion
public static java.lang.String version
public static ThreadUpdate t2
public static java.util.ArrayList<java.lang.String> autoTurnedOnOptions
public static boolean checkUpdate()
public static void registerOptions()
public static java.lang.String getOptionValue(java.lang.String key)
key
- The key to searchpublic static java.util.HashSet getSkipProcedureSet()
public java.lang.String printUsage()
public void dumpOptionsFile()
public void dumpSystemOptionsFile()
public void loadOptionsFile()
public void printVersion()
public void run(java.lang.String[] args)
args
- The command line from main.public void runPasses()
public static void setOptionValue(java.lang.String key, java.lang.String value)
key
- The option name.value
- The option value.public static boolean isIncluded(java.lang.String name, java.lang.String hir_type, java.lang.String hir_name)
public static void main(java.lang.String[] args)
args
- Command line options.java.io.IOException