|
LLVM
5.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 |
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 () |
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.
Note that this set does not provide a way to iterate over members in the set.
Definition at line 36 of file SmallSet.h.
| using llvm::SmallSet< T, N, C >::size_type = size_t |
Definition at line 52 of file SmallSet.h.
|
default |
|
inline |
Definition at line 119 of file SmallSet.h.
Referenced by llvm::HexagonSubtarget::adjustSchedDependency(), llvm::HexagonHazardRecognizer::AdvanceCycle(), optimizeGlobalsInModule(), and llvm::HexagonHazardRecognizer::Reset().
|
inline |
count - Return 1 if the element is in the set, 0 otherwise.
Definition at line 65 of file SmallSet.h.
Referenced by llvm::ARMBaseInstrInfo::canCauseFpMLxStall(), ClearKillFlags(), computeLiveOuts(), llvm::ARMBaseInstrInfo::copyPhysReg(), deleteIfDead(), llvm::Instruction::dropUnknownNonDebugMetadata(), llvm::finalizeBundle(), findDeadCallerSavedReg(), findHoistingInsertPosAndDeps(), findNextOrderedReg(), llvm::HexagonHazardRecognizer::getHazardType(), IsSafeAndProfitableToMove(), MaySpeculate(), phiHasBreakDef(), llvm::programUndefinedIfFullPoison(), llvm::Thumb1FrameLowering::spillCalleeSavedRegisters(), llvm::MachineBasicBlock::SplitCriticalEdge(), and verifyCTRBranch().
|
inline |
Definition at line 56 of file SmallSet.h.
Referenced by llvm::Instruction::dropUnknownNonDebugMetadata(), findHoistingInsertPosAndDeps(), llvm::Thumb1FrameLowering::restoreCalleeSavedRegisters(), and llvm::Thumb1FrameLowering::spillCalleeSavedRegisters().
|
inline |
Definition at line 108 of file SmallSet.h.
Referenced by llvm::finalizeBundle(), findHoistingInsertPosAndDeps(), and llvm::Thumb1FrameLowering::restoreCalleeSavedRegisters().
|
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 81 of file SmallSet.h.
Referenced by AntiDepEdges(), llvm::ARMBaseInstrInfo::ARMBaseInstrInfo(), AssignProtectedObjSet(), CheckForLiveRegDef(), CheckForLiveRegDefMasked(), combineShuffleOfScalars(), computeLiveOuts(), llvm::ARMBaseInstrInfo::copyPhysReg(), determinePointerReadAttrs(), llvm::Instruction::dropUnknownNonDebugMetadata(), llvm::HexagonHazardRecognizer::EmitInstruction(), llvm::finalizeBundle(), findConsecutiveLoad(), findDeadCallerSavedReg(), llvm::R600InstrInfo::fitsConstReadLimitations(), llvm::FunctionComparator::functionHash(), llvm::slpvectorizer::BoUpSLP::getTreeCost(), llvm::SmallSet< unsigned, 16 >::insert(), IsSafeAndProfitableToMove(), optimizeGlobalsInModule(), phiHasBreakDef(), llvm::PointerMayBeCaptured(), llvm::WebAssemblyInstPrinter::printInst(), ProcessSourceNode(), llvm::programUndefinedIfFullPoison(), propagateSwiftErrorVRegs(), llvm::MachineDominatorTree::recordSplitCriticalEdge(), llvm::Thumb1FrameLowering::restoreCalleeSavedRegisters(), llvm::Thumb1FrameLowering::spillCalleeSavedRegisters(), llvm::MachineBasicBlock::SplitCriticalEdge(), TrackDefUses(), TryToMergeLandingPad(), unique_unsorted(), llvm::UnrollRuntimeLoopRemainder(), and verifyCTRBranch().
|
inline |
Definition at line 103 of file SmallSet.h.
|
inline |
Definition at line 60 of file SmallSet.h.
Referenced by llvm::R600InstrInfo::fitsConstReadLimitations(), and IsSafeAndProfitableToMove().
1.8.6