Lines Matching defs:Function
44 /// Class that lazily initialises the runtime function. Avoids inserting the
45 /// types and the function declaration into a module if they're not used, and
51 llvm::Constant *Function;
57 : CGM(nullptr), FunctionName(nullptr), Function(nullptr) {}
59 /// Initialises the lazy function with the name, return type, and the types
66 Function = nullptr;
79 if (!Function) {
85 Function =
91 return Function;
93 operator llvm::Function*() {
94 return cast<llvm::Function>((llvm::Constant*)*this);
123 /// Instance Method Pointer type. This is a pointer to a function that takes,
135 /// message lookup function and some GC-related functions.
169 /// Helper function that generates a constant string and returns a pointer to
170 /// the start of the string. The result of this function can be used anywhere
274 /// required. This function lets us avoid inserting bitcasts that are
339 /// Function used for throwing Objective-C exceptions.
341 /// Function used for rethrowing exceptions, used at the end of \@finally or
344 /// Function called when entering a catch function. This is required for
347 /// Function called when exiting from a catch block. Used to do exception
350 /// Function called when entering an \@synchronize block. Acquires the lock.
352 /// Function called when exiting an \@synchronize block. Releases the lock.
357 /// Function called if fast enumeration detects that the collection is
360 /// Function for implementing synthesized property getters that return an
363 /// Function for implementing synthesized property setters that return an
366 /// Function used for non-object declared property getters.
368 /// Function used for non-object declared property setters.
505 llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
513 llvm::Function *ModuleInitFunction() override;
579 /// The GCC ABI message lookup function. Returns an IMP pointing to the
582 /// The GCC ABI superclass message lookup function. Takes a pointer to a
617 /// The slot lookup function. Returns a pointer to a cacheable structure
620 /// The GNUstep ABI superclass message lookup function. Takes a pointer to
625 /// Specialised function for setting atomic retain properties
627 /// Specialised function for setting atomic copy properties
629 /// Specialised function for setting nonatomic retain properties
631 /// Specialised function for setting nonatomic copy properties
633 /// Function to perform atomic copies of C++ objects with nontrivial copy
636 /// Function to perform atomic copies of C++ objects with nontrivial copy
649 llvm::Function *LookupFn = SlotLookupFn;
663 // The lookup function is guaranteed not to capture the receiver pointer.
678 // The lookup function may have changed the receiver, so make sure we use
783 /// The GCC ABI message lookup function. Returns an IMP pointing to the
786 /// stret lookup function. While this does not seem to make sense at the
787 /// first look, this is required to call the correct forwarding function.
789 /// The GCC ABI superclass message lookup function. Takes a pointer to a
1110 // Objective-C objects in the same function.
1259 // load function. To send a message to super, we look up the value of the
1406 // function anyway
2350 llvm::Function *CGObjCGNU::ModuleInitFunction() {
2351 // Only emit an ObjC load function if no Objective-C stuff has been called
2520 // Create the load function calling the runtime entry point with the module
2522 llvm::Function * LoadFunction = llvm::Function::Create(
2542 llvm::Function *RegisterAlias = llvm::Function::Create(
2556 // The true branch (has alias registration function):
2573 // Missing alias registration function, just return from the function:
2581 llvm::Function *CGObjCGNU::GenerateMethod(const ObjCMethodDecl *OMD,
2596 llvm::Function *Method
2597 = llvm::Function::Create(MethodTy,
2646 // the personality function; this avoids the need for bracketing