Home
last modified time | relevance | path

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

12

/minix/external/bsd/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp137 TsanFuncEntry = checkInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
139 TsanFuncExit = checkInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
146 TsanRead[i] = checkInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
150 TsanWrite[i] = checkInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
193 TsanAtomicCAS[i] = checkInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
196 TsanVptrUpdate = checkInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
199 TsanVptrLoad = checkInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
206 MemmoveFn = checkInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
209 MemcpyFn = checkInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
212 MemsetFn = checkInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
[all …]
H A DSanitizerCoverage.cpp147 M.getOrInsertFunction(kSanCovName, VoidTy, Int32PtrTy, nullptr)); in runOnModule()
148 SanCovIndirCallFunction = checkInterfaceFunction(M.getOrInsertFunction( in runOnModule()
151 M.getOrInsertFunction(kSanCovModuleInitName, Type::getVoidTy(*C), in runOnModule()
161 M.getOrInsertFunction(kSanCovTraceEnter, VoidTy, Int32PtrTy, nullptr)); in runOnModule()
163 M.getOrInsertFunction(kSanCovTraceBB, VoidTy, Int32PtrTy, nullptr)); in runOnModule()
H A DAddressSanitizer.cpp1131 AsanPoisonGlobals = checkInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
1134 AsanUnpoisonGlobals = checkInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
1138 AsanRegisterGlobals = checkInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
1335 M.getOrInsertFunction(ClMemoryAccessCallbackPrefix + "loadN", in initializeCallbacks()
1338 M.getOrInsertFunction(ClMemoryAccessCallbackPrefix + "storeN", in initializeCallbacks()
1341 AsanMemmove = checkInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
1344 AsanMemcpy = checkInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
1347 AsanMemset = checkInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
1354 AsanPtrCmpFunction = checkInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
1356 AsanPtrSubFunction = checkInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
[all …]
H A DGCOVProfiling.cpp702 Constant *GCOVInit = M->getOrInsertFunction("llvm_gcov_init", FTy); in emitProfileArcs()
770 return M->getOrInsertFunction("llvm_gcda_start_file", FTy); in getStartFileFunc()
781 return M->getOrInsertFunction("__llvm_gcov_indirect_counter_increment", FTy); in getIncrementIndirectCounterFunc()
793 return M->getOrInsertFunction("llvm_gcda_emit_function", FTy); in getEmitFunctionFunc()
802 return M->getOrInsertFunction("llvm_gcda_emit_arcs", FTy); in getEmitArcsFunc()
807 return M->getOrInsertFunction("llvm_gcda_summary_info", FTy); in getSummaryInfoFunc()
812 return M->getOrInsertFunction("llvm_delete_writeout_function_list", FTy); in getDeleteWriteoutFunctionListFunc()
817 return M->getOrInsertFunction("llvm_delete_flush_function_list", FTy); in getDeleteFlushFunctionListFunc()
822 return M->getOrInsertFunction("llvm_gcda_end_file", FTy); in getEndFileFunc()
H A DDataFlowSanitizer.cpp563 Constant *C = Mod->getOrInsertFunction(FName, FTT); in getOrBuildTrampolineFunction()
614 DFSanUnionFn = Mod->getOrInsertFunction("__dfsan_union", DFSanUnionFnTy); in runOnModule()
622 DFSanCheckedUnionFn = Mod->getOrInsertFunction("dfsan_union", DFSanUnionFnTy); in runOnModule()
631 Mod->getOrInsertFunction("__dfsan_union_load", DFSanUnionLoadFnTy); in runOnModule()
638 Mod->getOrInsertFunction("__dfsan_unimplemented", DFSanUnimplementedFnTy); in runOnModule()
640 Mod->getOrInsertFunction("__dfsan_set_label", DFSanSetLabelFnTy); in runOnModule()
645 Mod->getOrInsertFunction("__dfsan_nonzero_label", DFSanNonzeroLabelFnTy); in runOnModule()
646 DFSanVarargWrapperFn = Mod->getOrInsertFunction("__dfsan_vararg_wrapper", in runOnModule()
1438 DFSF.DFS.Mod->getOrInsertFunction(CustomFName, CustomFT); in visitCallSite()
/minix/external/bsd/llvm/dist/llvm/lib/Transforms/Utils/
H A DBuildLibCalls.cpp48 Constant *StrLen = M->getOrInsertFunction("strlen", in EmitStrLen()
131 Value *StrNCmp = M->getOrInsertFunction("strncmp", in EmitStrNCmp()
161 Value *StrCpy = M->getOrInsertFunction(Name, in EmitStrCpy()
185 Value *StrNCpy = M->getOrInsertFunction(Name, in EmitStrNCpy()
239 Value *MemChr = M->getOrInsertFunction("memchr", in EmitMemChr()
269 Value *MemCmp = M->getOrInsertFunction("memcmp", in EmitMemCmp()
375 Value *PutS = M->getOrInsertFunction("puts", in EmitPutS()
400 F = M->getOrInsertFunction("fputc", in EmitFPutC()
406 F = M->getOrInsertFunction("fputc", in EmitFPutC()
435 F = M->getOrInsertFunction(FPutsName, in EmitFPutS()
[all …]
/minix/external/bsd/llvm/dist/llvm/lib/IR/
H A 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()
/minix/external/bsd/llvm/dist/llvm/lib/Target/R600/
H A 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()
H A DAMDGPUPromoteAlloca.cpp307 Value *ReadLocalSizeY = Mod->getOrInsertFunction( in visitAlloca()
309 Value *ReadLocalSizeZ = Mod->getOrInsertFunction( in visitAlloca()
311 Value *ReadTIDIGX = Mod->getOrInsertFunction( in visitAlloca()
313 Value *ReadTIDIGY = Mod->getOrInsertFunction( in visitAlloca()
315 Value *ReadTIDIGZ = Mod->getOrInsertFunction( in visitAlloca()
368 Constant *C = Mod->getOrInsertFunction(StringRef(F->getName().str() + ".local"), NewType, in visitAlloca()
/minix/external/bsd/llvm/dist/llvm/unittests/IR/
H A DVerifierTest.cpp28 Function *F = cast<Function>(M.getOrInsertFunction("foo", FTy)); in TEST()
51 Function *F = cast<Function>(M.getOrInsertFunction("foo", FTy)); in TEST()
/minix/external/bsd/llvm/dist/llvm/examples/HowToUseJIT/
H A DHowToUseJIT.cpp65 cast<Function>(M->getOrInsertFunction("add1", Type::getInt32Ty(Context), in main()
97 cast<Function>(M->getOrInsertFunction("foo", Type::getInt32Ty(Context), in main()
/minix/external/bsd/llvm/dist/llvm/lib/Transforms/ObjCARC/
H A DARCRuntimeEntryPoints.h138 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr); in getVoidRetI8XEntryPoint()
157 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr);
178 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr); in getI8XRetI8XXI8XEntryPoint()
/minix/external/bsd/llvm/dist/llvm/lib/Analysis/IPA/
H A 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
H A DCallGraphSCCPass.cpp298 CalleeNode = CG.getOrInsertFunction(Callee); in RefreshCallGraph()
322 CalleeNode = CG.getOrInsertFunction(Callee); in RefreshCallGraph()
/minix/external/bsd/llvm/dist/llvm/examples/BrainF/
H A 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()
H A DBrainFDriver.cpp61 getOrInsertFunction("main", IntegerType::getInt32Ty(mod->getContext()), in addMainFunction()
/minix/external/bsd/llvm/dist/llvm/include/llvm/IR/
H A DModule.h354 Constant *getOrInsertFunction(StringRef Name, FunctionType *T,
357 Constant *getOrInsertFunction(StringRef Name, FunctionType *T);
365 Constant *getOrInsertFunction(StringRef Name,
370 Constant *getOrInsertFunction(StringRef Name, Type *RetTy, ...)
/minix/external/bsd/llvm/dist/llvm/include/llvm/Analysis/
H A DCallGraph.h158 CallGraphNode *getOrInsertFunction(const Function *F);
374 CallGraphNode *getOrInsertFunction(const Function *F) { in getOrInsertFunction() function
375 return G->getOrInsertFunction(F); in getOrInsertFunction()
/minix/external/bsd/llvm/dist/llvm/lib/CodeGen/
H A 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()
H A DStackProtector.cpp486 M->getOrInsertFunction("__stack_smash_handler", in CreateFailBB()
493 M->getOrInsertFunction("__stack_chk_fail", Type::getVoidTy(Context), in CreateFailBB()
H A DDwarfEHPrepare.cpp133 RewindFunction = Fn.getParent()->getOrInsertFunction(RewindName, FTy); in InsertUnwindResumeCalls()
/minix/external/bsd/llvm/dist/llvm/unittests/Analysis/
H A DMixedTBAATest.cpp37 auto *F = cast<Function>(M.getOrInsertFunction("f", FTy)); in TEST_F()
/minix/external/bsd/llvm/dist/llvm/examples/ParallelJIT/
H A DParallelJIT.cpp37 cast<Function>(M->getOrInsertFunction("add1", in createAdd1()
68 cast<Function>(M->getOrInsertFunction("fib", in CreateFibFunction()
/minix/minix/llvm/passes/hello/
H A Dhello.cpp68 printfFunction = (Function *) M.getOrInsertFunction(printFuncName, printfFuncType); in runOnModule()
/minix/external/bsd/llvm/dist/llvm/examples/Fibonacci/
H A Dfibonacci.cpp42 cast<Function>(M->getOrInsertFunction("fib", Type::getInt32Ty(Context), in CreateFibFunction()

12