Lines Matching full:user
1 //===-- User.cpp - Implement the User class -------------------------------===//
9 #include "llvm/IR/User.h"
18 // User Class
21 bool User::replaceUsesOfWith(Value *From, Value *To) {
26 "Cannot call User::replaceUsesOfWith on a constant!");
47 // User allocHungoffUses Implementation
50 void User::allocHungoffUses(unsigned N, bool IsPhi) {
67 void User::growHungoffUses(unsigned NewNumUses, bool IsPhi) {
93 // This is a private struct used by `User` to track the co-allocated descriptor
99 ArrayRef<const uint8_t> User::getDescriptor() const {
100 auto MutableARef = const_cast<User *>(this)->getDescriptor();
104 MutableArrayRef<uint8_t> User::getDescriptor() {
115 bool User::isDroppable() const {
130 // User operator new Implementations
133 void *User::allocateFixedOperandUser(size_t Size, unsigned Us,
148 User *Obj = reinterpret_cast<User *>(End);
160 void *User::operator new(size_t Size, IntrusiveOperandsAllocMarker allocTrait) {
164 void *User::operator new(size_t Size,
170 void *User::operator new(size_t Size, HungOffOperandsAllocMarker) {
174 User *Obj = reinterpret_cast<User *>(HungOffOperandList + 1);
180 // User operator delete Implementation
185 LLVM_NO_SANITIZE_MEMORY_ATTRIBUTE void User::operator delete(void *Usr) {
186 // Hung off uses use a single Use* before the User, while other subclasses
187 // use a Use[] allocated prior to the user.
188 User *Obj = static_cast<User *>(Usr);