LLVM API Documentation
#include <PointerIntPair.h>
Public Member Functions | |
PointerIntPair () | |
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 42 of file PointerIntPair.h.
|
inline |
Definition at line 60 of file PointerIntPair.h.
|
inline |
Definition at line 61 of file PointerIntPair.h.
|
inlineexplicit |
Definition at line 66 of file PointerIntPair.h.
|
inline |
Definition at line 116 of file PointerIntPair.h.
Referenced by llvm::PointerIntPair< ExitNotTakenInfo *, 1 >::getAddrOfPointer(), and llvm::PointerUnion< EltTy, llvm::SmallVector * >::getAddrOfPtr1().
|
inline |
Definition at line 120 of file PointerIntPair.h.
|
inlinestatic |
Definition at line 130 of file PointerIntPair.h.
Referenced by llvm::PointerIntPair< ExitNotTakenInfo *, 1 >::getFromOpaqueValue(), and llvm::PointerLikeTypeTraits< PointerIntPair< PointerTy, IntBits, IntType, PtrTraits > >::getFromVoidPointer().
|
inlinestatic |
Definition at line 136 of file PointerIntPair.h.
|
inline |
Definition at line 75 of file PointerIntPair.h.
Referenced by llvm::X86AsmPrinter::EmitEndOfAsmFile(), llvm::ARMAsmPrinter::EmitEndOfAsmFile(), llvm::Use::getUser(), llvm::PointerUnion< EltTy, llvm::SmallVector * >::is(), llvm::detail::PtrUseVisitorBase::PtrInfo::isAborted(), llvm::CallSiteBase< Function, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isCall(), llvm::detail::PtrUseVisitorBase::PtrInfo::isEscaped(), llvm::CallSiteBase< Function, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isInvoke(), llvm::RegionNode::isSubRegion(), llvm::RNSuccIterator< NodeType >::operator==(), and llvm::PtrUseVisitor< SliceBuilder >::visitPtr().
|
inline |
Definition at line 127 of file PointerIntPair.h.
Referenced by llvm::PointerLikeTypeTraits< PointerIntPair< PointerTy, IntBits, IntType, PtrTraits > >::getAsVoidPointer(), llvm::DenseMapInfo< PointerIntPair< PointerTy, IntBits, IntType > >::getHashValue(), and llvm::PointerUnion< EltTy, llvm::SmallVector * >::getOpaqueValue().
|
inline |
Definition at line 70 of file PointerIntPair.h.
Referenced by llvm::X86AsmPrinter::EmitEndOfAsmFile(), llvm::ARMAsmPrinter::EmitEndOfAsmFile(), llvm::PointerUnion< EltTy, llvm::SmallVector * >::get(), llvm::detail::PtrUseVisitorBase::PtrInfo::getAbortingInst(), llvm::PointerIntPair< ExitNotTakenInfo *, 1 >::getAddrOfPointer(), llvm::PointerUnion< EltTy, llvm::SmallVector * >::getAddrOfPtr1(), llvm::TargetLoweringObjectFileMachO::getCFIPersonalitySymbol(), llvm::RegionNode::getEntry(), llvm::detail::PtrUseVisitorBase::PtrInfo::getEscapingInst(), llvm::CallSiteBase< Function, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::getInstruction(), GetSymbolFromOperand(), llvm::TargetLoweringObjectFileELF::getTTypeGlobalReference(), llvm::TargetLoweringObjectFileMachO::getTTypeGlobalReference(), llvm::Use::getUser(), llvm::PointerUnion< EltTy, llvm::SmallVector * >::isNull(), llvm::CallSiteBase< Function, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::operator bool(), llvm::CallSiteBase< Function, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::operator->(), llvm::IntervalMapImpl::NodeRef::operator==(), llvm::X86AsmPrinter::printSymbolOperand(), llvm::MemoryDependenceAnalysis::removeInstruction(), and llvm::PtrUseVisitor< SliceBuilder >::visitPtr().
|
inline |
Definition at line 97 of file PointerIntPair.h.
Referenced by llvm::PointerUnion< EltTy, llvm::SmallVector * >::operator=(), and llvm::PointerIntPair< ExitNotTakenInfo *, 1 >::PointerIntPair().
|
inline |
Definition at line 142 of file PointerIntPair.h.
|
inline |
Definition at line 143 of file PointerIntPair.h.
|
inline |
Definition at line 145 of file PointerIntPair.h.
|
inline |
Definition at line 141 of file PointerIntPair.h.
|
inline |
Definition at line 144 of file PointerIntPair.h.
|
inline |
Definition at line 146 of file PointerIntPair.h.
|
inline |
Definition at line 128 of file PointerIntPair.h.
Referenced by llvm::PointerIntPair< ExitNotTakenInfo *, 1 >::getFromOpaqueValue().
|
inline |
Definition at line 88 of file PointerIntPair.h.
Referenced by llvm::detail::PtrUseVisitorBase::PtrInfo::reset(), llvm::detail::PtrUseVisitorBase::PtrInfo::setAborted(), and llvm::detail::PtrUseVisitorBase::PtrInfo::setEscaped().
|
inline |
Definition at line 79 of file PointerIntPair.h.
Referenced by llvm::Region::replaceEntry(), llvm::detail::PtrUseVisitorBase::PtrInfo::reset(), llvm::detail::PtrUseVisitorBase::PtrInfo::setAborted(), and llvm::detail::PtrUseVisitorBase::PtrInfo::setEscaped().
|
inline |
Definition at line 105 of file PointerIntPair.h.
Referenced by llvm::PointerUnion< EltTy, llvm::SmallVector * >::operator=(), and llvm::PointerIntPair< ExitNotTakenInfo *, 1 >::PointerIntPair().