|
LLVM
4.0.0
|
PointerIntPair - This class implements a pair of a pointer and small integer. More...
#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 46 of file PointerIntPair.h.
|
inline |
Definition at line 50 of file PointerIntPair.h.
|
inline |
Definition at line 51 of file PointerIntPair.h.
|
inlineexplicit |
Definition at line 54 of file PointerIntPair.h.
|
inline |
|
inline |
Definition at line 83 of file PointerIntPair.h.
|
inlinestatic |
Definition at line 95 of file PointerIntPair.h.
Referenced by llvm::PointerIntPair< void *, 1, bool, PointerUnionUIntTraits< const Value *, const PseudoSourceValue * > >::getFromOpaqueValue(), and llvm::PointerLikeTypeTraits< PointerIntPair< PointerTy, IntBits, IntType, PtrTraits > >::getFromVoidPointer().
|
inlinestatic |
Definition at line 103 of file PointerIntPair.h.
|
inline |
Definition at line 58 of file PointerIntPair.h.
Referenced by emitNonLazySymbolPointer(), llvm::Use::getUser(), llvm::PointerUnion< llvm::LLVMContext *, llvm::ReplaceableMetadataImpl * >::is(), llvm::detail::PtrUseVisitorBase::PtrInfo::isAborted(), llvm::CallSiteBase<>::isCall(), llvm::detail::PtrUseVisitorBase::PtrInfo::isEscaped(), llvm::CallSiteBase<>::isInvoke(), llvm::RegionNodeBase< RegionTraits< Function > >::isSubRegion(), llvm::GlobalsAAResult::FunctionInfo::operator=(), llvm::RNSuccIterator< NodeRef, BlockT, RegionT >::operator==(), 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(), and llvm::PointerUnion< llvm::LLVMContext *, llvm::ReplaceableMetadataImpl * >::getOpaqueValue().
|
inline |
Definition at line 56 of file PointerIntPair.h.
Referenced by llvm::GlobalsAAResult::FunctionInfo::addFunctionInfo(), emitNonLazySymbolPointer(), llvm::GlobalsAAResult::FunctionInfo::FunctionInfo(), llvm::PointerUnion< llvm::LLVMContext *, llvm::ReplaceableMetadataImpl * >::get(), llvm::detail::PtrUseVisitorBase::PtrInfo::getAbortingInst(), llvm::PointerIntPair< void *, 1, bool, PointerUnionUIntTraits< const Value *, const PseudoSourceValue * > >::getAddrOfPointer(), llvm::PointerUnion< llvm::LLVMContext *, llvm::ReplaceableMetadataImpl * >::getAddrOfPtr1(), llvm::TargetLoweringObjectFileMachO::getCFIPersonalitySymbol(), llvm::RegionNodeBase< RegionTraits< Function > >::getEntry(), llvm::detail::PtrUseVisitorBase::PtrInfo::getEscapingInst(), llvm::TargetLoweringObjectFileMachO::getIndirectSymViaGOTPCRel(), llvm::CallSiteBase<>::getInstruction(), GetSymbolFromOperand(), llvm::SparcELFTargetObjectFile::getTTypeGlobalReference(), llvm::TargetLoweringObjectFileELF::getTTypeGlobalReference(), llvm::TargetLoweringObjectFileMachO::getTTypeGlobalReference(), llvm::Use::getUser(), llvm::PointerUnion< llvm::LLVMContext *, llvm::ReplaceableMetadataImpl * >::isNull(), llvm::CallSiteBase<>::operator bool(), llvm::CallSiteBase<>::operator->(), llvm::GlobalsAAResult::FunctionInfo::operator=(), llvm::IntervalMapImpl::NodeRef::operator==(), printSymbolOperand(), llvm::MemoryDependenceResults::removeInstruction(), and llvm::PtrUseVisitor< SliceBuilder >::visitPtr().
|
inline |
|
inline |
Definition at line 111 of file PointerIntPair.h.
|
inline |
Definition at line 114 of file PointerIntPair.h.
|
inline |
Definition at line 116 of file PointerIntPair.h.
|
inline |
Definition at line 108 of file PointerIntPair.h.
|
inline |
Definition at line 115 of file PointerIntPair.h.
|
inline |
Definition at line 119 of file PointerIntPair.h.
|
inline |
Definition at line 91 of file PointerIntPair.h.
Referenced by llvm::PointerIntPair< void *, 1, bool, PointerUnionUIntTraits< const Value *, const PseudoSourceValue * > >::getFromOpaqueValue().
|
inline |
Definition at line 66 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 62 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 74 of file PointerIntPair.h.
Referenced by llvm::GlobalsAAResult::FunctionInfo::operator=(), llvm::PointerUnion< llvm::LLVMContext *, llvm::ReplaceableMetadataImpl * >::operator=(), and llvm::PointerIntPair< void *, 1, bool, PointerUnionUIntTraits< const Value *, const PseudoSourceValue * > >::PointerIntPair().
1.8.6