OpenASIP
2.0
|
#include <CompileTools.hh>
Static Public Member Functions | |
static TTAProgram::Program * | compileAsC (const TTAMachine::Machine &target, std::stringstream &code, const std::string &cflags="") |
static TTAProgram::Program * | compileAsC (const TTAMachine::Machine &target, const std::string &code, const std::string &cflags="") |
static TTAProgram::Program * | compileAsLLVM (const TTAMachine::Machine &target, const std::stringstream &code, const std::string compileOptions) |
Private Member Functions | |
CompileTools () | |
virtual | ~CompileTools () |
Definition at line 51 of file CompileTools.hh.
|
private |
Definition at line 46 of file CompileTools.cc.
|
privatevirtual |
Definition at line 49 of file CompileTools.cc.
|
static |
Definition at line 53 of file CompileTools.cc.
References compileAsC().
|
static |
Interprets code as C code and tries to convert it to Program.
Definition at line 68 of file CompileTools.cc.
References FileSystem::createTempDirectory(), FileSystem::currentWorkingDir(), FileSystem::DIRECTORY_SEPARATOR, FileSystem::fileExists(), FileSystem::removeFileOrDirectory(), Application::runShellCommandAndGetOutput(), XMLSerializer::setDestinationFile(), Environment::tceCompiler(), and ADFSerializer::writeMachine().
Referenced by compileAsC().
|
static |
Interprets string stream as LLVM (.ll) assembly code and tries to convert it to Program.
Definition at line 133 of file CompileTools.cc.
References FileSystem::createTempDirectory(), FileSystem::currentWorkingDir(), FileSystem::DIRECTORY_SEPARATOR, FileSystem::removeFileOrDirectory(), Application::runShellCommandSilently(), XMLSerializer::setDestinationFile(), Environment::tceCompiler(), and ADFSerializer::writeMachine().