|
LLVM
10.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) LLVM_LVALUE_FUNCTION |
| void | setInt (IntType IntVal) LLVM_LVALUE_FUNCTION |
| void | initWithPointer (PointerTy PtrVal) LLVM_LVALUE_FUNCTION |
| void | setPointerAndInt (PointerTy PtrVal, IntType IntVal) LLVM_LVALUE_FUNCTION |
| PointerTy const * | getAddrOfPointer () const |
| PointerTy * | getAddrOfPointer () |
| void * | getOpaqueValue () const |
| void | setFromOpaqueValue (void *Val) LLVM_LVALUE_FUNCTION |
| 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 45 of file PointerIntPair.h.
|
default |
|
inline |
Definition at line 53 of file PointerIntPair.h.
|
inlineexplicit |
Definition at line 57 of file PointerIntPair.h.
|
inline |
Definition at line 80 of file PointerIntPair.h.
Referenced by llvm::PointerIntPair< llvm::IntrusiveBackListNode *, 1 >::getAddrOfPointer().
|
inline |
Definition at line 84 of file PointerIntPair.h.
|
inlinestatic |
|
inlinestatic |
Definition at line 105 of file PointerIntPair.h.
|
inline |
Definition at line 61 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::CallSiteBase< Function, BasicBlock, Value, User, Use, Instruction, CallInst, InvokeInst, CallBrInst, User::op_iterator >::isCall(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Use, Instruction, CallInst, InvokeInst, CallBrInst, User::op_iterator >::isCallBr(), llvm::gvn::AvailableValue::isCoercedLoadValue(), llvm::DwarfStringPoolEntryRef::isIndexed(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Use, Instruction, CallInst, InvokeInst, CallBrInst, User::op_iterator >::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 91 of file PointerIntPair.h.
Referenced by llvm::PointerLikeTypeTraits< PointerIntPair< PointerTy, IntBits, IntType, PtrTraits > >::getAsVoidPointer(), llvm::DenseMapInfo< PointerIntPair< PointerTy, IntBits, IntType > >::getHashValue(), and llvm::IntervalMapImpl::NodeRef::operator bool().
|
inline |
Definition at line 59 of file PointerIntPair.h.
Referenced by llvm::GlobalsAAResult::FunctionInfo::addFunctionInfo(), llvm::ValueHandleBase::clearValPtr(), llvm::SplitEditor::dump(), llvm::X86AsmPrinter::EmitFunctionBodyEnd(), emitNonLazySymbolPointer(), llvm::GlobalsAAResult::FunctionInfo::FunctionInfo(), llvm::IntervalMapImpl::NodeRef::get(), llvm::PointerIntPair< llvm::IntrusiveBackListNode *, 1 >::getAddrOfPointer(), llvm::TargetLoweringObjectFileMachO::getCFIPersonalitySymbol(), llvm::gvn::AvailableValue::getCoercedLoadValue(), llvm::RegionNodeBase< RegionTraits< Function > >::getEntry(), llvm::MCSymbol::getFragment(), llvm::TargetLoweringObjectFileMachO::getIndirectSymViaGOTPCRel(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Use, Instruction, CallInst, InvokeInst, CallBrInst, User::op_iterator >::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::SlotIndex::isValid(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Use, Instruction, CallInst, InvokeInst, CallBrInst, User::op_iterator >::operator bool(), llvm::LazyCallGraph::Edge::operator bool(), llvm::unique_function< ReturnT(ParamTs...)>::operator bool(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Use, Instruction, CallInst, InvokeInst, CallBrInst, User::op_iterator >::operator->(), llvm::GlobalsAAResult::FunctionInfo::operator=(), llvm::IntervalMapImpl::NodeRef::operator==(), llvm::MemoryDependenceResults::removeInstruction(), llvm::SlotIndex::SlotIndex(), llvm::IntervalMapImpl::NodeRef::subtree(), llvm::PtrUseVisitor< SliceBuilder >::visitPtr(), and llvm::unique_function< ReturnT(ParamTs...)>::~unique_function().
|
inline |
Definition at line 71 of file PointerIntPair.h.
Referenced by llvm::PointerIntPair< llvm::IntrusiveBackListNode *, 1 >::PointerIntPair().
|
inline |
Definition at line 114 of file PointerIntPair.h.
|
inline |
Definition at line 118 of file PointerIntPair.h.
|
inline |
Definition at line 121 of file PointerIntPair.h.
|
inline |
Definition at line 110 of file PointerIntPair.h.
|
inline |
Definition at line 119 of file PointerIntPair.h.
|
inline |
Definition at line 125 of file PointerIntPair.h.
|
inline |
Definition at line 93 of file PointerIntPair.h.
Referenced by llvm::PointerIntPair< llvm::IntrusiveBackListNode *, 1 >::getFromOpaqueValue().
|
inline |
Definition at line 67 of file PointerIntPair.h.
Referenced by llvm::SplitEditor::dump(), llvm::MCSymbol::MCSymbol(), NewGVN::ValueDFS::operator<(), and llvm::IntervalMapImpl::NodeRef::setSize().
|
inline |
Definition at line 63 of file PointerIntPair.h.
Referenced by llvm::ValueHandleBase::clearValPtr(), llvm::MCSymbol::getFragment(), NewGVN::ValueDFS::operator<(), llvm::MCSymbol::setFragment(), and llvm::MCSymbol::setUndefined().
|
inline |
Definition at line 75 of file PointerIntPair.h.
Referenced by llvm::PointerIntPair< llvm::IntrusiveBackListNode *, 1 >::PointerIntPair().
1.8.13