|
LLVM
7.0.0
|
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 50 of file PointerIntPair.h.
|
inlineexplicit |
Definition at line 54 of file PointerIntPair.h.
|
inline |
|
inline |
Definition at line 81 of file PointerIntPair.h.
|
inlinestatic |
Definition at line 94 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 102 of file PointerIntPair.h.
|
inline |
Definition at line 58 of file PointerIntPair.h.
Referenced by llvm::ValueHandleBase::clearValPtr(), emitNonLazySymbolPointer(), llvm::LazyCallGraph::Edge::getKind(), llvm::DomTreeBuilder::Update< NodePtr >::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::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(), stripRegisterPrefix(), and llvm::PtrUseVisitor< SliceBuilder >::visitPtr().
|
inline |
Definition at line 88 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 56 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::DomTreeBuilder::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(), stripRegisterPrefix(), llvm::IntervalMapImpl::NodeRef::subtree(), llvm::PtrUseVisitor< SliceBuilder >::visitPtr(), and llvm::unique_function< ReturnT(ParamTs...)>::~unique_function().
|
inline |
|
inline |
Definition at line 111 of file PointerIntPair.h.
|
inline |
Definition at line 115 of file PointerIntPair.h.
|
inline |
Definition at line 118 of file PointerIntPair.h.
|
inline |
Definition at line 107 of file PointerIntPair.h.
|
inline |
Definition at line 116 of file PointerIntPair.h.
|
inline |
Definition at line 122 of file PointerIntPair.h.
|
inline |
Definition at line 90 of file PointerIntPair.h.
|
inline |
Definition at line 64 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 60 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 |
Definition at line 72 of file PointerIntPair.h.
Referenced by llvm::GlobalsAAResult::FunctionInfo::operator=(), llvm::PointerUnion< const Value *, const PseudoSourceValue * >::operator=(), and llvm::PointerIntPair< void *, 1, bool, PointerUnionUIntTraits< const llvm::Value *, const llvm::PseudoSourceValue *> >::PointerIntPair().
1.8.13