Lines Matching refs:Function
62 #include "llvm/Function.h"
100 // function to recycle the memory (which is used at compilation time and not
177 // This function converts a Constant* into a GenericValue. The interesting
562 const llvm::Function *F = static_cast<const llvm::Function*>(C);
564 GetPointerToFunctionOrStub(const_cast<llvm::Function*>(F));
667 // Recursive function to apply a @Constant value into the specified memory
831 llvm::Function *F = (llvm::Function*) V;
838 // Return the function stub if it's already created.
840 // we're returning the same address for the function as any
859 // If this is an external function pointer, we can force the JIT
884 // TODO(all): is there's any possibility that the function is not
887 static_cast<const llvm::Function*>(GV),
917 // If the specified function has been code-gen'd, return a pointer to the
918 // function. If not, compile it, or use a stub to implement lazy compilation
920 void *CodeEmitter::GetPointerToFunctionOrStub(llvm::Function *F) {
921 // If we have already code generated the function, just return the
931 void *CodeEmitter::GetLazyFunctionStub(llvm::Function *F) {
932 // If we already have a lazy stub for this function, recycle it.
937 // In any cases, we should NOT resolve function at runtime (though we are
947 // function, if it was resolved.
954 // JIT, not the address of the external function.
971 void *CodeEmitter::GetPointerToFunction(const llvm::Function *F,
978 "Internal error: only external defined function routes here!");
988 llvm::report_fatal_error("Could not resolve external function "
1113 // Return a stub for the function at the specified address.
1144 // This callback is invoked when the specified function is about to be code
1182 // About to start emitting the machine code for the function.
1193 // This callback is invoked when the specified function has finished code
1271 // Now that we've succeeded in emitting the function.
1276 // and other per-function data.
1281 // FnEnd is the end of the function's machine code.
1363 // longer than the current function.
1381 // Return the address of the jump table with index @Index in the function
1411 void CodeEmitter::updateFunctionStub(const llvm::Function *F) {
1414 std::set<const llvm::Function*>::iterator I = PendingFunctions.find(F);
1423 "Function must have non-stub address to be updated.");