21 void User::anchor() {}
27 if (From == To)
return;
29 assert((!isa<Constant>(
this) || isa<GlobalValue>(
this)) &&
30 "Cannot call User::replaceUsesOfWith on a constant!");
49 Use *Begin =
static_cast<Use*
>(::operator
new(size));
51 (void)
new(End)
Use::UserRef(const_cast<User*>(
this), 1);
59 void *User::operator
new(
size_t s,
unsigned Us) {
60 void *Storage = ::operator
new(s +
sizeof(
Use) * Us);
61 Use *Start =
static_cast<Use*
>(Storage);
62 Use *End = Start + Us;
63 User *Obj =
reinterpret_cast<User*
>(End);
74 void User::operator
delete(
void *Usr) {
75 User *Start =
static_cast<User*
>(Usr);
79 ::
operator delete(Storage);
PointerIntPair< User *, 1, unsigned > UserRef
unsigned getNumOperands() const
#define llvm_unreachable(msg)
void replaceUsesOfWith(Value *From, Value *To)
static Use * initTags(Use *Start, Use *Stop)
Value * getOperand(unsigned i) const
void setOperand(unsigned i, Value *Val)
LLVM Value Representation.
Use * allocHungoffUses(unsigned) const