Lines Matching refs:User
1 //===-- User.cpp - Implement the User class -------------------------------===//
9 #include "llvm/IR/User.h"
18 // User Class
21 void User::replaceUsesOfWith(Value *From, Value *To) {
25 "Cannot call User::replaceUsesOfWith on a constant!");
37 // User allocHungoffUses Implementation
40 void User::allocHungoffUses(unsigned N, bool IsPhi) {
57 void User::growHungoffUses(unsigned NewNumUses, bool IsPhi) {
83 // This is a private struct used by `User` to track the co-allocated descriptor
89 ArrayRef<const uint8_t> User::getDescriptor() const {
90 auto MutableARef = const_cast<User *>(this)->getDescriptor();
94 MutableArrayRef<uint8_t> User::getDescriptor() {
105 bool User::isDroppable() const {
112 // User operator new Implementations
115 void *User::allocateFixedOperandUser(size_t Size, unsigned Us,
130 User *Obj = reinterpret_cast<User*>(End);
145 void *User::operator new(size_t Size, unsigned Us) {
149 void *User::operator new(size_t Size, unsigned Us, unsigned DescBytes) {
153 void *User::operator new(size_t Size) {
157 User *Obj = reinterpret_cast<User *>(HungOffOperandList + 1);
166 // User operator delete Implementation
171 LLVM_NO_SANITIZE_MEMORY_ATTRIBUTE void User::operator delete(void *Usr) {
172 // Hung off uses use a single Use* before the User, while other subclasses
174 User *Obj = static_cast<User *>(Usr);