Home
last modified time | relevance | path

Searched refs:NewFn (Results 1 – 16 of 16) sorted by relevance

/external/llvm/lib/IR/
DAutoUpgrade.cpp37 Function *&NewFn) { in UpgradeSSE41Function() argument
46 NewFn = Intrinsic::getDeclaration(F->getParent(), IID); in UpgradeSSE41Function()
53 Function *&NewFn) { in UpgradeX86IntrinsicsWith8BitMask() argument
62 NewFn = Intrinsic::getDeclaration(F->getParent(), IID); in UpgradeX86IntrinsicsWith8BitMask()
66 static bool UpgradeIntrinsicFunction1(Function *F, Function *&NewFn) { in UpgradeIntrinsicFunction1() argument
87 NewFn = Function::Create(fType, F->getLinkage(), in UpgradeIntrinsicFunction1()
92 NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::ctpop, in UpgradeIntrinsicFunction1()
103 NewFn = Function::Create(fType, F->getLinkage(), in UpgradeIntrinsicFunction1()
122 NewFn = Intrinsic::getDeclaration(F->getParent(), in UpgradeIntrinsicFunction1()
125 NewFn = Intrinsic::getDeclaration(F->getParent(), in UpgradeIntrinsicFunction1()
[all …]
/external/swiftshader/third_party/LLVM/lib/VMCore/
DAutoUpgrade.cpp32 static bool UpgradeIntrinsicFunction1(Function *F, Function *&NewFn) { in UpgradeIntrinsicFunction1() argument
73 NewFn = cast<Function>(M->getOrInsertFunction( in UpgradeIntrinsicFunction1()
99 NewFn = cast<Function>(M->getOrInsertFunction(NameTmp, in UpgradeIntrinsicFunction1()
126 NewFn = F; in UpgradeIntrinsicFunction1()
151 bool llvm::UpgradeIntrinsicFunction(Function *F, Function *&NewFn) { in UpgradeIntrinsicFunction() argument
152 NewFn = 0; in UpgradeIntrinsicFunction()
153 bool Upgraded = UpgradeIntrinsicFunction1(F, NewFn); in UpgradeIntrinsicFunction()
156 if (NewFn) in UpgradeIntrinsicFunction()
157 F = NewFn; in UpgradeIntrinsicFunction()
171 void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) { in UpgradeIntrinsicCall() argument
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DAutoUpgrade.cpp39 Function *&NewFn) { in UpgradePTESTIntrinsic() argument
48 NewFn = Intrinsic::getDeclaration(F->getParent(), IID); in UpgradePTESTIntrinsic()
55 Function *&NewFn) { in UpgradeX86IntrinsicsWith8BitMask() argument
64 NewFn = Intrinsic::getDeclaration(F->getParent(), IID); in UpgradeX86IntrinsicsWith8BitMask()
354 Function *&NewFn) { in UpgradeX86IntrinsicFunction() argument
362 NewFn = nullptr; in UpgradeX86IntrinsicFunction()
369 return UpgradePTESTIntrinsic(F, Intrinsic::x86_sse41_ptestc, NewFn); in UpgradeX86IntrinsicFunction()
371 return UpgradePTESTIntrinsic(F, Intrinsic::x86_sse41_ptestz, NewFn); in UpgradeX86IntrinsicFunction()
373 return UpgradePTESTIntrinsic(F, Intrinsic::x86_sse41_ptestnzc, NewFn); in UpgradeX86IntrinsicFunction()
379 NewFn); in UpgradeX86IntrinsicFunction()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/
DAutoUpgrade.h27 bool UpgradeIntrinsicFunction(Function *F, Function *&NewFn);
31 void UpgradeIntrinsicCall(CallInst *CI, Function *NewFn);
/external/llvm/include/llvm/IR/
DAutoUpgrade.h34 bool UpgradeIntrinsicFunction(Function *F, Function *&NewFn);
38 void UpgradeIntrinsicCall(CallInst *CI, Function *NewFn);
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DAutoUpgrade.h34 bool UpgradeIntrinsicFunction(Function *F, Function *&NewFn);
38 void UpgradeIntrinsicCall(CallInst *CI, Function *NewFn);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DFunctionImport.cpp888 Function *NewFn = CloneFunction(Fn, VMap); in replaceAliasWithAliasee() local
891 NewFn->setLinkage(GA->getLinkage()); in replaceAliasWithAliasee()
892 GA->replaceAllUsesWith(ConstantExpr::getBitCast(NewFn, GA->getType())); in replaceAliasWithAliasee()
893 NewFn->takeName(GA); in replaceAliasWithAliasee()
894 return NewFn; in replaceAliasWithAliasee()
/external/clang/lib/CodeGen/
DCGVTables.cpp159 llvm::Function *NewFn = llvm::CloneFunction(BaseFn, VMap); in GenerateVarArgsThunk() local
160 Fn->replaceAllUsesWith(NewFn); in GenerateVarArgsThunk()
161 NewFn->takeName(Fn); in GenerateVarArgsThunk()
163 Fn = NewFn; in GenerateVarArgsThunk()
DCodeGenModule.cpp1811 llvm::Function *NewFn);
2846 llvm::Function *NewFn) { in ReplaceUsesOfNonProtoTypeWithRealFunction() argument
2850 replaceUsesOfNonProtoConstant(Old, NewFn); in ReplaceUsesOfNonProtoTypeWithRealFunction()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DIntrinsicLowering.cpp65 static CallInst *ReplaceCallWith(const char *NewFn, CallInst *CI, in ReplaceCallWith() argument
75 Constant* FCache = M->getOrInsertFunction(NewFn, in ReplaceCallWith()
/external/llvm/lib/CodeGen/
DIntrinsicLowering.cpp65 static CallInst *ReplaceCallWith(const char *NewFn, CallInst *CI, in ReplaceCallWith() argument
75 Constant* FCache = M->getOrInsertFunction(NewFn, in ReplaceCallWith()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DIntrinsicLowering.cpp65 static CallInst *ReplaceCallWith(const char *NewFn, CallInst *CI, in ReplaceCallWith() argument
75 Constant* FCache = M->getOrInsertFunction(NewFn, in ReplaceCallWith()
/external/swiftshader/third_party/LLVM/lib/Bitcode/Reader/
DBitcodeReader.cpp1566 Function* NewFn; in ParseModule() local
1567 if (UpgradeIntrinsicFunction(FI, NewFn)) in ParseModule()
1568 UpgradedIntrinsics.push_back(std::make_pair(FI, NewFn)); in ParseModule()
/external/clang/lib/Sema/
DSemaOverload.cpp11256 ExprResult NewFn = ExprError(); in BuildRecoveryCallExpr() local
11258 NewFn = SemaRef.BuildPossibleImplicitMemberExpr(SS, TemplateKWLoc, R, in BuildRecoveryCallExpr()
11261 NewFn = SemaRef.BuildTemplateIdExpr(SS, TemplateKWLoc, R, false, in BuildRecoveryCallExpr()
11264 NewFn = SemaRef.BuildDeclarationNameExpr(SS, R, false); in BuildRecoveryCallExpr()
11266 if (NewFn.isInvalid()) in BuildRecoveryCallExpr()
11272 return SemaRef.ActOnCallExpr(/*Scope*/ nullptr, NewFn.get(), LParenLoc, in BuildRecoveryCallExpr()
12609 ExprResult NewFn = CreateFunctionRefExpr(*this, Method, Best->FoundDecl, in BuildCallToObjectOfClassType() local
12613 if (NewFn.isInvalid()) in BuildCallToObjectOfClassType()
12629 CXXOperatorCallExpr(Context, OO_Call, NewFn.get(), in BuildCallToObjectOfClassType()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp2741 Function *NewFn; in globalCleanup() local
2742 if (UpgradeIntrinsicFunction(&F, NewFn)) in globalCleanup()
2743 UpgradedIntrinsics[&F] = NewFn; in globalCleanup()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp3450 Function *NewFn; in globalCleanup() local
3451 if (UpgradeIntrinsicFunction(&F, NewFn)) in globalCleanup()
3452 UpgradedIntrinsics[&F] = NewFn; in globalCleanup()