Lines Matching refs:Function
100 const ThunkInfo &Thunk, llvm::Function *Fn) {
106 // If the thunk has weak/linkonce linkage, but the function must be
109 // emitted when the function is.
199 // This function does roughly the same thing as GenerateThunk, but in a
201 // FIXME: This function assumes "this" is the first non-sret LLVM argument of
202 // a function, and that there is an alloca built in the entry block
204 // FIXME: This function assumes there is only one "ret" statement per function.
207 // function definition. There are alternatives:
216 llvm::Function *Fn,
223 // Get the original function
227 llvm::Function *BaseFn = cast<llvm::Function>(Callee);
231 llvm::Function *NewFn = llvm::CloneFunction(BaseFn, VMap,
243 llvm::Function::arg_iterator AI = Fn->arg_begin();
271 for (llvm::Function::iterator I = Fn->begin(), E = Fn->end(); I != E; I++) {
285 void CodeGenFunction::GenerateThunk(llvm::Function *Fn,
412 // Remove the name from the old thunk function and get a new thunk.
427 llvm::Function *ThunkFn = cast<llvm::Function>(Entry);
431 // There is already a thunk emitted for this function, do nothing.
435 // If a function has a body, it should have available_externally linkage.
437 "Function should have available_externally linkage!");
562 // We have a pure virtual member function.
726 // function is fully correct.
728 // If this class has a key function, use that to determine the
738 // even if the key function is not defined in the current translation
746 llvm::Function::InternalLinkage;
753 llvm::Function::InternalLinkage;
758 llvm::Function::InternalLinkage;
763 llvm::Function::InternalLinkage;
770 return llvm::Function::InternalLinkage;
797 /// because the translation unit defines the key function
862 // Otherwise, if the class doesn't have a key function (possibly
868 // Otherwise, if we don't have a definition of the key function, the
879 // since that allows for virtual function calls to be devirtualized.