Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:Function

53   // allows for virtual function calls to be devirtualized.
123 const ThunkInfo &Thunk, llvm::Function *Fn) {
129 // If the thunk has weak/linkonce linkage, but the function must be
132 // emitted when the function is.
222 // This function does roughly the same thing as GenerateThunk, but in a
224 // FIXME: This function assumes "this" is the first non-sret LLVM argument of
225 // a function, and that there is an alloca built in the entry block
227 // FIXME: This function assumes there is only one "ret" statement per function.
230 // function definition. There are alternatives:
239 llvm::Function *Fn,
246 // Get the original function
250 llvm::Function *BaseFn = cast<llvm::Function>(Callee);
253 llvm::Function *NewFn = llvm::CloneFunction(BaseFn);
264 llvm::Function::arg_iterator AI = Fn->arg_begin();
291 for (llvm::Function::iterator I = Fn->begin(), E = Fn->end(); I != E; I++) {
305 void CodeGenFunction::GenerateThunk(llvm::Function *Fn,
423 // Remove the name from the old thunk function and get a new thunk.
438 llvm::Function *ThunkFn = cast<llvm::Function>(Entry);
442 // There is already a thunk emitted for this function, do nothing.
446 // If a function
448 "Function should have available_externally linkage!");
571 // We have a pure virtual member function.