41 const Use *End = getImpliedUser();
44 :
reinterpret_cast<User *
>(
const_cast<Use *
>(End));
61 static const PrevPtrTag tags[20] = {
62 fullStopTag, oneDigitTag, stopTag, oneDigitTag, oneDigitTag,
63 stopTag, zeroDigitTag, oneDigitTag, oneDigitTag, stopTag,
64 zeroDigitTag, oneDigitTag, zeroDigitTag, oneDigitTag, stopTag,
65 oneDigitTag, oneDigitTag, oneDigitTag, oneDigitTag, stopTag};
66 new (Stop)
Use(tags[Done++]);
70 while (Start != Stop) {
73 new (Stop)
Use(stopTag);
77 new (Stop)
Use(PrevPtrTag(Count & 1));
90 ::operator
delete(Start);
93 const Use *Use::getImpliedUser()
const {
94 const Use *Current =
this;
97 unsigned Tag = (Current++)->Prev.getInt();
107 unsigned Tag = Current->Prev.getInt();
112 Offset = (Offset << 1) + Tag;
This class represents lattice values for constants.
PointerTy getPointer() const
void addUse(Use &U)
This method should only be used by the Use class.
This defines the Use class.
A Use represents the edge between a Value definition and its users.
User * getUser() const LLVM_READONLY
Returns the User that contains this Use.
unsigned getOperandNo() const
Return the operand # of this use in its User.
PointerIntPair - This class implements a pair of a pointer and small integer.
static Use * initTags(Use *Start, Use *Stop)
Initializes the waymarking tags on an array of Uses.
void swap(Use &RHS)
Provide a fast substitute to std::swap<Use> that also works with less standard-compliant compilers...
LLVM Value Representation.
static void zap(Use *Start, const Use *Stop, bool del=false)
Destroys Use operands when the number of operands of a User changes.