Home | History | Annotate | Download | only in IR

Lines Matching refs:Function

16 #include "llvm/IR/Function.h"
30 static bool UpgradeSSE41Function(Function* F, Intrinsic::ID IID,
31 Function *&NewFn) {
32 // Check whether this is an old version of the function, which received
44 static bool UpgradeIntrinsicFunction1(Function *F, Function *&NewFn) {
45 assert(F && "Illegal to upgrade a non-existent Function.");
65 NewFn = Function::Create(fType, F->getLinkage(),
136 // This may not belong here. This function is effectively being overloaded
143 bool llvm::UpgradeIntrinsicFunction(Function *F, Function *&NewFn) {
147 // Upgrade intrinsic attributes. This does not change the function.
164 void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) {
165 Function *F = CI->getCalledFunction();
173 // Get the Function's name.
257 Function *VPCOM = Intrinsic::getDeclaration(F->getParent(), intID);
291 llvm_unreachable("Unexpected function");
295 llvm_unreachable("Unknown function for CallInst upgrade.");
309 llvm_unreachable("Unknown function for CallInst upgrade.");
314 "Mismatch between function args and call args");
372 // This tests each Function to determine if it needs upgrading. When we find
374 // function.
375 void llvm::UpgradeCallsToIntrinsic(Function* F) {
378 // Upgrade the function and check if it is a totaly new function.
379 Function *NewFn;
382 // Replace all uses to the old function with the new one if necessary.
388 // Remove old function, no longer used, from the module.