Home | History | Annotate | Download | only in VMCore

Lines Matching refs:Function

16 #include "llvm/Function.h"
32 static bool UpgradeIntrinsicFunction1(Function *F, Function *&NewFn) {
33 assert(F && "Illegal to upgrade a non-existent Function.");
73 NewFn = cast<Function>(M->getOrInsertFunction(
96 // and typed function below.
99 NewFn = cast<Function>(M->getOrInsertFunction(NameTmp,
144 // This may not belong here. This function is effectively being overloaded
151 bool llvm::UpgradeIntrinsicFunction(Function *F, Function *&NewFn) {
155 // Upgrade intrinsic attributes. This does not change the function.
171 void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) {
172 Function *F = CI->getCalledFunction();
176 assert(F && "CallInst has no function associated with it.");
301 llvm_unreachable("Unknown function for CallInst upgrade.");
338 Function *AdjustTrampolineFn =
339 cast<Function>(Intrinsic::getDeclaration(F->getParent(),
359 // This tests each Function to determine if it needs upgrading. When we find
361 // function.
362 void llvm::UpgradeCallsToIntrinsic(Function* F) {
365 // Upgrade the function and check if it is a totaly new function.
366 Function *NewFn;
369 // Replace all uses to the old function with the new one if necessary.
375 // Remove old function, no longer used, from the module.
381 /// This function strips all debug info intrinsics, except for llvm.dbg.declare.
382 /// If an llvm.dbg.declare intrinsic is invalid, then this function simply
385 if (Function *FuncStart = M->getFunction("llvm.dbg.func.start")) {
391 if (Function *StopPoint = M->getFunction("llvm.dbg.stoppoint")) {
397 if (Function *RegionStart = M->getFunction("llvm.dbg.region.start")) {
403 if (Function *RegionEnd = M->getFunction("llvm.dbg.region.end")) {
409 if (Function *Declare = M->getFunction("llvm.dbg.declare")) {
514 /// This function upgrades the old pre-3.0 exception handling system to the new
517 Function *EHException = M->getFunction("llvm.eh.exception");
518 Function *EHSelector = M->getFunction("llvm.eh.selector");
532 Function &F = *I;
534 for (Function::iterator
552 // stored within a function.
553 DenseMap<Function*, std::pair<Value*, Value*> > FnToLPadSlotMap;
560 Function *F = UnwindDest->getParent();
644 Function *EHResume = M->getFunction("llvm.eh.resume");