OpenASIP
2.0
|
#include <iostream>
#include "Application.hh"
#include "LLVMBackend.hh"
#include "LLVMTCECmdLineOptions.hh"
#include "Program.hh"
#include "ADFSerializer.hh"
#include "FileSystem.hh"
#include "InterPassData.hh"
#include "Machine.hh"
#include "CompilerWarnings.hh"
#include <llvm/Support/CommandLine.h>
Go to the source code of this file.
Macros | |
#define | __STDC_LIMIT_MACROS |
Functions | |
int | main (int argc, char *argv[]) |
Variables | |
const POP_COMPILER_DIAGS std::string | DEFAULT_OUTPUT_FILENAME = "out.tpef" |
const int | DEFAULT_OPT_LEVEL = 2 |
#define __STDC_LIMIT_MACROS |
Definition at line 46 of file LLVMTCE.cc.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Main function of the CLI.
Checks command line options and runs compiler accordingly.
argc | Argument count. |
argv | Command line arguments. |
Definition at line 65 of file LLVMTCE.cc.
References CmdLineParser::argument(), LLVMBackend::compile(), DEFAULT_OPT_LEVEL, DEFAULT_OUTPUT_FILENAME, Exception::errorMessage(), Exception::errorMessageStack(), Application::errorStream(), FileSystem::fileExists(), FileSystem::fileIsCreatable(), FileSystem::fileIsDirectory(), FileSystem::fileIsReadable(), FileSystem::fileIsWritable(), Application::initialize(), Application::isInstalled(), CmdLineOptions::isVerboseSpamSwitchDefined(), CmdLineOptions::isVerboseSwitchDefined(), CmdLineParser::numberOfArguments(), options, outputFileName(), CmdLineOptions::parse(), MachInfoCmdLineOptions::printHelp(), ADFSerializer::readMachine(), Application::setCmdLineOptions(), XMLSerializer::setSourceFile(), Application::setVerboseLevel(), Application::VERBOSE_LEVEL_INCREASED, and TTAProgram::Program::writeToTPEF().
const int DEFAULT_OPT_LEVEL = 2 |
Definition at line 53 of file LLVMTCE.cc.
Referenced by main().
const POP_COMPILER_DIAGS std::string DEFAULT_OUTPUT_FILENAME = "out.tpef" |
Definition at line 52 of file LLVMTCE.cc.
Referenced by main().