/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | ThreadSanitizer.cpp | 206 TsanFuncEntry = M.getOrInsertFunction("__tsan_func_entry", Attr, in initialize() 209 M.getOrInsertFunction("__tsan_func_exit", Attr, IRB.getVoidTy()); in initialize() 210 TsanIgnoreBegin = M.getOrInsertFunction("__tsan_ignore_thread_begin", Attr, in initialize() 213 M.getOrInsertFunction("__tsan_ignore_thread_end", Attr, IRB.getVoidTy()); in initialize() 221 TsanRead[i] = M.getOrInsertFunction(ReadName, Attr, IRB.getVoidTy(), in initialize() 225 TsanWrite[i] = M.getOrInsertFunction(WriteName, Attr, IRB.getVoidTy(), in initialize() 229 TsanUnalignedRead[i] = M.getOrInsertFunction( in initialize() 233 TsanUnalignedWrite[i] = M.getOrInsertFunction( in initialize() 237 TsanVolatileRead[i] = M.getOrInsertFunction( in initialize() 241 TsanVolatileWrite[i] = M.getOrInsertFunction( in initialize() [all …]
|
H A D | SanitizerCoverage.cpp | 403 M.getOrInsertFunction(SanCovTracePCIndirName, VoidTy, IntptrTy); in instrumentModule() 413 M.getOrInsertFunction(SanCovTraceCmp1, SanCovTraceCmpZeroExtAL, VoidTy, in instrumentModule() 416 M.getOrInsertFunction(SanCovTraceCmp2, SanCovTraceCmpZeroExtAL, VoidTy, in instrumentModule() 419 M.getOrInsertFunction(SanCovTraceCmp4, SanCovTraceCmpZeroExtAL, VoidTy, in instrumentModule() 422 M.getOrInsertFunction(SanCovTraceCmp8, VoidTy, Int64Ty, Int64Ty); in instrumentModule() 424 SanCovTraceConstCmpFunction[0] = M.getOrInsertFunction( in instrumentModule() 426 SanCovTraceConstCmpFunction[1] = M.getOrInsertFunction( in instrumentModule() 428 SanCovTraceConstCmpFunction[2] = M.getOrInsertFunction( in instrumentModule() 431 M.getOrInsertFunction(SanCovTraceConstCmp8, VoidTy, Int64Ty, Int64Ty); in instrumentModule() 434 SanCovLoadFunction[0] = M.getOrInsertFunction(SanCovLoad1, VoidTy, PtrTy); in instrumentModule() [all …]
|
H A D | AddressSanitizer.cpp | 1815 auto Ballot = M.getOrInsertFunction(kAMDGPUBallotName, IRB.getInt64Ty(), in genAMDGPUReportBlock() 1831 M.getOrInsertFunction(kAMDGPUUnreachableName, IRB.getVoidTy()), {}); in genAMDGPUReportBlock() 2202 M.getOrInsertFunction(kAsanPoisonGlobalsName, IRB.getVoidTy(), IntptrTy); in initializeCallbacks() 2204 M.getOrInsertFunction(kAsanUnpoisonGlobalsName, IRB.getVoidTy()); in initializeCallbacks() 2207 AsanRegisterGlobals = M.getOrInsertFunction( in initializeCallbacks() 2209 AsanUnregisterGlobals = M.getOrInsertFunction( in initializeCallbacks() 2214 AsanRegisterImageGlobals = M.getOrInsertFunction( in initializeCallbacks() 2216 AsanUnregisterImageGlobals = M.getOrInsertFunction( in initializeCallbacks() 2220 M.getOrInsertFunction(kAsanRegisterElfGlobalsName, IRB.getVoidTy(), in initializeCallbacks() 2223 M.getOrInsertFunction(kAsanUnregisterElfGlobalsName, IRB.getVoidTy(), in initializeCallbacks() [all …]
|
H A D | PGOCtxProfLowering.cpp | 153 M.getOrInsertFunction( in CtxInstrumentationLowerer() 162 M.getOrInsertFunction(CompilerRtAPINames::GetCtx, in CtxInstrumentationLowerer() 171 M.getOrInsertFunction( in CtxInstrumentationLowerer()
|
H A D | HWAddressSanitizer.cpp | 700 HwasanMemoryAccessCallbackSized[AccessIsWrite] = M.getOrInsertFunction( in initializeCallbacks() 707 M.getOrInsertFunction(ClMemoryAccessCallbackPrefix + TypeStr + in initializeCallbacks() 719 HwasanMemmove = M.getOrInsertFunction( in initializeCallbacks() 721 HwasanMemcpy = M.getOrInsertFunction( in initializeCallbacks() 723 HwasanMemset = M.getOrInsertFunction( in initializeCallbacks() 726 HwasanTagMemoryFunc = M.getOrInsertFunction("__hwasan_tag_memory", VoidTy, in initializeCallbacks() 729 M.getOrInsertFunction("__hwasan_generate_tag", Int8Ty); in initializeCallbacks() 732 M.getOrInsertFunction("__hwasan_add_frame_record", VoidTy, Int64Ty); in initializeCallbacks() 738 M.getOrInsertFunction("__hwasan_handle_vfork", VoidTy, IntptrTy); in initializeCallbacks() 1811 FunctionCallee HwasanPersonalityWrapper = M.getOrInsertFunction( in instrumentPersonalityFunctions() [all …]
|
H A D | DataFlowSanitizer.cpp | 1343 Mod->getOrInsertFunction("__dfsan_union_load", DFSanUnionLoadFnTy, AL); in initializeRuntimeFunctions() 1351 DFSanLoadLabelAndOriginFn = Mod->getOrInsertFunction( in initializeRuntimeFunctions() 1355 Mod->getOrInsertFunction("__dfsan_unimplemented", DFSanUnimplementedFnTy); in initializeRuntimeFunctions() 1356 DFSanWrapperExternWeakNullFn = Mod->getOrInsertFunction( in initializeRuntimeFunctions() 1363 Mod->getOrInsertFunction("__dfsan_set_label", DFSanSetLabelFnTy, AL); in initializeRuntimeFunctions() 1366 Mod->getOrInsertFunction("__dfsan_nonzero_label", DFSanNonzeroLabelFnTy); in initializeRuntimeFunctions() 1367 DFSanVarargWrapperFn = Mod->getOrInsertFunction("__dfsan_vararg_wrapper", in initializeRuntimeFunctions() 1373 DFSanChainOriginFn = Mod->getOrInsertFunction("__dfsan_chain_origin", in initializeRuntimeFunctions() 1381 DFSanChainOriginIfTaintedFn = Mod->getOrInsertFunction( in initializeRuntimeFunctions() 1384 DFSanMemOriginTransferFn = Mod->getOrInsertFunction( in initializeRuntimeFunctions() [all …]
|
H A D | GCOVProfiling.cpp | 660 FunctionCallee GCOVFork = M->getOrInsertFunction( in AddFlushBeforeForkAndExec() 689 M->getOrInsertFunction("llvm_writeout_files", FTy); in AddFlushBeforeForkAndExec() 696 FunctionCallee ResetF = M->getOrInsertFunction("llvm_reset_counters", FTy); in AddFlushBeforeForkAndExec() 1025 FunctionCallee GCOVInit = M->getOrInsertFunction("llvm_gcov_init", FTy); in emitGlobalConstructor() 1039 return M->getOrInsertFunction("llvm_gcda_start_file", FTy, in getStartFileFunc() 1050 return M->getOrInsertFunction("llvm_gcda_emit_function", FTy, in getEmitFunctionFunc() 1060 return M->getOrInsertFunction("llvm_gcda_emit_arcs", FTy, in getEmitArcsFunc() 1066 return M->getOrInsertFunction("llvm_gcda_summary_info", FTy); in getSummaryInfoFunc() 1071 return M->getOrInsertFunction("llvm_gcda_end_file", FTy); in getEndFileFunc()
|
H A D | NumericalStabilitySanitizer.cpp | 619 NsanGetShadowPtrForStore[VT] = M.getOrInsertFunction( in NumericalStabilitySanitizer() 621 NsanGetShadowPtrForLoad[VT] = M.getOrInsertFunction( in NumericalStabilitySanitizer() 628 M.getOrInsertFunction(std::string("__nsan_internal_check_") + VTName + in NumericalStabilitySanitizer() 631 NsanFCmpFail[VT] = M.getOrInsertFunction( in NumericalStabilitySanitizer() 637 NsanCopyValues = M.getOrInsertFunction("__nsan_copy_values", Attr, VoidTy, in NumericalStabilitySanitizer() 639 NsanSetValueUnknown = M.getOrInsertFunction("__nsan_set_value_unknown", Attr, in NumericalStabilitySanitizer() 643 NsanGetRawShadowTypePtr = M.getOrInsertFunction( in NumericalStabilitySanitizer() 645 NsanGetRawShadowPtr = M.getOrInsertFunction( in NumericalStabilitySanitizer()
|
H A D | MemProfiler.cpp | 570 MemProfMemoryAccessCallback[AccessIsWrite] = M.getOrInsertFunction( in initializeCallbacks() 574 MemProfMemmove = M.getOrInsertFunction( in initializeCallbacks() 576 MemProfMemcpy = M.getOrInsertFunction(ClMemoryAccessCallbackPrefix + "memcpy", in initializeCallbacks() 579 M.getOrInsertFunction(ClMemoryAccessCallbackPrefix + "memset", PtrTy, in initializeCallbacks()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | CallGraph.cpp | 33 : M(M), ExternalCallingNode(getOrInsertFunction(nullptr)), in CallGraph() 76 CallGraphNode *Node = getOrInsertFunction(F); in addToCallGraph() 105 Node->addCalledFunction(Call, getOrInsertFunction(Callee)); in populateCallGraphNode() 109 Node->addCalledFunction(nullptr, getOrInsertFunction(CB)); in populateCallGraphNode() 170 CallGraphNode *CallGraph::getOrInsertFunction(const Function *F) { in getOrInsertFunction() function in CallGraph 219 removeOneAbstractEdgeTo(CG->getOrInsertFunction(CB)); in removeCallEdgeFor() 272 OldCBs.push_back(CG->getOrInsertFunction(CB)); in replaceCallEdge() 275 NewCBs.push_back(CG->getOrInsertFunction(CB)); in replaceCallEdge()
|
H A D | CallGraphSCCPass.cpp | 315 CGN->addCalledFunction(nullptr, CG.getOrInsertFunction(CB)); in RefreshCallGraph() 349 CalleeNode = CG.getOrInsertFunction(Callee); in RefreshCallGraph() 373 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() 344 FunctionCallee RegFunc = M.getOrInsertFunction( in createRegisterGlobalsFunction() 353 FunctionCallee RegVar = M.getOrInsertFunction( in createRegisterGlobalsFunction() 362 FunctionCallee RegSurface = M.getOrInsertFunction( in createRegisterGlobalsFunction() 371 FunctionCallee RegTexture = M.getOrInsertFunction( in createRegisterGlobalsFunction() 536 FunctionCallee RegFatbin = M.getOrInsertFunction( in createRegisterFatbinFunction() 542 M.getOrInsertFunction("__cudaRegisterFatBinaryEnd", RegFatEndTy); in createRegisterFatbinFunction() 546 FunctionCallee UnregFatbin = M.getOrInsertFunction( in createRegisterFatbinFunction() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | EntryExitInstrumenter.cpp | 46 M.getOrInsertFunction(Func, in insertCall() 52 FunctionCallee Fn = M.getOrInsertFunction(Func, Type::getVoidTy(C)); in insertCall() 62 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 | 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 | 404 FunctionCallee getOrInsertFunction(StringRef Name, FunctionType *T, 407 FunctionCallee getOrInsertFunction(StringRef Name, FunctionType *T); 412 FunctionCallee getOrInsertFunction(StringRef Name, in getOrInsertFunction() function 416 return getOrInsertFunction(Name, in getOrInsertFunction() 423 FunctionCallee getOrInsertFunction(StringRef Name, Type *RetTy, in getOrInsertFunction() function 425 return getOrInsertFunction(Name, AttributeList{}, RetTy, Args...); in getOrInsertFunction() 431 getOrInsertFunction(StringRef Name, AttributeList AttributeList,
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | CrossDSOCFI.cpp | 86 FunctionCallee C = M.getOrInsertFunction( in buildCFICheck() 113 FunctionCallee CFICheckFailFn = M.getOrInsertFunction( in buildCFICheck()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | CallGraph.h | 152 CallGraphNode *getOrInsertFunction(const Function *F); 409 CallGraphNode *getOrInsertFunction(const Function *F) { 410 return G->getOrInsertFunction(F); 405 CallGraphNode *getOrInsertFunction(const Function *F) { getOrInsertFunction() function
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCGenScalarMASSEntries.cpp | 100 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/X86/ |
H A D | X86WinEHState.cpp | 176 SetJmp3 = TheModule->getOrInsertFunction( in runOnFunction() 297 CxxLongjmpUnwind = TheModule->getOrInsertFunction( in emitExceptionRegistrationRecord() 351 SehLongjmpUnwind = TheModule->getOrInsertFunction( in emitExceptionRegistrationRecord()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | SMEABIPass.cpp | 67 M->getOrInsertFunction("__arm_tpidr2_save", TPIDR2SaveTy, Attrs); in emitTPIDR2Save()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | StackProtector.cpp | 705 StackChkFail = M->getOrInsertFunction("__stack_smash_handler", 711 M->getOrInsertFunction("__stack_chk_fail", Type::getVoidTy(Context));
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Module.cpp | 169 FunctionCallee Module::getOrInsertFunction(StringRef Name, FunctionType *Ty, in getOrInsertFunction() function in Module 186 FunctionCallee Module::getOrInsertFunction(StringRef Name, FunctionType *Ty) { in getOrInsertFunction() function in Module 187 return getOrInsertFunction(Name, Ty, AttributeList()); in getOrInsertFunction()
|