OpenASIP  2.0
Static Public Member Functions | List of all members
MapTools Class Reference

#include <MapTools.hh>

Collaboration diagram for MapTools:
Collaboration graph

Static Public Member Functions

template<typename MapType , typename ValueType >
static bool containsValue (const MapType &aMap, const ValueType &aValue)
 
template<typename MapType , typename KeyType >
static bool containsKey (const MapType &aMap, const KeyType &aKey)
 
template<typename KeyType , typename MapType , typename ValueType >
static KeyType keyForValue (const MapType &aMap, const ValueType &aValue)
 
template<typename ValueType , typename MapType , typename KeyType >
static ValueType valueForKey (const MapType &aMap, const KeyType &aKey)
 
template<typename ValueType , typename MapType , typename KeyType >
static const ValueType valueForKeyNoThrow (const MapType &aMap, const KeyType &aKey)
 
template<typename MapType >
static void deleteAllValues (MapType &aMap)
 
template<typename MapType >
static void deleteAllKeys (MapType &aMap)
 
template<typename MapType , typename KeyType >
static void deleteByKey (MapType &aMap, const KeyType &aKey)
 
template<typename MapType , typename ValueType >
static bool removeItemsByValue (MapType &aMap, const ValueType &aValue)
 
template<typename KeyType , typename MapType >
static std::set< KeyType > keys (const MapType &aMap)
 

Detailed Description

Definition at line 42 of file MapTools.hh.

Member Function Documentation

◆ containsKey()

template<typename MapType , typename KeyType >
static bool MapTools::containsKey ( const MapType &  aMap,
const KeyType &  aKey 
)
static

