Lines Matching refs:User
1 //===-- User.cpp - Implement the User class -------------------------------===//
10 #include "llvm/IR/User.h"
19 // User Class
22 void User::anchor() {}
24 void User::replaceUsesOfWith(Value *From, Value *To) {
28 "Cannot call User::replaceUsesOfWith on a constant!");
40 // User allocHungoffUses Implementation
43 void User::allocHungoffUses(unsigned N, bool IsPhi) {
53 // the User.
59 (void) new(End) Use::UserRef(const_cast<User*>(this), 1);
63 void User::growHungoffUses(unsigned NewNumUses, bool IsPhi) {
91 // This is a private struct used by `User` to track the co-allocated descriptor
97 ArrayRef<const uint8_t> User::getDescriptor() const {
98 auto MutableARef = const_cast<User *>(this)->getDescriptor();
102 MutableArrayRef<uint8_t> User::getDescriptor() {
114 // User operator new Implementations
117 void *User::allocateFixedOperandUser(size_t Size, unsigned Us,
132 User *Obj = reinterpret_cast<User*>(End);
146 void *User::operator new(size_t Size, unsigned Us) {
150 void *User::operator new(size_t Size, unsigned Us, unsigned DescBytes) {
154 void *User::operator new(size_t Size) {
158 User *Obj = reinterpret_cast<User *>(HungOffOperandList + 1);
167 // User operator delete Implementation
170 void User::operator delete(void *Usr) {
171 // Hung off uses use a single Use* before the User, while other subclasses
173 User *Obj = static_cast<User *>(Usr);