|
LLVM
10.0.0
|
#include "llvm/ADT/BitVector.h"
Classes | |
| class | reference |
Public Types | |
| typedef unsigned | size_type |
| typedef const_set_bits_iterator_impl< BitVector > | const_set_bits_iterator |
| typedef const_set_bits_iterator | set_iterator |
Public Member Functions | |
| const_set_bits_iterator | set_bits_begin () const |
| const_set_bits_iterator | set_bits_end () const |
| iterator_range< const_set_bits_iterator > | set_bits () const |
| BitVector () | |
| BitVector default ctor - Creates an empty bitvector. More... | |
| BitVector (unsigned s, bool t=false) | |
| BitVector ctor - Creates a bitvector of specified number of bits. More... | |
| BitVector (const BitVector &RHS) | |
| BitVector copy ctor. More... | |
| BitVector (BitVector &&RHS) | |
| ~BitVector () | |
| bool | empty () const |
| empty - Tests whether there are no bits in this bitvector. More... | |
| size_type | size () const |
| size - Returns the number of bits in this bitvector. More... | |
| size_type | count () const |
| count - Returns the number of bits which are set. More... | |
| bool | any () const |
| any - Returns true if any bit is set. More... | |
| bool | all () const |
| all - Returns true if all bits are set. More... | |
| bool | none () const |
| none - Returns true if none of the bits are set. More... | |
| int | find_first_in (unsigned Begin, unsigned End) const |
| find_first_in - Returns the index of the first set bit in the range [Begin, End). More... | |
| int | find_last_in (unsigned Begin, unsigned End) const |
| find_last_in - Returns the index of the last set bit in the range [Begin, End). More... | |
| int | find_first_unset_in (unsigned Begin, unsigned End) const |
| find_first_unset_in - Returns the index of the first unset bit in the range [Begin, End). More... | |
| int | find_last_unset_in (unsigned Begin, unsigned End) const |
| find_last_unset_in - Returns the index of the last unset bit in the range [Begin, End). More... | |
| int | find_first () const |
| find_first - Returns the index of the first set bit, -1 if none of the bits are set. More... | |
| int | find_last () const |
| find_last - Returns the index of the last set bit, -1 if none of the bits are set. More... | |
| int | find_next (unsigned Prev) const |
| find_next - Returns the index of the next set bit following the "Prev" bit. More... | |
| int | find_prev (unsigned PriorTo) const |
find_prev - Returns the index of the first set bit that precedes the the bit at PriorTo. More... | |
| int | find_first_unset () const |
| find_first_unset - Returns the index of the first unset bit, -1 if all of the bits are set. More... | |
| int | find_next_unset (unsigned Prev) const |
| find_next_unset - Returns the index of the next unset bit following the "Prev" bit. More... | |
| int | find_last_unset () const |
| find_last_unset - Returns the index of the last unset bit, -1 if all of the bits are set. More... | |
| int | find_prev_unset (unsigned PriorTo) |
find_prev_unset - Returns the index of the first unset bit that precedes the bit at PriorTo. More... | |
| void | clear () |
| clear - Removes all bits from the bitvector. Does not change capacity. More... | |
| void | resize (unsigned N, bool t=false) |
| resize - Grow or shrink the bitvector. More... | |
| void | reserve (unsigned N) |
| BitVector & | set () |
| BitVector & | set (unsigned Idx) |
| BitVector & | set (unsigned I, unsigned E) |
| set - Efficiently set a range of bits in [I, E) More... | |
| BitVector & | reset () |
| BitVector & | reset (unsigned Idx) |
| BitVector & | reset (unsigned I, unsigned E) |
| reset - Efficiently reset a range of bits in [I, E) More... | |
| BitVector & | flip () |
| BitVector & | flip (unsigned Idx) |
| reference | operator[] (unsigned Idx) |
| bool | operator[] (unsigned Idx) const |
| bool | test (unsigned Idx) const |
| void | push_back (bool Val) |
| bool | anyCommon (const BitVector &RHS) const |
| Test if any common bits are set. More... | |
| bool | operator== (const BitVector &RHS) const |
| bool | operator!= (const BitVector &RHS) const |
| BitVector & | operator &= (const BitVector &RHS) |
| Intersection, union, disjoint union. More... | |
| BitVector & | reset (const BitVector &RHS) |
| reset - Reset bits that are set in RHS. Same as *this &= ~RHS. More... | |
| bool | test (const BitVector &RHS) const |
| test - Check if (This - RHS) is zero. More... | |
| BitVector & | operator|= (const BitVector &RHS) |
| BitVector & | operator^= (const BitVector &RHS) |
| BitVector & | operator>>= (unsigned N) |
| BitVector & | operator<<= (unsigned N) |
| const BitVector & | operator= (const BitVector &RHS) |
| const BitVector & | operator= (BitVector &&RHS) |
| void | swap (BitVector &RHS) |
| void | setBitsInMask (const uint32_t *Mask, unsigned MaskWords=~0u) |
| setBitsInMask - Add '1' bits from Mask to this vector. More... | |
| void | clearBitsInMask (const uint32_t *Mask, unsigned MaskWords=~0u) |
| clearBitsInMask - Clear any bits in this vector that are set in Mask. More... | |
| void | setBitsNotInMask (const uint32_t *Mask, unsigned MaskWords=~0u) |
| setBitsNotInMask - Add a bit to this vector for every '0' bit in Mask. More... | |
| void | clearBitsNotInMask (const uint32_t *Mask, unsigned MaskWords=~0u) |
| clearBitsNotInMask - Clear a bit in this vector for every '0' bit in Mask. More... | |
| size_t | getMemorySize () const |
| Return the size (in bytes) of the bit vector. More... | |
| size_t | getBitCapacity () const |
Definition at line 73 of file BitVector.h.
Definition at line 120 of file BitVector.h.
Definition at line 121 of file BitVector.h.
| typedef unsigned llvm::BitVector::size_type |
Definition at line 85 of file BitVector.h.
|
inline |
BitVector default ctor - Creates an empty bitvector.
Definition at line 134 of file BitVector.h.
BitVector ctor - Creates a bitvector of specified number of bits.
All bits are initialized to the specified value.
Definition at line 138 of file BitVector.h.
BitVector copy ctor.
Definition at line 147 of file BitVector.h.
References llvm::MutableArrayRef< T >::data(), and size().
|
inline |
Definition at line 158 of file BitVector.h.
|
inline |
Definition at line 163 of file BitVector.h.
References llvm::MutableArrayRef< T >::data().
|
inline |
all - Returns true if all bits are set.
Definition at line 188 of file BitVector.h.
|
inline |
any - Returns true if any bit is set.
Definition at line 180 of file BitVector.h.
References llvm::size().
Referenced by llvm::SIFrameLowering::determineCalleeSaves(), findTemporariesForLR(), llvm::AArch64Subtarget::hasCustomCallingConv(), isDebug(), and llvm::RegScavenger::scavengeRegister().
Test if any common bits are set.
Definition at line 523 of file BitVector.h.
References llvm::numbers::e, size(), and llvm::size().
Referenced by addRegsToSet(), isDebug(), and llvm::safestack::StackColoring::LiveRange::Overlaps().
|
inline |
clear - Removes all bits from the bitvector. Does not change capacity.
Definition at line 366 of file BitVector.h.
Referenced by llvm::LiveRegMatrix::checkRegMaskInterference(), llvm::LiveIntervals::checkRegMaskInterference(), llvm::SplitAnalysis::clear(), llvm::FunctionLoweringInfo::clear(), llvm::RegScavenger::enterBasicBlockEnd(), llvm::BuildVectorSDNode::getSplatValue(), getStartOrEndSlot(), INITIALIZE_PASS(), isCallableFunction(), isCoalescable(), isDebug(), llvm::SpillPlacement::prepare(), scavengeStackSlot(), and llvm::MachineFunction::verify().
clearBitsInMask - Clear any bits in this vector that are set in Mask.
Don't resize. This computes "*this &= ~Mask".
Definition at line 781 of file BitVector.h.
References llvm::BitmaskEnumDetail::Mask().
Referenced by llvm::SIFrameLowering::determineCalleeSavesSGPR().
clearBitsNotInMask - Clear a bit in this vector for every '0' bit in Mask.
Don't resize. This computes "*this &= Mask".
Definition at line 793 of file BitVector.h.
References assert(), B, llvm::countTrailingOnes(), llvm::MutableArrayRef< T >::data(), llvm::MutableArrayRef< T >::drop_back(), llvm::MutableArrayRef< T >::drop_front(), llvm::BitmaskEnumDetail::Mask(), llvm::safe_malloc(), llvm::safe_realloc(), llvm::ArrayRef< T >::size(), llvm::size(), and llvm::MutableArrayRef< T >::take_front().
Referenced by llvm::LiveIntervals::checkRegMaskInterference(), llvm::SIFrameLowering::determineCalleeSaves(), llvm::RegScavenger::getRegsAvailable(), and INITIALIZE_PASS().
|
inline |
count - Returns the number of bits which are set.
Definition at line 172 of file BitVector.h.
References llvm::countPopulation(), and llvm::size().
Referenced by llvm::pdb::UDTLayoutBase::addChildToLayout(), llvm::pdb::LayoutItemBase::deepPaddingSize(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::SystemZTTIImpl::getInterleavedMemoryOpCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getInterleavedMemoryOpCost(), llvm::msf::MSFBuilder::getNumFreeBlocks(), llvm::AArch64Subtarget::getNumXRegisterReserved(), llvm::pdb::ClassLayout::immediatePadding(), lowerBuildVectorAsBroadcast(), llvm::RegisterBank::print(), llvm::PPCFrameLowering::replaceFPWithRealFP(), llvm::msf::MSFBuilder::setDirectoryBlocksHint(), and llvm::SystemZRegisterInfo::shouldCoalesce().
|
inline |
empty - Tests whether there are no bits in this bitvector.
Definition at line 166 of file BitVector.h.
Referenced by assignCalleeSavedSpillSlots(), llvm::LiveRegMatrix::checkRegMaskInterference(), CriticalPathStep(), llvm::CodeGenCoverage::emit(), isACalleeSavedRegister(), llvm::RegisterBank::isValid(), llvm::RegisterBank::print(), and llvm::MachineRegisterInfo::reservedRegsFrozen().
|
inline |
find_first - Returns the index of the first set bit, -1 if none of the bits are set.
Definition at line 331 of file BitVector.h.
Referenced by llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), llvm::PPCFrameLowering::assignCalleeSavedSpillSlots(), dump_registers(), findTemporariesForLR(), llvm::HexagonFrameLowering::getAlignaInstr(), llvm::RegScavenger::getRegsAvailable(), llvm::HexagonRegisterInfo::getReservedRegs(), INITIALIZE_PASS(), isDebug(), llvm::Mips16InstrInfo::loadImmediate(), needsStackFrame(), llvm::safestack::operator<<(), llvm::PPCFrameLowering::replaceFPWithRealFP(), scavengeStackSlot(), and llvm::msf::MSFBuilder::setDirectoryBlocksHint().
find_first_in - Returns the index of the first set bit in the range [Begin, End).
Returns -1 if all bits in the range are unset.
Definition at line 207 of file BitVector.h.
|
inline |
find_first_unset - Returns the index of the first unset bit, -1 if all of the bits are set.
Definition at line 347 of file BitVector.h.
find_first_unset_in - Returns the index of the first unset bit in the range [Begin, End).
Returns -1 if all bits in the range are set.
Definition at line 267 of file BitVector.h.
|
inline |
find_last - Returns the index of the last set bit, -1 if none of the bits are set.
Definition at line 335 of file BitVector.h.
Referenced by llvm::pdb::UDTLayoutBase::initializeChildren(), and llvm::pdb::LayoutItemBase::tailPadding().
find_last_in - Returns the index of the last set bit in the range [Begin, End).
Returns -1 if all bits in the range are unset.
Definition at line 236 of file BitVector.h.
|
inline |
find_last_unset - Returns the index of the last unset bit, -1 if all of the bits are set.
Definition at line 357 of file BitVector.h.
find_last_unset_in - Returns the index of the last unset bit in the range [Begin, End).
Returns -1 if all bits in the range are set.
Definition at line 298 of file BitVector.h.
|
inline |
find_next - Returns the index of the next set bit following the "Prev" bit.
Returns -1 if the next set bit is not found.
Definition at line 339 of file BitVector.h.
Referenced by llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), dump_registers(), llvm::HexagonFrameLowering::getAlignaInstr(), llvm::HexagonRegisterInfo::getReservedRegs(), INITIALIZE_PASS(), isDebug(), needsStackFrame(), llvm::safestack::operator<<(), llvm::PPCFrameLowering::replaceFPWithRealFP(), scavengeStackSlot(), and llvm::msf::MSFBuilder::setDirectoryBlocksHint().
|
inline |
find_next_unset - Returns the index of the next unset bit following the "Prev" bit.
Returns -1 if all remaining bits are set.
Definition at line 351 of file BitVector.h.
|
inline |
find_prev - Returns the index of the first set bit that precedes the the bit at PriorTo.
Returns -1 if all previous bits are unset.
Definition at line 343 of file BitVector.h.
|
inline |
find_prev_unset - Returns the index of the first unset bit that precedes the bit at PriorTo.
Returns -1 if all previous bits are set.
Definition at line 361 of file BitVector.h.
|
inline |
Definition at line 477 of file BitVector.h.
References llvm::size().
Referenced by addLiveInRegs(), and llvm::TargetRegisterInfo::getAllocatableSet().
Definition at line 484 of file BitVector.h.
|
inline |
Definition at line 928 of file BitVector.h.
References llvm::ArrayRef< T >::size().
|
inline |
Return the size (in bytes) of the bit vector.
Definition at line 927 of file BitVector.h.
References llvm::ArrayRef< T >::size().
Referenced by llvm::capacity_in_bytes().
|
inline |
none - Returns true if none of the bits are set.
Definition at line 201 of file BitVector.h.
Referenced by addRegsToSet(), llvm::AggressiveAntiDepBreaker::AggressiveAntiDepBreaker(), llvm::PPCFrameLowering::assignCalleeSavedSpillSlots(), llvm::LiveRegUnits::empty(), llvm::RegScavenger::getRegsAvailable(), llvm::SelectionDAG::getVectorShuffle(), isCallableFunction(), llvm::isConstOrConstSplat(), llvm::isConstOrConstSplatFP(), and scavengeStackSlot().
Intersection, union, disjoint union.
Definition at line 559 of file BitVector.h.
References for(), size(), and llvm::size().
Definition at line 554 of file BitVector.h.
Definition at line 667 of file BitVector.h.
References assert(), llvm::empty(), I, LLVM_UNLIKELY, and llvm::BitmaskEnumDetail::Mask().
Definition at line 718 of file BitVector.h.
References assert(), llvm::MutableArrayRef< T >::data(), and size().
Referenced by isDebug().
Definition at line 743 of file BitVector.h.
References llvm::MutableArrayRef< T >::data().
Definition at line 533 of file BitVector.h.
References size(), and llvm::size().
Definition at line 618 of file BitVector.h.
References assert(), llvm::empty(), I, LLVM_UNLIKELY, and llvm::BitmaskEnumDetail::Mask().
Definition at line 495 of file BitVector.h.
References assert(), and llvm::BitmaskEnumDetail::Mask().
Definition at line 610 of file BitVector.h.
References llvm::numbers::e, size(), and llvm::size().
Definition at line 602 of file BitVector.h.
References llvm::numbers::e, size(), and llvm::size().
Referenced by isDebug().
|
inline |
Definition at line 506 of file BitVector.h.
References Size.
Referenced by llvm::SIMachineFunctionInfo::allocateVGPRSpillToAGPR(), and llvm::ScheduleDAGTopologicalSort::GetSubGraph().
|
inline |
Definition at line 391 of file BitVector.h.
Referenced by llvm::SmallBitVector::reserve().
|
inline |
Definition at line 438 of file BitVector.h.
Referenced by addLiveInRegs(), llvm::msf::MSFBuilder::addStream(), llvm::PPCFrameLowering::assignCalleeSavedSpillSlots(), llvm::LiveRegUnits::clear(), computeFreeStackSlots(), CriticalPathStep(), llvm::BPFFrameLowering::determineCalleeSaves(), llvm::SIFrameLowering::determineCalleeSaves(), llvm::XCoreFrameLowering::determineCalleeSaves(), llvm::LanaiFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::determineCalleeSaves(), llvm::SIFrameLowering::determineCalleeSavesSGPR(), llvm::RegScavenger::enterBasicBlockEnd(), findTemporariesForLR(), llvm::CriticalAntiDepBreaker::FinishBlock(), llvm::RegScavenger::getRegsAvailable(), getStartOrEndSlot(), llvm::ScheduleDAGTopologicalSort::GetSubGraph(), llvm::LiveRegUnits::init(), INITIALIZE_PASS(), isDebug(), llvm::ScheduleDAGTopologicalSort::IsReachable(), llvm::Mips16InstrInfo::loadImmediate(), llvm::safestack::StackColoring::removeAllMarkers(), llvm::LiveRegUnits::removeReg(), llvm::LiveRegUnits::removeRegsNotPreserved(), llvm::LiveRegUnits::removeUnits(), llvm::PPCFrameLowering::replaceFPWithRealFP(), llvm::RegScavenger::scavengeRegister(), scavengeStackSlot(), llvm::msf::MSFBuilder::setDirectoryBlocksHint(), llvm::CriticalAntiDepBreaker::StartBlock(), llvm::pdb::UDTLayoutBase::UDTLayoutBase(), and llvm::WebAssemblyFunctionInfo::unstackifyVReg().
Definition at line 443 of file BitVector.h.
reset - Efficiently reset a range of bits in [I, E)
Definition at line 449 of file BitVector.h.
References llvm::alignTo(), assert(), E, llvm::BitmaskEnumDetail::Mask(), and llvm::size().
reset - Reset bits that are set in RHS. Same as *this &= ~RHS.
Definition at line 576 of file BitVector.h.
References size(), and llvm::size().
resize - Grow or shrink the bitvector.
Definition at line 371 of file BitVector.h.
References llvm::MutableArrayRef< T >::drop_front(), N, Size, and llvm::ArrayRef< T >::size().
Referenced by llvm::pdb::UDTLayoutBase::addChildToLayout(), llvm::msf::MSFBuilder::addStream(), llvm::SIMachineFunctionInfo::allocateVGPRSpillToAGPR(), llvm::pdb::BaseClassLayout::BaseClassLayout(), llvm::LiveIntervals::checkRegMaskInterference(), llvm::pdb::ClassLayout::ClassLayout(), llvm::SplitAnalysis::clear(), computeFreeStackSlots(), llvm::HexagonFrameLowering::determineCalleeSaves(), llvm::TargetFrameLowering::determineCalleeSaves(), llvm::TargetFrameLowering::getCalleeSaves(), llvm::BuildVectorSDNode::getSplatValue(), getStartOrEndSlot(), llvm::ScheduleDAGTopologicalSort::GetSubGraph(), llvm::LiveRegUnits::init(), isCoalescable(), llvm::pdb::LayoutItemBase::LayoutItemBase(), llvm::MachineRegisterInfo::MachineRegisterInfo(), llvm::pdb::PDBFile::parseFileHeaders(), llvm::RegisterBank::RegisterBank(), llvm::safestack::StackColoring::removeAllMarkers(), llvm::CodeGenCoverage::reset(), llvm::msf::MSFBuilder::setBlockMapAddr(), llvm::CodeGenCoverage::setCovered(), llvm::msf::MSFBuilder::setDirectoryBlocksHint(), llvm::safestack::StackColoring::LiveRange::SetMaximum(), llvm::RegScavenger::setRegUsed(), llvm::WebAssemblyFunctionInfo::stackifyVReg(), and llvm::pdb::UDTLayoutBase::UDTLayoutBase().
|
inline |
Definition at line 397 of file BitVector.h.
Referenced by llvm::AArch64Subtarget::AArch64Subtarget(), addLiveInRegs(), llvm::safestack::StackColoring::LiveRange::AddRange(), llvm::LiveRegUnits::addReg(), llvm::LiveRegUnits::addRegMasked(), llvm::LiveRegUnits::addRegsInMask(), addRegUnits(), llvm::SIMachineFunctionInfo::allocateVGPRSpillToAGPR(), llvm::pdb::BaseClassLayout::BaseClassLayout(), llvm::TargetRegisterInfo::checkAllSuperRegsMarked(), checkNumAlignedDPRCS2Regs(), llvm::createDwarfEHPass(), CriticalPathStep(), llvm::SystemZFrameLowering::determineCalleeSaves(), llvm::RISCVFrameLowering::determineCalleeSaves(), llvm::ARCFrameLowering::determineCalleeSaves(), llvm::Mips16FrameLowering::determineCalleeSaves(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::HexagonFrameLowering::determineCalleeSaves(), llvm::X86FrameLowering::determineCalleeSaves(), llvm::TargetFrameLowering::determineCalleeSaves(), llvm::TargetLibraryInfo::disableAllFunctions(), llvm::RegScavenger::enterBasicBlockEnd(), findTemporariesForLR(), getAllocatableSetForRC(), llvm::ARMFrameLowering::getCalleeSaves(), llvm::TargetFrameLowering::getCalleeSaves(), llvm::SystemZTTIImpl::getInterleavedMemoryOpCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getInterleavedMemoryOpCost(), llvm::MSP430RegisterInfo::getReservedRegs(), llvm::SparcRegisterInfo::getReservedRegs(), llvm::VERegisterInfo::getReservedRegs(), llvm::ARCRegisterInfo::getReservedRegs(), llvm::AVRRegisterInfo::getReservedRegs(), llvm::LanaiRegisterInfo::getReservedRegs(), llvm::XCoreRegisterInfo::getReservedRegs(), llvm::WebAssemblyRegisterInfo::getReservedRegs(), llvm::HexagonRegisterInfo::getReservedRegs(), llvm::MipsRegisterInfo::getReservedRegs(), llvm::SIRegisterInfo::getReservedRegs(), llvm::SystemZRegisterInfo::getReservedRegs(), llvm::X86RegisterInfo::getReservedRegs(), getStartOrEndSlot(), llvm::ScheduleDAGTopologicalSort::GetSubGraph(), hasPressureSet(), INITIALIZE_PASS(), InstructionStoresToFI(), isCallableFunction(), isDebug(), llvm::LiveRangeCalc::isJointlyDominated(), llvm::TargetRegisterInfo::markSuperRegs(), false::IntervalSorter::operator()(), llvm::optimizeGlobalCtorsList(), processShaderInputArgs(), llvm::safestack::StackColoring::removeAllMarkers(), llvm::SmallBitVector::reserve(), llvm::AMDGPURegisterInfo::reserveRegisterTuples(), llvm::R600RegisterInfo::reserveRegisterTuples(), setAliasRegs(), llvm::LiveRangeCalc::setLiveOutValue(), llvm::TargetLibraryInfo::setUnavailable(), llvm::SystemZRegisterInfo::shouldCoalesce(), and llvm::WebAssemblyFunctionInfo::stackifyVReg().
Definition at line 403 of file BitVector.h.
References assert(), and llvm::MutableArrayRef< T >::data().
set - Efficiently set a range of bits in [I, E)
Definition at line 410 of file BitVector.h.
References llvm::alignTo(), assert(), E, llvm::BitmaskEnumDetail::Mask(), and llvm::size().
|
inline |
Definition at line 129 of file BitVector.h.
References llvm::make_range().
Referenced by addLiveInRegs(), llvm::AggressiveAntiDepBreaker::AggressiveAntiDepBreaker(), llvm::PPCFrameLowering::assignCalleeSavedSpillSlots(), llvm::TargetRegisterInfo::checkAllSuperRegsMarked(), llvm::CodeGenCoverage::covered(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::CodeGenCoverage::emit(), and findTemporariesForLR().
|
inline |
Definition at line 123 of file BitVector.h.
|
inline |
Definition at line 126 of file BitVector.h.
setBitsInMask - Add '1' bits from Mask to this vector.
Don't resize. This computes "*this |= Mask".
Definition at line 775 of file BitVector.h.
References llvm::BitmaskEnumDetail::Mask().
Referenced by llvm::SIMachineFunctionInfo::allocateVGPRSpillToAGPR(), llvm::TargetLoweringBase::findRepresentativeClass(), and llvm::RegisterBank::RegisterBank().
setBitsNotInMask - Add a bit to this vector for every '0' bit in Mask.
Don't resize. This computes "*this |= ~Mask".
Definition at line 787 of file BitVector.h.
References llvm::BitmaskEnumDetail::Mask().
Referenced by llvm::MachineRegisterInfo::addPhysRegsUsedFromRegMask(), and InstructionStoresToFI().
|
inline |
size - Returns the number of bits in this bitvector.
Definition at line 169 of file BitVector.h.
References Size.
Referenced by llvm::pdb::UDTLayoutBase::addChildToLayout(), llvm::msf::MSFBuilder::addStream(), anyCommon(), llvm::PPCFrameLowering::assignCalleeSavedSpillSlots(), BitVector(), llvm::createDwarfEHPass(), llvm::pdb::LayoutItemBase::deepPaddingSize(), llvm::MachineRegisterInfo::freezeReservedRegs(), llvm::msf::MSFBuilder::generateLayout(), llvm::msf::MSFBuilder::getTotalBlockCount(), llvm::CodeGenCoverage::isCovered(), llvm::WebAssemblyFunctionInfo::isVRegStackified(), operator &=(), operator=(), operator==(), operator^=(), operator|=(), llvm::RegisterBank::print(), reset(), llvm::RegisterClassInfo::runOnMachineFunction(), scavengeStackSlot(), llvm::msf::MSFBuilder::setBlockMapAddr(), llvm::CodeGenCoverage::setCovered(), llvm::msf::MSFBuilder::setDirectoryBlocksHint(), llvm::WebAssemblyFunctionInfo::stackifyVReg(), llvm::pdb::LayoutItemBase::tailPadding(), test(), and llvm::WebAssemblyFunctionInfo::unstackifyVReg().
|
inline |
Definition at line 501 of file BitVector.h.
Referenced by addLiveInRegs(), llvm::msf::MSFBuilder::addStream(), assignCalleeSavedSpillSlots(), llvm::LiveRegUnits::available(), llvm::MachineRegisterInfo::canReserveReg(), checkNumAlignedDPRCS2Regs(), llvm::LiveRegMatrix::checkRegMaskInterference(), commitFpm(), llvm::RegisterBank::covers(), llvm::createGenericSchedPostRA(), CriticalPathStep(), llvm::SystemZFrameLowering::determineCalleeSaves(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::AArch64FrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::determineCalleeSaves(), llvm::Thumb1FrameLowering::emitEpilogue(), llvm::ARMFrameLowering::emitEpilogue(), findTemporariesForLR(), llvm::PPCRegisterInfo::getCalleeSavedRegsViaCopy(), llvm::RISCVTargetLowering::getRegisterByName(), llvm::RegScavenger::getRegsAvailable(), llvm::ARMBaseRegisterInfo::getReservedRegs(), getStartOrEndSlot(), llvm::ScheduleDAGTopologicalSort::GetSubGraph(), INITIALIZE_PASS(), insertCSRRestores(), InstructionStoresToFI(), isACalleeSavedRegister(), llvm::SIRegisterInfo::isAGPRPressureSet(), llvm::ARMBaseRegisterInfo::isAsmClobberable(), isCallableFunction(), llvm::PPCRegisterInfo::isCallerPreservedPhysReg(), isDebug(), llvm::MachineRegisterInfo::isPhysRegModified(), llvm::MachineRegisterInfo::isPhysRegUsed(), llvm::MachineRegisterInfo::isReserved(), llvm::SIRegisterInfo::isSGPRPressureSet(), llvm::SplitAnalysis::isThroughBlock(), llvm::SIRegisterInfo::isVGPRPressureSet(), llvm::WebAssemblyFunctionInfo::isVRegStackified(), llvm::safestack::StackColoring::removeAllMarkers(), removeGlobalCtors(), llvm::safestack::StackColoring::run(), llvm::RegisterClassInfo::runOnMachineFunction(), scavengeStackSlot(), llvm::CriticalAntiDepBreaker::StartBlock(), llvm::AggressiveAntiDepBreaker::StartBlock(), and llvm::MachineFunctionProperties::verifyRequiredProperties().
test - Check if (This - RHS) is zero.
This is the same as reset(RHS) and any().
Definition at line 587 of file BitVector.h.
References size(), and llvm::size().
1.8.13