| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | ThreadSanitizer.cpp | 208 TsanFuncEntry = M.getOrInsertFunction("__tsan_func_entry", Attr, in initialize() 211 M.getOrInsertFunction("__tsan_func_exit", Attr, IRB.getVoidTy()); in initialize() 212 TsanIgnoreBegin = M.getOrInsertFunction("__tsan_ignore_thread_begin", Attr, in initialize() 215 M.getOrInsertFunction("__tsan_ignore_thread_end", Attr, IRB.getVoidTy()); in initialize() 223 TsanRead[i] = M.getOrInsertFunction(ReadName, Attr, IRB.getVoidTy(), in initialize() 227 TsanWrite[i] = M.getOrInsertFunction(WriteName, Attr, IRB.getVoidTy(), in initialize() 231 TsanUnalignedRead[i] = M.getOrInsertFunction( in initialize() 235 TsanUnalignedWrite[i] = M.getOrInsertFunction( in initialize() 239 TsanVolatileRead[i] = M.getOrInsertFunction( in initialize() 243 TsanVolatileWrite[i] = M.getOrInsertFunction( in initialize() [all …]
|
| H A D | SanitizerCoverage.cpp | 433 M.getOrInsertFunction(SanCovTracePCIndirName, VoidTy, IntptrTy); in instrumentModule() 443 M.getOrInsertFunction(SanCovTraceCmp1, SanCovTraceCmpZeroExtAL, VoidTy, in instrumentModule() 446 M.getOrInsertFunction(SanCovTraceCmp2, SanCovTraceCmpZeroExtAL, VoidTy, in instrumentModule() 449 M.getOrInsertFunction(SanCovTraceCmp4, SanCovTraceCmpZeroExtAL, VoidTy, in instrumentModule() 452 M.getOrInsertFunction(SanCovTraceCmp8, VoidTy, Int64Ty, Int64Ty); in instrumentModule() 454 SanCovTraceConstCmpFunction[0] = M.getOrInsertFunction( in instrumentModule() 456 SanCovTraceConstCmpFunction[1] = M.getOrInsertFunction( in instrumentModule() 458 SanCovTraceConstCmpFunction[2] = M.getOrInsertFunction( in instrumentModule() 461 M.getOrInsertFunction(SanCovTraceConstCmp8, VoidTy, Int64Ty, Int64Ty); in instrumentModule() 464 SanCovLoadFunction[0] = M.getOrInsertFunction(SanCovLoad1, VoidTy, PtrTy); in instrumentModule() [all …]
|
| H A D | AddressSanitizer.cpp | 1882 auto Ballot = M.getOrInsertFunction(kAMDGPUBallotName, IRB.getInt64Ty(), in genAMDGPUReportBlock() 1898 M.getOrInsertFunction(kAMDGPUUnreachableName, IRB.getVoidTy()), {}); in genAMDGPUReportBlock() 2265 M.getOrInsertFunction(kAsanPoisonGlobalsName, IRB.getVoidTy(), IntptrTy); in initializeCallbacks() 2267 M.getOrInsertFunction(kAsanUnpoisonGlobalsName, IRB.getVoidTy()); in initializeCallbacks() 2270 AsanRegisterGlobals = M.getOrInsertFunction( in initializeCallbacks() 2272 AsanUnregisterGlobals = M.getOrInsertFunction( in initializeCallbacks() 2277 AsanRegisterImageGlobals = M.getOrInsertFunction( in initializeCallbacks() 2279 AsanUnregisterImageGlobals = M.getOrInsertFunction( in initializeCallbacks() 2283 M.getOrInsertFunction(kAsanRegisterElfGlobalsName, IRB.getVoidTy(), in initializeCallbacks() 2286 M.getOrInsertFunction(kAsanUnregisterElfGlobalsName, IRB.getVoidTy(), in initializeCallbacks() [all …]
|
| H A D | PGOCtxProfLowering.cpp | 181 M.getOrInsertFunction( in CtxInstrumentationLowerer() 190 M.getOrInsertFunction(CompilerRtAPINames::GetCtx, in CtxInstrumentationLowerer() 200 M.getOrInsertFunction(CompilerRtAPINames::ReleaseCtx, in CtxInstrumentationLowerer()
|
| H A D | HWAddressSanitizer.cpp | 737 HwasanMemoryAccessCallbackSized[AccessIsWrite] = M.getOrInsertFunction( in initializeCallbacks() 744 M.getOrInsertFunction(ClMemoryAccessCallbackPrefix + TypeStr + in initializeCallbacks() 756 HwasanMemmove = M.getOrInsertFunction( in initializeCallbacks() 758 HwasanMemcpy = M.getOrInsertFunction( in initializeCallbacks() 760 HwasanMemset = M.getOrInsertFunction( in initializeCallbacks() 763 HwasanTagMemoryFunc = M.getOrInsertFunction("__hwasan_tag_memory", VoidTy, in initializeCallbacks() 766 M.getOrInsertFunction("__hwasan_generate_tag", Int8Ty); in initializeCallbacks() 769 M.getOrInsertFunction("__hwasan_add_frame_record", VoidTy, Int64Ty); in initializeCallbacks() 775 M.getOrInsertFunction("__hwasan_handle_vfork", VoidTy, IntptrTy); in initializeCallbacks() 1832 FunctionCallee HwasanPersonalityWrapper = M.getOrInsertFunction( in instrumentPersonalityFunctions() [all …]
|
| H A D | DataFlowSanitizer.cpp | 1340 Mod->getOrInsertFunction("__dfsan_union_load", DFSanUnionLoadFnTy, AL); in initializeRuntimeFunctions() 1348 DFSanLoadLabelAndOriginFn = Mod->getOrInsertFunction( in initializeRuntimeFunctions() 1352 Mod->getOrInsertFunction("__dfsan_unimplemented", DFSanUnimplementedFnTy); in initializeRuntimeFunctions() 1353 DFSanWrapperExternWeakNullFn = Mod->getOrInsertFunction( in initializeRuntimeFunctions() 1360 Mod->getOrInsertFunction("__dfsan_set_label", DFSanSetLabelFnTy, AL); in initializeRuntimeFunctions() 1363 Mod->getOrInsertFunction("__dfsan_nonzero_label", DFSanNonzeroLabelFnTy); in initializeRuntimeFunctions() 1364 DFSanVarargWrapperFn = Mod->getOrInsertFunction("__dfsan_vararg_wrapper", in initializeRuntimeFunctions() 1370 DFSanChainOriginFn = Mod->getOrInsertFunction("__dfsan_chain_origin", in initializeRuntimeFunctions() 1378 DFSanChainOriginIfTaintedFn = Mod->getOrInsertFunction( in initializeRuntimeFunctions() 1381 DFSanMemOriginTransferFn = Mod->getOrInsertFunction( in initializeRuntimeFunctions() [all …]
|
| H A D | GCOVProfiling.cpp | 638 FunctionCallee GCOVFork = M->getOrInsertFunction( in AddFlushBeforeForkAndExec() 667 M->getOrInsertFunction("llvm_writeout_files", FTy); in AddFlushBeforeForkAndExec() 674 FunctionCallee ResetF = M->getOrInsertFunction("llvm_reset_counters", FTy); in AddFlushBeforeForkAndExec() 1008 FunctionCallee GCOVInit = M->getOrInsertFunction("llvm_gcov_init", FTy); in emitGlobalConstructor() 1056 return M->getOrInsertFunction("llvm_gcda_start_file", FTy, in getStartFileFunc() 1067 return M->getOrInsertFunction("llvm_gcda_emit_function", FTy, in getEmitFunctionFunc() 1077 return M->getOrInsertFunction("llvm_gcda_emit_arcs", FTy, in getEmitArcsFunc() 1083 return M->getOrInsertFunction("llvm_gcda_summary_info", FTy); in getSummaryInfoFunc() 1088 return M->getOrInsertFunction("llvm_gcda_end_file", FTy); in getEndFileFunc()
|
| H A D | MemProfInstrumentation.cpp | 555 MemProfMemoryAccessCallback[AccessIsWrite] = M.getOrInsertFunction( in initializeCallbacks() 559 MemProfMemmove = M.getOrInsertFunction( in initializeCallbacks() 561 MemProfMemcpy = M.getOrInsertFunction(ClMemoryAccessCallbackPrefix + "memcpy", in initializeCallbacks() 564 M.getOrInsertFunction(ClMemoryAccessCallbackPrefix + "memset", PtrTy, in initializeCallbacks()
|
| H A D | RealtimeSanitizer.cpp | 44 Fn.getParent()->getOrInsertFunction(FunctionName, FuncType); in insertCallBeforeInstruction()
|
| H A D | NumericalStabilitySanitizer.cpp | 517 M.getOrInsertFunction(Fallback, Attr, VoidTy, PtrTy, PtrTy, IntptrTy)); in NsanMemOpFn() 521 M.getOrInsertFunction(Fallback, Attr, VoidTy, PtrTy, IntptrTy)); in NsanMemOpFn() 528 Funcs.push_back(M.getOrInsertFunction(Sized[i], SizedFnTy, Attr)); in NsanMemOpFn() 678 NsanGetShadowPtrForStore[VT] = M.getOrInsertFunction( 680 NsanGetShadowPtrForLoad[VT] = M.getOrInsertFunction( 687 M.getOrInsertFunction(std::string("__nsan_internal_check_") + VTName + 690 NsanFCmpFail[VT] = M.getOrInsertFunction( 697 NsanGetRawShadowTypePtr = M.getOrInsertFunction( 699 NsanGetRawShadowPtr = M.getOrInsertFunction(
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | CallGraph.cpp | 32 : M(M), ExternalCallingNode(getOrInsertFunction(nullptr)), in CallGraph() 74 CallGraphNode *Node = getOrInsertFunction(F); in addToCallGraph() 103 Node->addCalledFunction(Call, getOrInsertFunction(Callee)); in populateCallGraphNode() 107 Node->addCalledFunction(nullptr, getOrInsertFunction(CB)); in populateCallGraphNode() 158 CallGraphNode *CallGraph::getOrInsertFunction(const Function *F) { in getOrInsertFunction() function in CallGraph 227 OldCBs.push_back(CG->getOrInsertFunction(CB)); in replaceCallEdge() 230 NewCBs.push_back(CG->getOrInsertFunction(CB)); in replaceCallEdge()
|
| H A D | CallGraphSCCPass.cpp | 314 CGN->addCalledFunction(nullptr, CG.getOrInsertFunction(CB)); in RefreshCallGraph() 348 CalleeNode = CG.getOrInsertFunction(Callee); in RefreshCallGraph() 372 CalleeNode = CG.getOrInsertFunction(Callee); in RefreshCallGraph()
|
| /freebsd/contrib/llvm-project/llvm/lib/Frontend/Offloading/ |
| H A D | OffloadWrapper.cpp | 202 M.getOrInsertFunction("__tgt_unregister_lib", UnRegFuncTy); in createUnregisterFunction() 224 M.getOrInsertFunction("__tgt_register_lib", RegFuncTy); in createRegisterFunction() 228 FunctionCallee AtExit = M.getOrInsertFunction("atexit", AtExitTy); in createRegisterFunction() 347 FunctionCallee RegFunc = M.getOrInsertFunction( in createRegisterGlobalsFunction() 356 FunctionCallee RegVar = M.getOrInsertFunction( in createRegisterGlobalsFunction() 365 FunctionCallee RegManagedVar = M.getOrInsertFunction( in createRegisterGlobalsFunction() 375 FunctionCallee RegSurface = M.getOrInsertFunction( in createRegisterGlobalsFunction() 384 FunctionCallee RegTexture = M.getOrInsertFunction( in createRegisterGlobalsFunction() 570 FunctionCallee RegFatbin = M.getOrInsertFunction( in createRegisterFatbinFunction() 576 M.getOrInsertFunction("__cudaRegisterFatBinaryEnd", RegFatEndTy); in createRegisterFatbinFunction() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | EntryExitInstrumenter.cpp | 46 M.getOrInsertFunction(Func, in insertCall() 61 FunctionCallee Fn = M.getOrInsertFunction( in insertCall() 72 FunctionCallee Fn = M.getOrInsertFunction(Func, Type::getVoidTy(C)); in insertCall() 82 FunctionCallee Fn = M.getOrInsertFunction( in insertCall()
|
| H A D | SanitizerStats.cpp | 59 M->getOrInsertFunction("__sanitizer_stat_report", StatReportTy); in create() 99 M->getOrInsertFunction("__sanitizer_stat_init", StatInitTy); in finish()
|
| H A D | DeclareRuntimeLibcalls.cpp | 34 M.getOrInsertFunction(FuncName, FuncTy); in run()
|
| H A D | AMDGPUEmitPrintf.cpp | 57 auto Fn = M->getOrInsertFunction("__ockl_printf_begin", Int64Ty, Int64Ty); in callPrintfBegin() 68 auto Fn = M->getOrInsertFunction("__ockl_printf_append_args", Int64Ty, in callAppendArgs() 159 auto Fn = M->getOrInsertFunction("__ockl_printf_append_string_n", Int64Ty, in callAppendStringN() 304 M->getOrInsertFunction(StringRef("__printf_alloc"), FTy_alloc, Attr); in callBufferedPrintfStart()
|
| H A D | EscapeEnumerator.cpp | 26 return M->getOrInsertFunction(getEHPersonalityName(Pers), in getDefaultPersonalityFn()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Module.h | 388 FunctionCallee getOrInsertFunction(StringRef Name, FunctionType *T, 391 FunctionCallee getOrInsertFunction(StringRef Name, FunctionType *T); 396 FunctionCallee getOrInsertFunction(StringRef Name, in getOrInsertFunction() function 400 return getOrInsertFunction(Name, in getOrInsertFunction() 407 FunctionCallee getOrInsertFunction(StringRef Name, Type *RetTy, in getOrInsertFunction() function 409 return getOrInsertFunction(Name, AttributeList{}, RetTy, Args...); in getOrInsertFunction() 415 getOrInsertFunction(StringRef Name, AttributeList AttributeList,
|
| /freebsd/contrib/llvm-project/llvm/lib/Frontend/Atomic/ |
| H A D | Atomic.cpp | 52 FunctionCallee LibcallFn = M->getOrInsertFunction(fnName, FnType, fnAttrs); in EmitAtomicLibcall() 140 M->getOrInsertFunction("__atomic_load", FnType, Attr); in EmitAtomicLoadLibcall() 179 M->getOrInsertFunction("__atomic_store", FnType, Attr); in EmitAtomicStoreLibcall()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | CrossDSOCFI.cpp | 85 FunctionCallee C = M.getOrInsertFunction( in buildCFICheck() 112 FunctionCallee CFICheckFailFn = M.getOrInsertFunction( in buildCFICheck()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | CallGraph.h | 148 LLVM_ABI CallGraphNode *getOrInsertFunction(const Function *F); 393 CallGraphNode *getOrInsertFunction(const Function *F) { in getOrInsertFunction() function 394 return G->getOrInsertFunction(F); in getOrInsertFunction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCGenScalarMASSEntries.cpp | 99 FunctionCallee FCache = M->getOrInsertFunction( in createScalarMASSCall()
|
| H A D | PPCLowerMASSVEntries.cpp | 147 FunctionCallee FCache = M.getOrInsertFunction( in lowerMASSVCall()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | SMEABIPass.cpp | 61 M->getOrInsertFunction("__arm_tpidr2_save", TPIDR2SaveTy, Attrs); in emitTPIDR2Save()
|