Referenced by LImmDstRegisterField::addDestination(), ControlFlowGraph::addExit(), ProgramOperation::addInputNode(), LabelManager::addLabel(), InstructionFormat::addOperation(), HDB::HDBManager::addOperationPipelinesToFUArchitecture(), ProgramOperation::addOutputNode(), HDB::HDBManager::addPortsAndBindingsToFUArchitecture(), LabelManager::addProcedure(), BEMGenerator::addRiscvFormat(), MoveSlotDictionary::addToDictionary(), InstructionDictionary::addToDictionary(), LabelManager::aSpaceElement(), ITemplateResource::assign(), ITemplateBroker::assign(), ITemplateBroker::assignImmediate(), BEMGenerator::assignSocketCodeTable(), TPEF::RawSection::belongsToSection(), CodeCompressorPlugin::bemInstructionBits(), llvm::LLVMTCEIRBuilder::buildTCECFG(), TTAProgram::TPEFResourceUpdater::bus(), DefaultICGenerator::busAltSignal(), UtilizationStats::busWrites(), TTAProgram::TPEFProgramFactory::canDestinationBeAssigned(), TTAProgram::TPEFProgramFactory::canSourceBeAssigned(), TPEF::RawSection::chunk(), BUBasicBlockScheduler::clearRemovedNodes(), ControlDependenceGraph::computeDependence(), ProgramDependenceGraph::copyRegionEECComponent(), TTAProgram::ProgramWriter::createASpaceElement(), ControlFlowGraph::createBBEdges(), ControlFlowGraph::createBlock(), ControlFlowGraph::createControlFlowEdge(), TPEFDisassembler::createDisassemblyElement(), TTAProgram::TPEFProgramFactory::createLabels(), TPEF::Section::createSection(), TTAProgram::TPEFProgramFactory::createTerminal(), ScriptInterpreter::customCommand(), llvm::LLVMTCEBuilder::dataEnd(), llvm::LLVMTCEBuilder::dataMemoryForAddressSpace(), InterPassData::datum(), ProGe::Netlist::descriptor(), ControlDependenceGraph::detectControlDependencies(), ControlFlowGraph::directJump(), CodeCompressorPlugin::encodeLongImmediate(), InstructionFormat::encoding(), TPEF::AOutSymbolSectionReader::finalize(), BUBasicBlockScheduler::finalizeSchedule(), MachineResourceManager::findDataAddressSpace(), TTAProgram::TPEFProgramFactory::findInstrTemplate(), ITemplateBroker::findITemplates(), TPEF::SectionReader::findSectionReader(), TPEF::SectionWriter::findSectionWriter(), InstructionBitVector::fixInstructionAddress(), TTAProgram::TPEFProgramFactory::functionName(), TTAProgram::TPEFResourceUpdater::functionUnit(), MachineResourceManager::functionUnitID(), TTAProgram::TPEFResourceUpdater::functionUnitPort(), TTAProgram::TPEFProgramFactory::getFromCache(), ControlFlowGraph::getMBB(), SOPCBuilderFileGenerator::handleAvalonSignal(), InterPassData::hasDatum(), ProGe::NetlistGenerator::hasGlockPort(), ProGe::NetlistGenerator::hasGlockReqPort(), ProgramOperation::hasInputNode(), HDB::FUImplementation::hasOpcode(), ProGe::NetlistGenerator::hasOpcodePort(), InstructionFormat::hasOperation(), ProgramOperation::hasOutputNode(), ProGe::ICDecoderGeneratorPlugin::hasParameterSet(), TPEF::TPEFTools::hasRelocation(), ResourceBroker::hasResourceOf(), ImmediateControlField::hasTemplateEncoding(), TTAProgram::TPEFResourceUpdater::immediateUnit(), IUBroker::immediateValue(), IUBroker::immediateWriteCycle(), InstructionBitVector::indexBounds(), ControlFlowGraph::indirectJump(), ProGe::RV32MicroCodeGenerator::initializeOperations(), TPEF::AOutSymbolSectionReader::initializeSymbol(), ITemplateBroker::instruction(), OutputFUBroker::isAlreadyAssigned(), InputFUBroker::isAlreadyAssigned(), InputPSocketBroker::isAlreadyAssigned(), OutputPSocketBroker::isAlreadyAssigned(), ITemplateBroker::isAlreadyAssigned(), IUBroker::isAlreadyAssigned(), BusBroker::isAlreadyAssigned(), TTAMachine::HWOperation::isBound(), ProgramOperation::isComplete(), TTAProgram::TPEFProgramFactory::isFunctionStart(), ITemplateBroker::isImmediateInTemplate(), TPEF::CodeSection::isInSection(), ITemplateResource::isInUse(), ProgramOperation::isReady(), TPEF::ReferenceManager::SafePointer::isReferenced(), ProGe::Netlist::isRegistered(), PluginTools::loadSym(), CentralizedControlICGenerator::mapBusCntrlPortOfSocket(), ProGe::NetlistGenerator::mapClockPort(), CentralizedControlICGenerator::mapDataCntrlPortOfSocket(), ProGe::NetlistGenerator::mapFUGuardPort(), ProGe::NetlistGenerator::mapFUOpcodePort(), ProGe::NetlistGenerator::mapGlobalLockPort(), ProGe::NetlistGenerator::mapGlobalLockRequestPort(), ProGe::NetlistGenerator::mapLoadPort(), ProGe::NetlistGenerator::mapNetlistBlock(), ProGe::NetlistGenerator::mapResetPort(), ProGe::NetlistGenerator::mapRFGuardPort(), ProGe::NetlistGenerator::mapRFOpcodePort(), CentralizedControlICGenerator::mapSImmCntrlPort(), CentralizedControlICGenerator::mapSImmDataPort(), CodeCompressorPlugin::memoryAddress(), TPEF::ReferenceManager::SafePointer::notifyDeleted(), TTAProgram::TPEFResourceUpdater::operand(), UtilizationStats::operationExecutions(), MachineResourceManager::opOrPortID(), ProgramOperation::outputNode(), ProgramDependenceGraph::ProgramDependenceGraph(), InstructionBitVector::pushBack(), TTAProgram::TPEFResourceUpdater::registerFile(), MachineResourceManager::registerFileID(), PluginTools::registerModule(), ProGe::Netlist::registerPort(), TPEF::Section::registerSection(), TPEF::SectionReader::registerSectionReader(), TPEF::SectionWriter::registerSectionWriter(), CycleLookBackSoftwareBypasser::removeBypass(), ScriptInterpreter::removeCustomCommand(), InterPassData::removeDatum(), CycleLookBackSoftwareBypasser::removeDeadResults(), ProgramOperation::removeInputNode(), LabelManager::removeLabel(), ProgramOperation::removeOutputNode(), Texts::TextGenerator::replaceText(), TPEF::ReferenceManager::SafePointer::resolve(), DataSectionCreator::resolveDataAreaSizesAndLabelAddresses(), MachineResourceManager::resourceID(), SequentialScheduler::scheduleInputOperandTempMoves(), SequentialScheduler::scheduleResultTempMoves(), SequentialScheduler::scheduleRRTempMoves(), HDBBrowserWindow::selectBusEntry(), HDBBrowserWindow::selectCostFunctionPlugin(), HDBBrowserWindow::selectFUArchitecture(), HDBBrowserWindow::selectFUEntry(), HDBBrowserWindow::selectFUImplementation(), HDBBrowserWindow::selectRFArchitecture(), HDBBrowserWindow::selectRFEntry(), HDBBrowserWindow::selectRFImplementation(), HDBBrowserWindow::selectSocketEntry(), InterPassData::setDatum(), ExecutionPipelineResourceTable::setLatency(), ProGe::ICDecoderGeneratorPlugin::setParameter(), ExecutionPipelineResourceTable::setResourceUse(), BEMGenerator::socketCodeTable(), UtilizationStats::socketWrites(), Texts::TextGenerator::text(), UtilizationStats::triggerCount(), TPEF::SectionSizeReplacer::tryToReplace(), OutputFUBroker::unassign(), InputPSocketBroker::unassign(), OutputPSocketBroker::unassign(), ITemplateBroker::unassign(), InputFUBroker::unassign(), IUBroker::unassign(), SimpleBrokerDirector::unassign(), BusBroker::unassign(), ITemplateBroker::unassignImmediate(), ExecutionPipelineResource::unassignSource(), BUBasicBlockScheduler::undoBypass(), ProGe::Netlist::unregisterPort(), SequentialScheduler::unscheduleInputOperandTempMoves(), BasicBlockScheduler::unscheduleInputOperandTempMoves(), BasicBlockScheduler::unscheduleResultReadTempMoves(), LImmDstRegisterField::usedByInstructionTemplate(), LabelManager::value(), DefaultDecoderGenerator::writeGlockMapping(), and llvm::LLVMTCEBuilder::writeMachineFunction().

