OpenASIP
2.0
|
#include <Application.hh>
Classes | |
class | UnixSignalHandler |
Static Public Member Functions | |
static void | initialize (int argc, char *argv[]) |
static void | initialize () |
static void | finalize () |
static void | writeToErrorLog (const std::string fileName, const int lineNumber, const std::string functionName, const std::string message, const int neededVerbosity=0) |
static void | exitProgram (const int status=EXIT_SUCCESS) |
static void | abortProgram () __attribute__((noreturn)) |
static void | unexpectedExceptionHandler () |
static bool | shellCommandsExists (const std::string &commands) |
static int | runShellCommandSilently (const std::string &command) |
static int | runShellCommandAndGetOutput (const std::string &command, std::vector< std::string > &outputLines, std::size_t maxOutputLines=DEFAULT_MAX_OUTPUT_LINES, bool includeStdErr=false) |
static std::ostream & | logStream () |
static std::ostream & | warningStream () |
static std::ostream & | errorStream () |
static int | verboseLevel () |
static bool | increasedVerbose () |
static bool | spamVerbose () |
static void | setVerboseLevel (const int level=VERBOSE_LEVEL_DEFAULT) |
static void | setCmdLineOptions (CmdLineOptions *options_) |
static CmdLineOptions * | cmdLineOptions () |
static int | argc () |
static char ** | argv () |
static bool | isInstalled () |
static std::string | installationDir () |
static void | setSignalHandler (int signalNum, UnixSignalHandler &handler) |
static UnixSignalHandler * | getSignalHandler (int signalNum) |
static void | restoreSignalHandler (int signalNum) |
static std::string | TCEVersionString () |
Static Public Attributes | |
static const int | VERBOSE_LEVEL_DEFAULT = 0 |
Default verbose level - do not print anything unnecessary. More... | |
static const int | VERBOSE_LEVEL_INCREASED = 1 |
Increased verbose level - print information about modules etc. More... | |
static const int | VERBOSE_LEVEL_SPAM = 2 |
More Increased verbose level - spam about ddg heights of loops. More... | |
static const bool | LOOP_OPT_DEFAULT = false |
Use Loop Optimizations. More... | |
Static Private Member Functions | |
static void | signalRedirector (int data, siginfo_t *info, void *context) |
Static Private Attributes | |
static bool | initialized_ = false |
True when initialize() is called. Ensures that initialization is done only once. More... | |
static std::ostream * | logStream_ = NULL |
The stream for debug logging. More... | |
static std::ostream * | errorStream_ = NULL |
The stream for user error notifications. More... | |
static std::ostream * | warningStream_ = NULL |
The stream for user error notifications. More... | |
static std::map< int, UnixSignalHandler * > | signalHandlers_ |
Signal handlers in a map associated by their signal numbers. More... | |
static int | verboseLevel_ = Application::VERBOSE_LEVEL_DEFAULT |
Verbose level directs how much output will be printed to console. More... | |
static CmdLineOptions * | cmdLineOptions_ = NULL |
Holds command line options passed to program. More... | |
static int | argc_ |
The original argc and argv given to the main program, if applicable. More... | |
static char ** | argv_ |
static std::string | installationRoot_ = "" |
Path to the TCE installation root. More... | |
Definition at line 144 of file Application.hh.
|
static |
Exit the program in an abnormal situation.
Definition at line 266 of file Application.cc.
Referenced by UniversalMachine::addAddressSpace(), UniversalMachine::addBridge(), UniversalMachine::addBus(), UniversalMachine::addFunctionUnit(), UniversalMachine::addImmediateUnit(), UniversalMachine::addInstructionTemplate(), UniversalFunctionUnit::addPipelineElement(), UniversalMachine::addRegisterFile(), UniversalMachine::addSocket(), UniversalFunctionUnit::addSupportedOperation(), TTAMachine::Socket::attachBus(), SmartHWOperation::bindPort(), ADFSerializer::busToMachine(), ADFSerializer::busToMDF(), TTAMachine::Socket::connection(), UniversalMachine::construct(), TTAProgram::TPEFProgramFactory::createTerminal(), UniversalMachine::deleteAddressSpace(), ADFSerializer::immediateUnitToMachine(), ADFSerializer::immediateUnitToMDF(), initialize(), UnboundedRegisterFile::loadState(), UniversalFunctionUnit::loadState(), UniversalFUPort::loadState(), SmartHWOperation::loadState(), UniversalMachine::loadState(), ADFSerializer::machinePipeline(), ADFSerializer::machineSRPort(), ADFSerializer::registerFileToMachine(), ADFSerializer::registerFileToMDF(), UniversalMachine::removeBus(), UniversalMachine::removeFunctionUnit(), UniversalMachine::removeRegisterFile(), UniversalMachine::removeSocket(), UniversalMachine::setGlobalControl(), ADFSerializer::setIUExtensionMode(), UnboundedRegisterFile::setMaxReads(), UnboundedRegisterFile::setMaxWrites(), SmartHWOperation::setName(), UniversalFUPort::setName(), UnboundedRegisterFile::setName(), UnboundedRegisterFile::setNumberOfRegisters(), UniversalFUPort::setOpcodeSetting(), UniversalFUPort::setTriggering(), UnboundedRegisterFile::setType(), UnboundedRegisterFile::setWidth(), UniversalFUPort::setWidth(), SmartHWOperation::unbindPort(), TTAMachine::Port::unconnectedSocket(), unexpectedExceptionHandler(), and UniversalMachine::unsetGlobalControl().
|
inlinestatic |
Definition at line 192 of file Application.hh.
References argc_.
Referenced by initialize(), and SimulatorCLI::SimulatorCLI().
|
inlinestatic |
Definition at line 193 of file Application.hh.
References argv_.
Referenced by initialize(), and SimulatorCLI::SimulatorCLI().
|
static |
Definition at line 397 of file Application.cc.
References cmdLineOptions_.
Referenced by llvm::TCEPassConfig::addPreISel(), BasicBlockScheduler::BasicBlockScheduler(), BBSchedulerController::BBSchedulerController(), BF2Scheduler::BF2Scheduler(), BFEarlyBypasser::BFEarlyBypasser(), BFLateBypasses::BFLateBypasses(), BFShareOperands::BFShareOperands(), BFShareOperandsLate::BFShareOperandsLate(), BUBasicBlockScheduler::BUBasicBlockScheduler(), llvm::LLVMTCEIRBuilder::compileOptimized(), CycleLookBackSoftwareBypasser::CycleLookBackSoftwareBypasser(), DataDependenceGraphBuilder::DataDependenceGraphBuilder(), llvm::TCERegisterInfo::eliminateFrameIndex(), llvm::TCERegisterInfo::getReservedRegs(), BBSchedulerController::handleBasicBlock(), SimpleIfConverter::handleControlFlowGraph(), PreOptimizer::handleProcedure(), BBSchedulerController::handleProcedure(), llvm::LLVMTCEBuilder::initMembers(), llvm::TCETTIImpl::isHardwareLoopProfitable(), LLVMBackend::LLVMBackend(), DataDependenceGraphBuilder::memoryCategory(), DesignSpaceExplorer::schedule(), SimpleBrokerDirector::SimpleBrokerDirector(), SimpleIfConverter::SimpleIfConverter(), SimulatorCLI::SimulatorCLI(), llvm::TCETargetLowering::TCETargetLowering(), and llvm::LLVMTCEIRBuilder::~LLVMTCEIRBuilder().
|
static |
Stream where error messages that should be printed immediately to the user should be written.
Errors are fatal which means the action performed could not be finished.
Usage example: errorStream() << "Compilation error: "...
Definition at line 171 of file Application.cc.
References errorStream_, and initialize().
Referenced by VLIWConnectIC::explore(), BlocksConnectIC::explore(), main(), ConstantTransformer::runOnMachineFunction(), and writeCustomOpMacros().
|
static |
Exits the program in a normal situation.
This method must be used when the program terminates due to nominal conditions without returning from main().
status | Program's status of exit. |
Definition at line 258 of file Application.cc.
Referenced by ComponentAdder::addRegisterFiles().
|
static |
Cleans up the state data used by the application services.
This method is called automatically when program is terminated.
Definition at line 199 of file Application.cc.
References cmdLineOptions_, initialized_, and logStream_.
Referenced by initialize().
|
static |
Returns a pointer to the signal's current handler
In platforms which do not support signals this method always returns NULL.
InstanceNotFound | if the signal has not been set a custom handler |
Definition at line 445 of file Application.cc.
References signalHandlers_.
Referenced by signalRedirector().
|
inlinestatic |
Definition at line 179 of file Application.hh.
References VERBOSE_LEVEL_DEFAULT, and verboseLevel().
Referenced by ProGe::ProGeUI::generateIDF().
|
static |
Initializes the state data needed by the application services.
Definition at line 99 of file Application.cc.
References abortProgram(), Environment::developerMode(), Environment::errorLogFilePath(), errorStream_, finalize(), initialized_, installationDir(), installationRoot_, logStream_, unexpectedExceptionHandler(), warningStream_, and writeToErrorLog().
Referenced by errorStream(), Script::execute(), initialize(), logStream(), main(), OSEd::OnInit(), HDBEditor::OnInit(), Proxim::OnInit(), ProDe::OnInit(), warningStream(), and writeToErrorLog().
|
static |
Definition at line 141 of file Application.cc.
References argc(), argc_, argv(), argv_, and initialize().
|
static |
Returns the path to TCE installation root
Installation root can be one created by 'make install' or .deb package unpacked to homedir for example. Environment variable TCE_INSTALL_DIR should be set in the second case pointing to that dir where .deb was installed or tce installation manually copied/moved to.
Definition at line 537 of file Application.cc.
References Environment::environmentVariable(), FileSystem::fileExists(), and installationRoot_.
Referenced by OperationBuilder::buildObject(), Environment::codeCompressorPaths(), Environment::confPath(), LLVMBackend::createPlugin(), Environment::defaultSchedulerConf(), Environment::estimatorPluginPaths(), Environment::explorerPluginPaths(), Environment::hdbPaths(), Environment::icDecoderPluginPaths(), Environment::implementationTesterTemplatePaths(), Environment::includeDirPaths(), Environment::initialize(), initialize(), Environment::longHDBPath(), Environment::minimalADF(), Environment::oldGccSchedulerConf(), Environment::osalPaths(), Environment::pdfManual(), Environment::schedulerPluginPaths(), Environment::shortHDBPath(), Environment::tceCompiler(), and Environment::vhdlPaths().
|
static |
Returns true if the application is running from an install path.
Since there is no reliable way to detect this from the binary name or such since TCE can be used as a library, we just assume we are using an installed TCE in case the developer mode is not set.
Definition at line 522 of file Application.cc.
References Environment::developerMode().
Referenced by OperationBuilder::buildObject(), and main().
|
static |
Allows writing to the log stream with stream operators.
Usage example: logStream() << "Debug output" << i << endl;
Definition at line 155 of file Application.cc.
References initialize(), and logStream_.
Referenced by llvm::LLVMTCEBuilder::addCandidateLSUAnnotations(), RegisterCopyAdder::addConnectionRegisterCopies(), LoopPrologAndEpilogBuilder::addEpilogFromRM(), ControlFlowGraph::addExit(), ProgramDependenceGraph::addLeafEdges(), RegisterCopyAdder::addMinimumRegisterCopies(), llvm::LLVMTCEBuilder::addPointerAnnotations(), LoopPrologAndEpilogBuilder::addPrologFromRM(), RegisterCopyAdder::addRegisterCopies(), RegisterCopyAdder::addRegisterCopiesToRRMove(), llvm::LLVMTCEBuilder::addressSpaceById(), MultiLatencyOperationExecutor::advanceClock(), PRegionAliasAnalyzer::analyze(), ResourceConstraintAnalyzer::analyze(), ControlDependenceGraph::analyzeCDG(), TDGen::analyzeMachineRegisters(), ResourceConstraintAnalyzer::analyzeMoveNode(), ResourceConstraintAnalyzer::analyzeRegisterAntideps(), TDGen::analyzeRegisters(), SimpleResourceManager::assign(), MachineInstrDDG::assignPhysReg(), LoopPrologAndEpilogBuilder::build(), MoveNodeGroupBuilder::build(), DataDependenceGraphBuilder::build(), ControlFlowGraph::buildMBBFromBB(), OperationBuilder::buildObject(), llvm::LLVMTCEIRBuilder::buildTCECFG(), SimpleResourceManager::canAssign(), SimpleBrokerDirector::canAssign(), SimpleIfConverter::canConvert(), DataDependenceGraphBuilder::checkAndCreateMemDep(), ProgramDependenceGraph::compareSiblings(), LLVMBackend::compile(), CompiledSimCompiler::compileDirectory(), CompiledSimCompiler::compileFile(), ConflictDetectionCodeGenerator::ConflictDetectionCodeGenerator(), BasicBlockPass::copyRMToBB(), ControlFlowGraph::createControlFlowEdge(), TTAProgram::ProgramWriter::createDataSections(), InstructionDictionary::createDictionary(), ProgramDependenceGraph::createJump(), llvm::LLVMTCEIRBuilder::createMBBReference(), LLVMBackend::createPlugin(), DataDependenceGraphBuilder::createRegisterDeps(), llvm::createTCESchedulerPass(), TTAProgram::TPEFProgramFactory::createTerminal(), DataDependenceGraphBuilder::DataDependenceGraphBuilder(), BasicBlockPass::ddgSnapshot(), llvm::LLVMTCEBuilder::deleteDeadProcedures(), ProgramDependenceGraph::disassemble(), MoveNodeGroup::earliestCycle(), SimpleResourceManager::earliestCycle(), llvm::LLVMTCEBuilder::emitInstruction(), llvm::LLVMTCEBuilder::emitMove(), llvm::LLVMTCEBuilder::emitWriteSP(), StrictMatchFUEstimator::estimateArea(), StrictMatchRFEstimator::estimateArea(), InterpolatingRFEstimator::estimateArea(), InterpolatingFUEstimator::estimateArea(), StrictMatchFUEstimator::estimateEnergy(), StrictMatchRFEstimator::estimateEnergy(), InterpolatingFUEstimator::estimateEnergy(), InterpolatingRFEstimator::estimateEnergy(), StrictMatchFUEstimator::estimateMaximumComputationDelay(), StrictMatchRFEstimator::estimateMaximumComputationDelay(), InterpolatingRFEstimator::estimateMaximumComputationDelay(), InterpolatingFUEstimator::estimateMaximumComputationDelay(), StrictMatchFUEstimator::estimatePortReadDelay(), StrictMatchRFEstimator::estimatePortReadDelay(), InterpolatingRFEstimator::estimatePortReadDelay(), InterpolatingFUEstimator::estimatePortReadDelay(), StrictMatchFUEstimator::estimatePortWriteDelay(), StrictMatchRFEstimator::estimatePortWriteDelay(), InterpolatingRFEstimator::estimatePortWriteDelay(), InterpolatingFUEstimator::estimatePortWriteDelay(), BasicBlockPass::executeDDGPass(), BBSchedulerController::executeDDGPass(), ProgramPass::executeProcedurePass(), CodeSectionCreator::finalize(), CostEstimator::Estimator::findAllICPaths(), CompiledSimCodeGenerator::findBasicBlocks(), ProgramImageGenerator::generateProgramImage(), BBSchedulerController::handleBasicBlock(), CallsToJumps::handleControlFlowGraph(), SimpleIfConverter::handleControlFlowGraph(), BUBasicBlockScheduler::handleLoopDDG(), BasicBlockScheduler::handleLoopDDG(), BF2Scheduler::handleLoopDDG(), llvm::LLVMTCEBuilder::handleMemoryCategoryInfo(), BBSchedulerController::handleProcedure(), BasicBlockScheduler::handleRemovedResultMoves(), CostEstimator::Estimator::icArea(), llvm::LLVMTCEBuilder::initDataSections(), StopPoint::isConditionOK(), SimpleResourceManager::largestCycle(), SimpleResourceManager::latestCycle(), llvm::LLVMTCERISCVIntrinsicsLowering::LLVMTCERISCVIntrinsicsLowering(), llvm::LLVMTCEScheduler::LLVMTCEScheduler(), CostEstimator::Estimator::longestPath(), MachineInstrDDG::MachineInstrDDG(), main(), ResourceConstraintAnalyzer::memoryBoundScheduleResourceUsage(), CompiledSimulation::msg(), VirtRegIndependenceGraph::newFalseDepsFromAssign(), BlockImplementationFileDialog::onOK(), MoveSlotDictionary::printDetails(), ProgramDependenceNode::printRelations(), ControlDependenceNode::printRelations(), ControlDependenceGraph::processRegion(), ProgramDependenceGraph::processRegion(), ADFCombiner::readParameters(), ProgramDependenceGraph::removeGuardedJump(), CompiledSimController::reset(), BUBasicBlockScheduler::scheduleInputOperandTempMoves(), BasicBlockScheduler::scheduleOperation(), BUBasicBlockScheduler::scheduleOperation(), DataDependenceGraphBuilder::searchRegisterDeaths(), ProgramDependenceGraph::serializePDG(), SimpleIfConverter::SimpleIfConverter(), SimpleResourceManager::smallestCycle(), MultiLatencyOperationExecutor::startOperation(), SimpleIfConverter::successors(), llvm::TCETargetLowering::TCETargetLowering(), CostEstimator::Estimator::totalAreaOfFunctionUnits(), CostEstimator::Estimator::totalAreaOfRegisterFiles(), SimpleResourceManager::unassign(), TTAProgram::InstructionReferenceManager::validate(), TDGen::verbose(), VirtRegIndependenceGraph::VirtRegIndependenceGraph(), TDGen::writeInstrInfo(), llvm::LLVMTCEIRBuilder::writeMachineFunction(), llvm::LLVMTCEBuilder::writeMachineFunction(), TDGen::writeOperationDef(), and FiniteStateAutomaton::~FiniteStateAutomaton().
|
static |
Restores to the signal its original handler
Note in platforms which do not support signals (e.g. Windows), this function does nothing.
signalNum | signal number |
Definition at line 471 of file Application.cc.
References signalHandlers_.
Referenced by main().
|
static |
Runs a shell command and captures its output (stdout) in the given vector.
Assumes that the executed program does not block and wait for input.
command | Command to execute. |
outputLines | Vector to which put the output lines. |
maxOutputLines | Maximum lines to capture. |
Definition at line 338 of file Application.cc.
References MAX_OUTPUT_LINE_LENGTH, WEXITSTATUS, and WIFEXITED.
Referenced by OperationBuilder::buildObject(), CompileTools::compileAsC(), GhdlSimulator::compileDesign(), ModelsimSimulator::compileOneFile(), ModelsimSimulator::createWorkDir(), GhdlSimulator::importFile(), DesignSpaceExplorer::schedule(), GhdlSimulator::simulate(), and ModelsimSimulator::simulate().
|
static |
Runs a shell command and redirects all output to /dev/null
command | Command to execute. |
Definition at line 301 of file Application.cc.
References MAX_OUTPUT_LINE_LENGTH, WEXITSTATUS, and WIFEXITED.
Referenced by CompileTools::compileAsLLVM(), and shellCommandsExists().
|
static |
Set the command line options instance for the application.
The object becomes owned by Application class. It should be fully built (parsed) before passed to Application.
Definition at line 381 of file Application.cc.
References cmdLineOptions_, CmdLineOptions::isVerboseSpamSwitchDefined(), CmdLineOptions::isVerboseSwitchDefined(), options, setVerboseLevel(), VERBOSE_LEVEL_INCREASED, and VERBOSE_LEVEL_SPAM.
Referenced by llvm::LLVMTCEScheduler::LLVMTCEScheduler(), and main().
|
static |
Sets a new signal handler for the given signal
Note in platforms which do not support signals (e.g. Windows), this function does nothing.
signalNum | signal number |
handler | The handler to be set |
Definition at line 417 of file Application.cc.
References signalHandlers_, and signalRedirector().
Referenced by main().
|
inlinestatic |
Definition at line 186 of file Application.hh.
References verboseLevel_.
Referenced by GenerateProcessor::generateProcessor(), main(), and setCmdLineOptions().
|
static |
Returns true if all commands separated by space are found.
Otherwise return false;
Definition at line 290 of file Application.cc.
References runShellCommandSilently().
|
staticprivate |
Redirects the signal received to the current signal handler
Note in platforms which do not support signals (e.g. Windows), this function does nothing.
data | Data from the signal. |
info | signal information struct |
context | signal context |
Definition at line 494 of file Application.cc.
References assert, Application::UnixSignalHandler::execute(), and getSignalHandler().
Referenced by setSignalHandler().
|
inlinestatic |
Definition at line 182 of file Application.hh.
References VERBOSE_LEVEL_INCREASED, and verboseLevel().
Referenced by ProGe::ProcessorGenerator::generateProcessor(), and InlineAsmParser::substituteAsmString().
|
static |
Returns the version string of the TCE build.
This string includes the version control revision (if available), automatically generated during build. This cannot be in headers as it would induce a (almost) complete build of TCE on every revision change.
Definition at line 510 of file Application.cc.
Referenced by Proxim::OnInit(), LLVMBackend::pluginFilename(), MachInfoCmdLineOptions::printVersion(), BuildOpsetOptions::printVersion(), BEMViewerCmdLineOptions::printVersion(), CreateHDBCmdLineOptions::printVersion(), EstimatorCmdLineOptions::printVersion(), SimulatorCmdLineOptions::printVersion(), SchedulerCmdLineOptions::printVersion(), ExplorerCmdLineOptions::printVersion(), TTAUnitTesterCmdLineOptions::printVersion(), TestHDBCmdLineOptions::printVersion(), AsmCmdLineOptions::printVersion(), ProGeCmdLineOptions::printVersion(), LLVMTCECmdLineOptions::printVersion(), DisasmCmdLineOptions::printVersion(), DictionaryToolCmdLineOptions::printVersion(), DumperCmdLineOptions::printVersion(), and OsalCmdLineOptions::printVersion().
|
static |
Default callback for unexpected exceptions.
Definition at line 274 of file Application.cc.
References abortProgram(), Exception::lastExceptionInfo(), and logStream_.
Referenced by initialize().
|
inlinestatic |
Definition at line 176 of file Application.hh.
References verboseLevel_.
Referenced by llvm::LLVMTCEBuilder::addCandidateLSUAnnotations(), LoopPrologAndEpilogBuilder::addEpilogFromRM(), ControlFlowGraph::addExit(), LoopPrologAndEpilogBuilder::addPrologFromRM(), LoopPrologAndEpilogBuilder::addPrologIntoCfg(), LoopAnalyzer::analyze(), ControlDependenceGraph::analyzeCDG(), TDGen::analyzeMachineRegisters(), ResourceConstraintAnalyzer::analyzeRegisterAntideps(), TDGen::analyzeRegisters(), LoopPrologAndEpilogBuilder::build(), OperationBuilder::buildObject(), FrequencySweepExplorer::callPlugin(), LLVMBackend::compile(), MoveSlotDictionary::compress(), BasicBlockPass::copyRMToBB(), ControlFlowGraph::createControlFlowEdge(), InstructionDictionary::createDictionary(), LLVMBackend::createPlugin(), DataDependenceGraphBuilder::createRegisterDeps(), DataDependenceGraphBuilder::DataDependenceGraphBuilder(), llvm::LLVMTCEBuilder::deleteDeadProcedures(), BasicBlockPass::executeDDGPass(), BBSchedulerController::executeDDGPass(), ProgramPass::executeProcedurePass(), GrowMachine::explore(), FrequencySweepExplorer::explore(), LoopAnalyzer::findInitAndUpdate(), ProgramImageGenerator::generateProgramImage(), BBSchedulerController::handleBasicBlock(), SimpleIfConverter::handleControlFlowGraph(), BF2Scheduler::handleLoopDDG(), BBSchedulerController::handleProcedure(), CostEstimator::Estimator::icArea(), increasedVerbose(), llvm::LLVMTCEBuilder::initDataSections(), llvm::TCETargetLowering::LowerBuildVector(), llvm::TCETargetLowering::LowerConstant(), llvm::TCETargetLowering::LowerGLOBALADDRESS(), main(), BasicBlockScheduler::printStats(), ControlDependenceGraph::processRegion(), ProgramDependenceGraph::processRegion(), MachineConnectivityCheck::raConnected(), ProgramDependenceGraph::removeGuardedJump(), ConstantTransformer::runOnMachineFunction(), DesignSpaceExplorer::schedule(), BF2ScheduleFront::scheduleFrontFromMove(), DataDependenceGraphBuilder::searchRegisterDeaths(), ProgramDependenceGraph::serializePDG(), SimpleIfConverter::SimpleIfConverter(), spamVerbose(), llvm::TCETargetLowering::TCETargetLowering(), MachineConnectivityCheck::tempRegisterFiles(), CostEstimator::Estimator::totalAreaOfFunctionUnits(), CostEstimator::Estimator::totalAreaOfRegisterFiles(), TDGen::verbose(), TDGen::writeInstrInfo(), llvm::LLVMTCEIRBuilder::writeMachineFunction(), llvm::LLVMTCEBuilder::writeMachineFunction(), and TDGen::writeOperationDef().
|
static |
Stream where warning messages that should be printed immediately to the user should be written.
Warnings are non-fatal notifications to the user. The action performed might still be able to be finished.
Usage example: warningStream() << "warning: uninitialized thing "...
Definition at line 188 of file Application.cc.
References initialize(), and warningStream_.
Referenced by MachineStateBuilder::addPortToFU(), CostEstimator::Estimator::totalAreaOfFunctionUnits(), and CostEstimator::Estimator::totalAreaOfRegisterFiles().
|
static |
Records a message into the error log.
fileName | Source file of the code where the error occurred. |
lineNumber | Source line where the error occurred. |
functionName | Function where the error occurred. |
message | The error message. |
Definition at line 224 of file Application.cc.
References initialize(), initialized_, logStream_, UNKNOWN_FUNCTION, and verboseLevel_.
Referenced by UniversalMachine::addAddressSpace(), UniversalMachine::addBridge(), UniversalMachine::addBus(), UniversalMachine::addFunctionUnit(), UniversalMachine::addImmediateUnit(), UniversalMachine::addInstructionTemplate(), UniversalFunctionUnit::addPipelineElement(), UniversalMachine::addRegisterFile(), UniversalMachine::addSocket(), UniversalFunctionUnit::addSupportedOperation(), TTAMachine::Socket::attachBus(), SmartHWOperation::bindPort(), ADFSerializer::busToMachine(), ADFSerializer::busToMDF(), TTAMachine::Socket::connection(), UniversalMachine::construct(), FileSystem::currentWorkingDir(), UniversalMachine::deleteAddressSpace(), ADFSerializer::immediateUnitToMachine(), ADFSerializer::immediateUnitToMDF(), initialize(), UniversalFunctionUnit::loadState(), UnboundedRegisterFile::loadState(), UniversalFUPort::loadState(), SmartHWOperation::loadState(), UniversalMachine::loadState(), ADFSerializer::machinePipeline(), ADFSerializer::machineSRPort(), ADFSerializer::registerFileToMachine(), ADFSerializer::registerFileToMDF(), UniversalMachine::removeBus(), UniversalMachine::removeFunctionUnit(), UniversalMachine::removeRegisterFile(), UniversalMachine::removeSocket(), ComponentImplementationSelector::selectFUs(), ComponentImplementationSelector::selectIUs(), ComponentImplementationSelector::selectRFs(), UniversalMachine::setGlobalControl(), ADFSerializer::setIUExtensionMode(), UnboundedRegisterFile::setMaxReads(), UnboundedRegisterFile::setMaxWrites(), SmartHWOperation::setName(), UniversalFUPort::setName(), UnboundedRegisterFile::setName(), UnboundedRegisterFile::setNumberOfRegisters(), UniversalFUPort::setOpcodeSetting(), UniversalFUPort::setTriggering(), UnboundedRegisterFile::setType(), UnboundedRegisterFile::setWidth(), UniversalFUPort::setWidth(), SmartHWOperation::unbindPort(), TTAMachine::Port::unconnectedSocket(), UniversalMachine::unsetGlobalControl(), ExecutionTrace::~ExecutionTrace(), ScriptInterpreter::~ScriptInterpreter(), and SQLiteQueryResult::~SQLiteQueryResult().
|
staticprivate |
The original argc and argv given to the main program, if applicable.
Definition at line 257 of file Application.hh.
Referenced by argc(), and initialize().
|
staticprivate |
Definition at line 258 of file Application.hh.
Referenced by argv(), and initialize().
|
staticprivate |
Holds command line options passed to program.
Definition at line 254 of file Application.hh.
Referenced by cmdLineOptions(), finalize(), and setCmdLineOptions().
|
staticprivate |
The stream for user error notifications.
Definition at line 242 of file Application.hh.
Referenced by errorStream(), and initialize().
|
staticprivate |
True when initialize() is called. Ensures that initialization is done only once.
Definition at line 236 of file Application.hh.
Referenced by finalize(), initialize(), and writeToErrorLog().
|
staticprivate |
Path to the TCE installation root.
Definition at line 261 of file Application.hh.
Referenced by initialize(), and installationDir().
|
staticprivate |
The stream for debug logging.
Definition at line 239 of file Application.hh.
Referenced by finalize(), initialize(), logStream(), unexpectedExceptionHandler(), and writeToErrorLog().
|
static |
Use Loop Optimizations.
Definition at line 229 of file Application.hh.
|
staticprivate |
Signal handlers in a map associated by their signal numbers.
Definition at line 248 of file Application.hh.
Referenced by getSignalHandler(), restoreSignalHandler(), and setSignalHandler().
|
static |
Default verbose level - do not print anything unnecessary.
Definition at line 222 of file Application.hh.
Referenced by TDGen::analyzeMachineRegisters(), TDGen::analyzeRegisters(), OperationBuilder::buildObject(), DataDependenceGraphBuilder::createRegisterDeps(), DataDependenceGraphBuilder::DataDependenceGraphBuilder(), increasedVerbose(), DataDependenceGraphBuilder::searchRegisterDeaths(), TDGen::verbose(), TDGen::writeInstrInfo(), and TDGen::writeOperationDef().
|
static |
Increased verbose level - print information about modules etc.
Definition at line 224 of file Application.hh.
Referenced by GenerateProcessor::generateProcessor(), main(), setCmdLineOptions(), and spamVerbose().
|
static |
More Increased verbose level - spam about ddg heights of loops.
Definition at line 226 of file Application.hh.
Referenced by GenerateProcessor::generateProcessor(), and setCmdLineOptions().
|
staticprivate |
Verbose level directs how much output will be printed to console.
Definition at line 251 of file Application.hh.
Referenced by setVerboseLevel(), verboseLevel(), and writeToErrorLog().
|
staticprivate |
The stream for user error notifications.
Definition at line 245 of file Application.hh.
Referenced by initialize(), and warningStream().