Home
last modified time | relevance | path

Searched refs:getOrInsertFunction (Results 1 – 25 of 42) sorted by relevance

12

/external/llvm/lib/Transforms/Utils/
DBuildLibCalls.cpp48 Constant *StrLen = M->getOrInsertFunction( in EmitStrLen()
74 M->getOrInsertFunction("strnlen", AttributeSet::get(M->getContext(), AS), in EmitStrNLen()
99 Constant *StrChr = M->getOrInsertFunction("strchr", in EmitStrChr()
124 Value *StrNCmp = M->getOrInsertFunction( in EmitStrNCmp()
149 Value *StrCpy = M->getOrInsertFunction(Name, in EmitStrCpy()
172 Value *StrNCpy = M->getOrInsertFunction(Name, in EmitStrNCpy()
198 Value *MemCpy = M->getOrInsertFunction( in EmitMemCpyChk()
222 Value *MemChr = M->getOrInsertFunction( in EmitMemChr()
247 Value *MemCmp = M->getOrInsertFunction( in EmitMemCmp()
284 Value *Callee = M->getOrInsertFunction(Name, Op->getType(), in EmitUnaryFloatFnCall()
[all …]
/external/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp135 TsanFuncEntry = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
138 M.getOrInsertFunction("__tsan_func_exit", IRB.getVoidTy(), nullptr)); in initializeCallbacks()
144 TsanRead[i] = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
148 TsanWrite[i] = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
154 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
160 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
168 M.getOrInsertFunction(AtomicLoadName, Ty, PtrTy, OrdTy, nullptr)); in initializeCallbacks()
172 TsanAtomicStore[i] = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
197 M.getOrInsertFunction(RMWName, Ty, PtrTy, Ty, OrdTy, nullptr)); in initializeCallbacks()
202 TsanAtomicCAS[i] = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
[all …]
DSanitizerCoverage.cpp161 M.getOrInsertFunction(kSanCovName, VoidTy, Int32PtrTy, nullptr)); in runOnModule()
163 M.getOrInsertFunction(kSanCovWithCheckName, VoidTy, Int32PtrTy, nullptr)); in runOnModule()
165 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in runOnModule()
168 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in runOnModule()
171 SanCovModuleInit = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in runOnModule()
182 M.getOrInsertFunction(kSanCovTraceEnter, VoidTy, Int32PtrTy, nullptr)); in runOnModule()
184 M.getOrInsertFunction(kSanCovTraceBB, VoidTy, Int32PtrTy, nullptr)); in runOnModule()
DAddressSanitizer.cpp1219 AsanPoisonGlobals = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
1222 AsanUnpoisonGlobals = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
1226 AsanRegisterGlobals = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
1230 M.getOrInsertFunction(kAsanUnregisterGlobalsName, IRB.getVoidTy(), in initializeCallbacks()
1399 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
1403 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
1410 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
1414 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
1421 AsanMemmove = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
1424 AsanMemcpy = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
[all …]
DGCOVProfiling.cpp689 Constant *GCOVInit = M->getOrInsertFunction("llvm_gcov_init", FTy); in emitProfileArcs()
757 return M->getOrInsertFunction("llvm_gcda_start_file", FTy); in getStartFileFunc()
768 return M->getOrInsertFunction("__llvm_gcov_indirect_counter_increment", FTy); in getIncrementIndirectCounterFunc()
780 return M->getOrInsertFunction("llvm_gcda_emit_function", FTy); in getEmitFunctionFunc()
789 return M->getOrInsertFunction("llvm_gcda_emit_arcs", FTy); in getEmitArcsFunc()
794 return M->getOrInsertFunction("llvm_gcda_summary_info", FTy); in getSummaryInfoFunc()
799 return M->getOrInsertFunction("llvm_delete_writeout_function_list", FTy); in getDeleteWriteoutFunctionListFunc()
804 return M->getOrInsertFunction("llvm_delete_flush_function_list", FTy); in getDeleteFlushFunctionListFunc()
809 return M->getOrInsertFunction("llvm_gcda_end_file", FTy); in getEndFileFunc()
DDataFlowSanitizer.cpp561 Constant *C = Mod->getOrInsertFunction(FName, FTT); in getOrBuildTrampolineFunction()
609 DFSanUnionFn = Mod->getOrInsertFunction("__dfsan_union", DFSanUnionFnTy); in runOnModule()
617 DFSanCheckedUnionFn = Mod->getOrInsertFunction("dfsan_union", DFSanUnionFnTy); in runOnModule()
626 Mod->getOrInsertFunction("__dfsan_union_load", DFSanUnionLoadFnTy); in runOnModule()
633 Mod->getOrInsertFunction("__dfsan_unimplemented", DFSanUnimplementedFnTy); in runOnModule()
635 Mod->getOrInsertFunction("__dfsan_set_label", DFSanSetLabelFnTy); in runOnModule()
640 Mod->getOrInsertFunction("__dfsan_nonzero_label", DFSanNonzeroLabelFnTy); in runOnModule()
641 DFSanVarargWrapperFn = Mod->getOrInsertFunction("__dfsan_vararg_wrapper", in runOnModule()
1437 DFSF.DFS.Mod->getOrInsertFunction(CustomFName, CustomFT); in visitCallSite()
/external/llvm/lib/Target/R600/
DSIAnnotateControlFlow.cpp131 If = M.getOrInsertFunction( in doInitialization()
134 Else = M.getOrInsertFunction( in doInitialization()
137 Break = M.getOrInsertFunction( in doInitialization()
140 IfBreak = M.getOrInsertFunction( in doInitialization()
143 ElseBreak = M.getOrInsertFunction( in doInitialization()
146 Loop = M.getOrInsertFunction( in doInitialization()
149 EndCf = M.getOrInsertFunction( in doInitialization()
DAMDGPUPromoteAlloca.cpp308 Value *ReadLocalSizeY = Mod->getOrInsertFunction( in visitAlloca()
310 Value *ReadLocalSizeZ = Mod->getOrInsertFunction( in visitAlloca()
312 Value *ReadTIDIGX = Mod->getOrInsertFunction( in visitAlloca()
314 Value *ReadTIDIGY = Mod->getOrInsertFunction( in visitAlloca()
316 Value *ReadTIDIGZ = Mod->getOrInsertFunction( in visitAlloca()
369 Constant *C = Mod->getOrInsertFunction((F->getName() + ".local").str(), in visitAlloca()
/external/llvm/lib/IR/
DModule.cpp115 Constant *Module::getOrInsertFunction(StringRef Name, in getOrInsertFunction() function in Module
138 Constant *Module::getOrInsertFunction(StringRef Name, in getOrInsertFunction() function in Module
140 return getOrInsertFunction(Name, Ty, AttributeSet()); in getOrInsertFunction()
148 Constant *Module::getOrInsertFunction(StringRef Name, in getOrInsertFunction() function in Module
162 return getOrInsertFunction(Name, in getOrInsertFunction()
167 Constant *Module::getOrInsertFunction(StringRef Name, in getOrInsertFunction() function in Module
180 return getOrInsertFunction(Name, in getOrInsertFunction()
/external/llvm/lib/Transforms/ObjCARC/
DARCRuntimeEntryPoints.h136 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr); in getVoidRetI8XEntryPoint()
155 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr);
176 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr); in getI8XRetI8XXI8XEntryPoint()
/external/llvm/lib/Analysis/IPA/
DCallGraph.cpp24 : M(M), Root(nullptr), ExternalCallingNode(getOrInsertFunction(nullptr)), in CallGraph()
53 CallGraphNode *Node = getOrInsertFunction(F); in addToCallGraph()
88 Node->addCalledFunction(CS, getOrInsertFunction(Callee)); in addToCallGraph()
144 CallGraphNode *CallGraph::getOrInsertFunction(const Function *F) { in getOrInsertFunction() function in CallGraph
DCallGraphSCCPass.cpp299 CalleeNode = CG.getOrInsertFunction(Callee); in RefreshCallGraph()
323 CalleeNode = CG.getOrInsertFunction(Callee); in RefreshCallGraph()
/external/llvm/unittests/IR/
DVerifierTest.cpp28 Function *F = cast<Function>(M.getOrInsertFunction("foo", FTy)); in TEST()
51 Function *F = cast<Function>(M.getOrInsertFunction("foo", FTy)); in TEST()
/external/llvm/examples/HowToUseJIT/
DHowToUseJIT.cpp66 cast<Function>(M->getOrInsertFunction("add1", Type::getInt32Ty(Context), in main()
98 cast<Function>(M->getOrInsertFunction("foo", Type::getInt32Ty(Context), in main()
/external/llvm/examples/BrainF/
DBrainF.cpp64 getOrInsertFunction("getchar", IntegerType::getInt32Ty(C), NULL)); in header()
68 getOrInsertFunction("putchar", IntegerType::getInt32Ty(C), in header()
76 getOrInsertFunction("brainf", Type::getVoidTy(C), NULL)); in header()
150 getOrInsertFunction("puts", IntegerType::getInt32Ty(C), in header()
DBrainFDriver.cpp61 getOrInsertFunction("main", IntegerType::getInt32Ty(mod->getContext()), in addMainFunction()
/external/llvm/include/llvm/IR/
DModule.h350 Constant *getOrInsertFunction(StringRef Name, FunctionType *T,
353 Constant *getOrInsertFunction(StringRef Name, FunctionType *T);
361 Constant *getOrInsertFunction(StringRef Name,
366 Constant *getOrInsertFunction(StringRef Name, Type *RetTy, ...)
/external/llvm/include/llvm/Analysis/
DCallGraph.h158 CallGraphNode *getOrInsertFunction(const Function *F);
374 CallGraphNode *getOrInsertFunction(const Function *F) { in getOrInsertFunction() function
375 return G->getOrInsertFunction(F); in getOrInsertFunction()
/external/llvm/lib/CodeGen/
DIntrinsicLowering.cpp35 M.getOrInsertFunction(Name, FunctionType::get(RetTy, ParamTys, false)); in EnsureFunctionExists()
75 Constant* FCache = M->getOrInsertFunction(NewFn, in ReplaceCallWith()
114 M.getOrInsertFunction("memcpy", in AddPrototypes()
121 M.getOrInsertFunction("memmove", in AddPrototypes()
128 M.getOrInsertFunction("memset", in AddPrototypes()
DStackProtector.cpp482 M->getOrInsertFunction("__stack_smash_handler", in CreateFailBB()
489 M->getOrInsertFunction("__stack_chk_fail", Type::getVoidTy(Context), in CreateFailBB()
/external/llvm/examples/ParallelJIT/
DParallelJIT.cpp38 cast<Function>(M->getOrInsertFunction("add1", in createAdd1()
69 cast<Function>(M->getOrInsertFunction("fib", in CreateFibFunction()
/external/llvm/unittests/Analysis/
DMixedTBAATest.cpp37 auto *F = cast<Function>(M.getOrInsertFunction("f", FTy)); in TEST_F()
DAliasAnalysisTest.cpp74 auto *F = cast<Function>(M.getOrInsertFunction("f", FTy)); in TEST_F()
/external/llvm/examples/Fibonacci/
Dfibonacci.cpp42 cast<Function>(M->getOrInsertFunction("fib", Type::getInt32Ty(Context), in CreateFibFunction()
/external/mesa3d/src/gallium/drivers/radeon/
DAMDILPeepholeOptimizer.cpp371 F->getParent()->getOrInsertFunction(buffer, F->getFunctionType())); in optimizeCallInst()
662 getOrInsertFunction(llvm::StringRef(name), funcType)); in optimizeBitInsert()
827 getOrInsertFunction(llvm::StringRef(name), funcType)); in optimizeBitExtract()
1023 getOrInsertFunction(llvm::StringRef(name), funcType)); in expandSigned24BitOps()
1055 getOrInsertFunction(llvm::StringRef(name), funcType)); in expandSigned24BitOps()

12