|
LLVM
10.0.0
|
SmallSet - This maintains a set of unique values, optimizing for the case when the set is small (less than N). More...
#include "llvm/ADT/SmallSet.h"
Public Types | |
| using | size_type = size_t |
| using | const_iterator = SmallSetIterator< T, N, C > |
Public Member Functions | |
| SmallSet ()=default | |
| LLVM_NODISCARD bool | empty () const |
| size_type | size () const |
| size_type | count (const T &V) const |
| count - Return 1 if the element is in the set, 0 otherwise. More... | |
| std::pair< NoneType, bool > | insert (const T &V) |
| insert - Insert an element into the set if it isn't already there. More... | |
| template<typename IterT > | |
| void | insert (IterT I, IterT E) |
| bool | erase (const T &V) |
| void | clear () |
| const_iterator | begin () const |
| const_iterator | end () const |
SmallSet - This maintains a set of unique values, optimizing for the case when the set is small (less than N).
In this case, the set can be maintained with no mallocs. If the set gets large, we expand to using an std::set to maintain reasonable lookup times.
Definition at line 134 of file SmallSet.h.
| using llvm::SmallSet< T, N, C >::const_iterator = SmallSetIterator<T, N, C> |
Definition at line 151 of file SmallSet.h.
| using llvm::SmallSet< T, N, C >::size_type = size_t |
Definition at line 150 of file SmallSet.h.
|
default |
|
inline |
Definition at line 223 of file SmallSet.h.
Referenced by findConsecutiveLoad(), INITIALIZE_PASS(), and llvm::yaml::ScalarTraits< FlowStringRef >::mustQuote().
|
inline |
Definition at line 218 of file SmallSet.h.
Referenced by llvm::HexagonSubtarget::adjustSchedDependency(), llvm::HexagonHazardRecognizer::AdvanceCycle(), isEFLAGSLive(), isVirtualRegisterOperand(), mayUsePostIncMode(), and llvm::HexagonHazardRecognizer::Reset().
|
inline |
count - Return 1 if the element is in the set, 0 otherwise.
Definition at line 164 of file SmallSet.h.
Referenced by addHints(), llvm::DomTreeUpdater::applyUpdatesPermissive(), llvm::ARMBaseInstrInfo::canCauseFpMLxStall(), computeLiveOuts(), llvm::ARMBaseInstrInfo::copyPhysReg(), llvm::createLanaiDelaySlotFillerPass(), llvm::createSparcDelaySlotFillerPass(), llvm::HexagonFrameLowering::determineCalleeSaves(), llvm::Instruction::dropUnknownNonDebugMetadata(), emitSelectPseudo(), eraseDeadBBsAndChildren(), llvm::AMDGPURegisterBankInfo::executeInWaterfallLoop(), llvm::finalizeBundle(), findDeadCallerSavedReg(), findHoistingInsertPosAndDeps(), llvm::HexagonHazardRecognizer::getHazardType(), llvm::DILocation::getMergedLocation(), getNewSource(), getOffsetFromIndices(), GetPointerOperand(), llvm::SystemZRegisterInfo::getRegAllocationHints(), getUnconditionalBrDisp(), getZeroLatency(), handleNormalInst(), llvm::LiveVariables::HandleVirtRegDef(), llvm::VPlan::hasVF(), hoistAndMergeSGPRInits(), INITIALIZE_PASS(), InstructionStoresToFI(), isCallerPreservedOrConstPhysReg(), isCoalescable(), isEFLAGSLive(), isHighLatencyCPSR(), IsSafeAndProfitableToMove(), IsSafeToMove(), isVirtualRegisterOperand(), MaySpeculate(), mayTailCallThisCC(), llvm::yaml::ScalarTraits< FlowStringRef >::mustQuote(), llvm::mustTriggerUB(), llvm::operator==(), llvm::HexagonFrameLowering::processFunctionBeforeFrameFinalized(), ProcessSourceNode(), llvm::object::TapiFile::TapiFile(), and verifyCTRBranch().
|
inline |
Definition at line 155 of file SmallSet.h.
Referenced by llvm::AMDGPURegisterBankInfo::collectWaterfallOperands(), llvm::Instruction::dropUnknownNonDebugMetadata(), findHoistingInsertPosAndDeps(), INITIALIZE_PASS(), isCallerPreservedOrConstPhysReg(), isVirtualRegisterOperand(), and llvm::HexagonFrameLowering::processFunctionBeforeFrameFinalized().
|
inline |
Definition at line 229 of file SmallSet.h.
Referenced by findConsecutiveLoad().
|
inline |
Definition at line 207 of file SmallSet.h.
Referenced by llvm::finalizeBundle(), findHoistingInsertPosAndDeps(), getUnconditionalBrDisp(), llvm::LiveVariables::HandleVirtRegDef(), INITIALIZE_PASS(), isVirtualRegisterOperand(), and TypeSizeToSizeIndex().
|
inline |
insert - Insert an element into the set if it isn't already there.
Returns true if the element is inserted (it was not in the set before). The first value of the returned pair is unused and provided for partial compatibility with the standard library self-associative container concept.
Definition at line 180 of file SmallSet.h.
Referenced by addHints(), llvm::VPlan::addVF(), AntiDepEdges(), llvm::DomTreeUpdater::applyUpdatesPermissive(), llvm::ARMBaseInstrInfo::ARMBaseInstrInfo(), AssignProtectedObjSet(), CheckForLiveRegDef(), CheckForLiveRegDefMasked(), llvm::AMDGPURegisterBankInfo::collectWaterfallOperands(), combineShuffleOfScalars(), CompareMBBNumbers(), computeLiveOuts(), llvm::ARMBaseInstrInfo::copyPhysReg(), llvm::createLanaiDelaySlotFillerPass(), llvm::createSparcDelaySlotFillerPass(), llvm::HexagonFrameLowering::determineCalleeSaves(), llvm::Instruction::dropUnknownNonDebugMetadata(), llvm::HexagonHazardRecognizer::EmitInstruction(), llvm::WebAssemblyAsmPrinter::EmitProducerInfo(), emitSelectPseudo(), eraseDeadBBsAndChildren(), ExpandBVWithShuffles(), llvm::finalizeBundle(), findConsecutiveLoad(), findDeadCallerSavedReg(), llvm::DWARFDie::findRecursively(), findVCMPToFoldIntoVPST(), llvm::R600InstrInfo::fitsConstReadLimitations(), llvm::sys::getHostCPUName(), getMaxBackedgeTakenCount(), llvm::DILocation::getMergedLocation(), getNegatibleInsts(), getNewSource(), getOffsetFromIndices(), getParentPad(), GetPointerOperand(), llvm::SystemZRegisterInfo::getRegAllocationHints(), llvm::TargetRegisterInfo::getRegAllocationHints(), getRegUnits(), llvm::slpvectorizer::BoUpSLP::getTreeCost(), getUnconditionalBrDisp(), getZeroLatency(), handleNormalInst(), llvm::LiveVariables::HandleVirtRegDef(), hoistAndMergeSGPRInits(), INITIALIZE_PASS(), InstructionStoresToFI(), isCallerPreservedOrConstPhysReg(), isCoalescable(), isEFLAGSLive(), isHighLatencyCPSR(), IsSafeAndProfitableToMove(), IsSafeToMove(), isVirtualRegisterOperand(), LowerBUILD_VECTORAsVariablePermute(), llvm::MachO::mapToPlatformSet(), mayTailCallThisCC(), mayUsePostIncMode(), mustExecuteUBIfPoisonOnPathTo(), llvm::yaml::ScalarTraits< FlowStringRef >::mustQuote(), llvm::PointerMayBeCaptured(), llvm::WebAssemblyInstPrinter::printInst(), llvm::HexagonFrameLowering::processFunctionBeforeFrameFinalized(), ProcessSourceNode(), llvm::programUndefinedIfFullPoison(), llvm::SwiftErrorValueTracking::propagateVRegs(), llvm::MachineDominatorTree::recordSplitCriticalEdge(), llvm::sortPtrAccesses(), unique_unsorted(), llvm::SelectionDAGBuilder::UpdateSplitBlock(), and verifyCTRBranch().
|
inline |
Definition at line 202 of file SmallSet.h.
|
inline |
Definition at line 159 of file SmallSet.h.
Referenced by ExpandBVWithShuffles(), llvm::R600InstrInfo::fitsConstReadLimitations(), llvm::sys::getHostCPUName(), IsSafeAndProfitableToMove(), LowerBUILD_VECTORAsVariablePermute(), llvm::yaml::ScalarTraits< FlowStringRef >::mustQuote(), and llvm::operator==().
1.8.13