/external/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 33 Function *&NewFn) { in UpgradeSSE41Function() argument 42 NewFn = Intrinsic::getDeclaration(F->getParent(), IID); in UpgradeSSE41Function() 46 static bool UpgradeIntrinsicFunction1(Function *F, Function *&NewFn) { in UpgradeIntrinsicFunction1() argument 67 NewFn = Function::Create(fType, F->getLinkage(), in UpgradeIntrinsicFunction1() 72 NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::ctpop, in UpgradeIntrinsicFunction1() 81 NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::ctlz, in UpgradeIntrinsicFunction1() 87 NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::cttz, in UpgradeIntrinsicFunction1() 100 NewFn = Intrinsic::getDeclaration(F->getParent(), in UpgradeIntrinsicFunction1() 121 NewFn = nullptr; in UpgradeIntrinsicFunction1() 127 return UpgradeSSE41Function(F, Intrinsic::x86_sse41_ptestc, NewFn); in UpgradeIntrinsicFunction1() [all …]
|
/external/llvm/include/llvm/IR/ |
D | AutoUpgrade.h | 33 bool UpgradeIntrinsicFunction(Function *F, Function *&NewFn); 37 void UpgradeIntrinsicCall(CallInst *CI, Function *NewFn);
|
/external/clang/lib/CodeGen/ |
D | CGVTables.cpp | 142 llvm::Function *NewFn = llvm::CloneFunction(BaseFn, VMap, in GenerateVarArgsThunk() local 144 CGM.getModule().getFunctionList().push_back(NewFn); in GenerateVarArgsThunk() 145 Fn->replaceAllUsesWith(NewFn); in GenerateVarArgsThunk() 146 NewFn->takeName(Fn); in GenerateVarArgsThunk() 148 Fn = NewFn; in GenerateVarArgsThunk()
|
D | CodeGenModule.cpp | 2229 llvm::Function *NewFn) { in ReplaceUsesOfNonProtoTypeWithRealFunction() argument 2233 replaceUsesOfNonProtoConstant(Old, NewFn); in ReplaceUsesOfNonProtoTypeWithRealFunction() 2286 auto *NewFn = cast<llvm::Function>(GetAddrOfFunction(GD, Ty)); in EmitGlobalFunctionDefinition() local 2296 ReplaceUsesOfNonProtoTypeWithRealFunction(GV, NewFn); in EmitGlobalFunctionDefinition() 2303 llvm::ConstantExpr::getBitCast(NewFn, GV->getType()); in EmitGlobalFunctionDefinition() 2310 GV = NewFn; in EmitGlobalFunctionDefinition()
|
/external/llvm/lib/CodeGen/ |
D | IntrinsicLowering.cpp | 65 static CallInst *ReplaceCallWith(const char *NewFn, CallInst *CI, in ReplaceCallWith() argument 75 Constant* FCache = M->getOrInsertFunction(NewFn, in ReplaceCallWith()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | MemorySanitizer.cpp | 685 Value *NewFn = IRB.CreateBitCast( in materializeIndirectCalls() local 689 NewFnPhi->addIncoming(NewFn, dyn_cast<Instruction>(NewFn)->getParent()); in materializeIndirectCalls() 692 Value *NewFn = IRB.CreateBitCast( in materializeIndirectCalls() local 694 CS.setCalledFunction(NewFn); in materializeIndirectCalls()
|
/external/clang/lib/Sema/ |
D | SemaOverload.cpp | 10477 ExprResult NewFn = ExprError(); in BuildRecoveryCallExpr() local 10479 NewFn = SemaRef.BuildPossibleImplicitMemberExpr(SS, TemplateKWLoc, in BuildRecoveryCallExpr() 10482 NewFn = SemaRef.BuildTemplateIdExpr(SS, TemplateKWLoc, R, false, in BuildRecoveryCallExpr() 10485 NewFn = SemaRef.BuildDeclarationNameExpr(SS, R, false); in BuildRecoveryCallExpr() 10487 if (NewFn.isInvalid()) in BuildRecoveryCallExpr() 10493 return SemaRef.ActOnCallExpr(/*Scope*/ nullptr, NewFn.get(), LParenLoc, in BuildRecoveryCallExpr() 11745 ExprResult NewFn = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildCallToObjectOfClassType() local 11749 if (NewFn.isInvalid()) in BuildCallToObjectOfClassType() 11765 CXXOperatorCallExpr(Context, OO_Call, NewFn.get(), in BuildCallToObjectOfClassType()
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 1682 Function *NewFn; in GlobalCleanup() local 1683 if (UpgradeIntrinsicFunction(FI, NewFn)) in GlobalCleanup() 1684 UpgradedIntrinsics.push_back(std::make_pair(FI, NewFn)); in GlobalCleanup()
|