Home | History | Annotate | Download | only in IR

Lines Matching defs:User

1 //===- llvm/User.h - User class definition ----------------------*- C++ -*-===//
11 // Each instance of the Value class keeps track of what User's have handles
39 /// \brief Compile-time customization of User operands.
45 class User : public Value {
53 /// Allocate a User with an operand pointer co-allocated.
59 /// Allocate a User with the operands co-allocated.
64 /// Allocate a User with the operands co-allocated. If DescBytes is non-zero
74 User(Type *ty, unsigned vty, Use *, unsigned NumOps)
81 "Error in initializing hung off uses for User");
85 /// (with bottom bit set) to the User.
95 ~User() = default; // Use deleteValue() to delete a generic Instruction.
98 User(const User &) = delete;
100 /// \brief Free memory allocated for User and Use objects.
151 return const_cast<Use *>(static_cast<const User *>(this)->getOperandList());
178 /// Returns the descriptor co-allocated with this User instance.
181 /// Returns the descriptor co-allocated with this User instance.
273 /// This function is in charge of "letting go" of all objects that this User
296 // Either Use objects, or a Use pointer can be prepended to User.
297 static_assert(alignof(Use) >= alignof(User),
298 "Alignment is insufficient after objects prepended to User");
299 static_assert(alignof(Use *) >= alignof(User),
300 "Alignment is insufficient after objects prepended to User");
302 template<> struct simplify_type<User::op_iterator> {
305 static SimpleType getSimplifiedValue(User::op_iterator &Val) {
309 template<> struct simplify_type<User::const_op_iterator> {
312 static SimpleType getSimplifiedValue(User::const_op_iterator &Val) {