◆ containsValue()

template<typename MapType , typename ValueType >
static bool MapTools::containsValue ( const MapType &  aMap,
const ValueType &  aValue 
)
static

◆ deleteAllKeys()

template<typename MapType >
static void MapTools::deleteAllKeys ( MapType &  aMap)
static

◆ deleteAllValues()

template<typename MapType >
static void MapTools::deleteAllValues ( MapType &  aMap)
static

◆ deleteByKey()

template<typename MapType , typename KeyType >
static void MapTools::deleteByKey ( MapType &  aMap,
const KeyType &  aKey 
)
static

◆ keyForValue()

template<typename KeyType , typename MapType , typename ValueType >
static KeyType MapTools::keyForValue ( const MapType &  aMap,
const ValueType &  aValue 
)
static

◆ keys()

template<typename KeyType , typename MapType >
static std::set<KeyType> MapTools::keys ( const MapType &  aMap)
static

◆ removeItemsByValue()

template<typename MapType , typename ValueType >
static bool MapTools::removeItemsByValue ( MapType &  aMap,
const ValueType &  aValue 
)
static

◆ valueForKey()

template<typename ValueType , typename MapType , typename KeyType >
static ValueType MapTools::valueForKey ( const MapType &  aMap,
const KeyType &  aKey 
)
static

◆ valueForKeyNoThrow()

template<typename ValueType , typename MapType , typename KeyType >
static const ValueType MapTools::valueForKeyNoThrow ( const MapType &  aMap,
const KeyType &  aKey 
)
static

The documentation for this class was generated from the following file: