LLVM
8.0.1
|
PointerIntPair - This class implements a pair of a pointer and small integer. More...
#include "llvm/ADT/PointerIntPair.h"
Public Member Functions | |
constexpr | PointerIntPair ()=default |
PointerIntPair (PointerTy PtrVal, IntType IntVal) | |
PointerIntPair (PointerTy PtrVal) | |
PointerTy | getPointer () const |
IntType | getInt () const |
void | setPointer (PointerTy PtrVal) |
void | setInt (IntType IntVal) |
void | initWithPointer (PointerTy PtrVal) |
void | setPointerAndInt (PointerTy PtrVal, IntType IntVal) |
PointerTy const * | getAddrOfPointer () const |
PointerTy * | getAddrOfPointer () |
void * | getOpaqueValue () const |
void | setFromOpaqueValue (void *Val) |
bool | operator== (const PointerIntPair &RHS) const |
bool | operator!= (const PointerIntPair &RHS) const |
bool | operator< (const PointerIntPair &RHS) const |
bool | operator> (const PointerIntPair &RHS) const |
bool | operator<= (const PointerIntPair &RHS) const |
bool | operator>= (const PointerIntPair &RHS) const |
Static Public Member Functions | |
static PointerIntPair | getFromOpaqueValue (void *V) |
static PointerIntPair | getFromOpaqueValue (const void *V) |
PointerIntPair - This class implements a pair of a pointer and small integer.
It is designed to represent this in the space required by one pointer by bitmangling the integer into the low part of the pointer. This can only be done for small integers: typically up to 3 bits, but it depends on the number of bits available according to PointerLikeTypeTraits for the type.
Note that PointerIntPair always puts the IntVal part in the highest bits possible. For example, PointerIntPair<void*, 1, bool> will put the bit for the bool into bit #2, not bit #0, which allows the low two bits to be used for something else. For example, this allows: PointerIntPair<PointerIntPair<void*, 1, bool>, 1, bool> ... and the two bools will land in different bits.
Definition at line 44 of file PointerIntPair.h.
|
default |
|
inline |
Definition at line 52 of file PointerIntPair.h.
|
inlineexplicit |
Definition at line 56 of file PointerIntPair.h.
|
inline |
|
inline |
Definition at line 83 of file PointerIntPair.h.
|
inlinestatic |
Definition at line 96 of file PointerIntPair.h.
Referenced by llvm::PointerIntPair< void *, 1, bool, PointerUnionUIntTraits< const llvm::Value *, const llvm::PseudoSourceValue *> >::getFromOpaqueValue(), and llvm::PointerLikeTypeTraits< PointerIntPair< PointerTy, IntBits, IntType, PtrTraits > >::getFromVoidPointer().
|
inlinestatic |
Definition at line 104 of file PointerIntPair.h.
|
inline |
Definition at line 60 of file PointerIntPair.h.
Referenced by llvm::ValueHandleBase::clearValPtr(), emitNonLazySymbolPointer(), llvm::cfg::Update< NodePtr >::getKind(), llvm::LazyCallGraph::Edge::getKind(), llvm::MCSymbol::getName(), llvm::IntrusiveBackListNode::getNext(), llvm::RecordVal::getPrefix(), llvm::PointerUnion< const Value *, const PseudoSourceValue * >::is(), llvm::detail::PtrUseVisitorBase::PtrInfo::isAborted(), llvm::CallSiteBase<>::isCall(), llvm::gvn::AvailableValue::isCoercedLoadValue(), llvm::detail::PtrUseVisitorBase::PtrInfo::isEscaped(), llvm::DwarfStringPoolEntryRef::isIndexed(), llvm::CallSiteBase<>::isInvoke(), llvm::gvn::AvailableValue::isMemIntrinValue(), llvm::gvn::AvailableValue::isSimpleValue(), llvm::RegionNodeBase< RegionTraits< Function > >::isSubRegion(), llvm::gvn::AvailableValue::isUndefValue(), llvm::MCSymbol::MCSymbol(), llvm::GlobalsAAResult::FunctionInfo::operator=(), llvm::RNSuccIterator< NodeRef, BlockT, RegionT >::operator==(), llvm::IntervalMapImpl::NodeRef::size(), and llvm::PtrUseVisitor< SliceBuilder >::visitPtr().
|
inline |
Definition at line 90 of file PointerIntPair.h.
Referenced by llvm::PointerLikeTypeTraits< PointerIntPair< PointerTy, IntBits, IntType, PtrTraits > >::getAsVoidPointer(), llvm::DenseMapInfo< PointerIntPair< PointerTy, IntBits, IntType > >::getHashValue(), llvm::PointerUnion< const Value *, const PseudoSourceValue * >::getOpaqueValue(), and llvm::IntervalMapImpl::NodeRef::operator bool().
|
inline |
Definition at line 58 of file PointerIntPair.h.
Referenced by llvm::GlobalsAAResult::FunctionInfo::addFunctionInfo(), llvm::ValueHandleBase::clearValPtr(), llvm::SplitEditor::dump(), emitNonLazySymbolPointer(), llvm::GlobalsAAResult::FunctionInfo::FunctionInfo(), llvm::PointerUnion< const Value *, const PseudoSourceValue * >::get(), llvm::IntervalMapImpl::NodeRef::get(), llvm::detail::PtrUseVisitorBase::PtrInfo::getAbortingInst(), llvm::PointerIntPair< void *, 1, bool, PointerUnionUIntTraits< const llvm::Value *, const llvm::PseudoSourceValue *> >::getAddrOfPointer(), llvm::PointerUnion< const Value *, const PseudoSourceValue * >::getAddrOfPtr1(), llvm::TargetLoweringObjectFileMachO::getCFIPersonalitySymbol(), llvm::gvn::AvailableValue::getCoercedLoadValue(), llvm::RegionNodeBase< RegionTraits< Function > >::getEntry(), llvm::detail::PtrUseVisitorBase::PtrInfo::getEscapingInst(), llvm::MCSymbol::getFragment(), llvm::TargetLoweringObjectFileMachO::getIndirectSymViaGOTPCRel(), llvm::CallSiteBase<>::getInstruction(), llvm::gvn::AvailableValue::getMemIntrinValue(), llvm::IntrusiveBackListNode::getNext(), llvm::LazyCallGraph::Edge::getNode(), llvm::gvn::AvailableValue::getSimpleValue(), GetSymbolFromOperand(), llvm::cfg::Update< NodePtr >::getTo(), llvm::SparcELFTargetObjectFile::getTTypeGlobalReference(), llvm::TargetLoweringObjectFileELF::getTTypeGlobalReference(), llvm::TargetLoweringObjectFileMachO::getTTypeGlobalReference(), llvm::RecordVal::getType(), llvm::PointerUnion< const Value *, const PseudoSourceValue * >::isNull(), llvm::SlotIndex::isValid(), llvm::CallSiteBase<>::operator bool(), llvm::LazyCallGraph::Edge::operator bool(), llvm::unique_function< ReturnT(ParamTs...)>::operator bool(), llvm::CallSiteBase<>::operator->(), llvm::GlobalsAAResult::FunctionInfo::operator=(), llvm::IntervalMapImpl::NodeRef::operator==(), printSymbolOperand(), llvm::MemoryDependenceResults::removeInstruction(), llvm::SlotIndex::SlotIndex(), llvm::IntervalMapImpl::NodeRef::subtree(), llvm::PtrUseVisitor< SliceBuilder >::visitPtr(), and llvm::unique_function< ReturnT(ParamTs...)>::~unique_function().
|
inline |
|
inline |
Definition at line 113 of file PointerIntPair.h.
|
inline |
Definition at line 117 of file PointerIntPair.h.
|
inline |
Definition at line 120 of file PointerIntPair.h.
|
inline |
Definition at line 109 of file PointerIntPair.h.
|
inline |
Definition at line 118 of file PointerIntPair.h.
|
inline |
Definition at line 124 of file PointerIntPair.h.
|
inline |
Definition at line 92 of file PointerIntPair.h.
|
inline |
Definition at line 66 of file PointerIntPair.h.
Referenced by llvm::SplitEditor::dump(), llvm::MCSymbol::MCSymbol(), NewGVN::ValueDFS::operator<(), llvm::detail::PtrUseVisitorBase::PtrInfo::reset(), llvm::detail::PtrUseVisitorBase::PtrInfo::setAborted(), llvm::detail::PtrUseVisitorBase::PtrInfo::setEscaped(), and llvm::IntervalMapImpl::NodeRef::setSize().
|
inline |
Definition at line 62 of file PointerIntPair.h.
Referenced by llvm::ValueHandleBase::clearValPtr(), llvm::MCSymbol::getFragment(), NewGVN::ValueDFS::operator<(), llvm::detail::PtrUseVisitorBase::PtrInfo::reset(), llvm::detail::PtrUseVisitorBase::PtrInfo::setAborted(), llvm::detail::PtrUseVisitorBase::PtrInfo::setEscaped(), llvm::MCSymbol::setFragment(), and llvm::MCSymbol::setUndefined().
|
inline |