Home
last modified time | relevance | path

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

123

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp278 TsanUnalignedRead[i] = M.getOrInsertFunction( in initialize()
282 TsanUnalignedWrite[i] = M.getOrInsertFunction( in initialize()
286 TsanVolatileRead[i] = M.getOrInsertFunction( in initialize()
290 TsanVolatileWrite[i] = M.getOrInsertFunction( in initialize()
295 TsanUnalignedVolatileRead[i] = M.getOrInsertFunction( in initialize()
300 TsanUnalignedVolatileWrite[i] = M.getOrInsertFunction( in initialize()
304 TsanCompoundRW[i] = M.getOrInsertFunction( in initialize()
309 TsanUnalignedCompoundRW[i] = M.getOrInsertFunction( in initialize()
327 TsanAtomicStore[i] = M.getOrInsertFunction( in initialize()
395 M.getOrInsertFunction("memcpy", Attr, IRB.getInt8PtrTy(), in initialize()
[all …]
H A DSanitizerCoverage.cpp425 M.getOrInsertFunction(SanCovTracePCIndirName, VoidTy, IntptrTy); in instrumentModule()
435 M.getOrInsertFunction(SanCovTraceCmp1, SanCovTraceCmpZeroExtAL, VoidTy, in instrumentModule()
444 M.getOrInsertFunction(SanCovTraceCmp8, VoidTy, Int64Ty, Int64Ty); in instrumentModule()
446 SanCovTraceConstCmpFunction[0] = M.getOrInsertFunction( in instrumentModule()
448 SanCovTraceConstCmpFunction[1] = M.getOrInsertFunction( in instrumentModule()
450 SanCovTraceConstCmpFunction[2] = M.getOrInsertFunction( in instrumentModule()
453 M.getOrInsertFunction(SanCovTraceConstCmp8, VoidTy, Int64Ty, Int64Ty); in instrumentModule()
462 M.getOrInsertFunction(SanCovTraceDiv8, VoidTy, Int64Ty); in instrumentModule()
464 M.getOrInsertFunction(SanCovTraceGep, VoidTy, IntptrTy); in instrumentModule()
481 SanCovTracePC = M.getOrInsertFunction(SanCovTracePCName, VoidTy); in instrumentModule()
[all …]
H A DAddressSanitizer.cpp2060 AsanRegisterGlobals = M.getOrInsertFunction( in initializeCallbacks()
2062 AsanUnregisterGlobals = M.getOrInsertFunction( in initializeCallbacks()
2067 AsanRegisterImageGlobals = M.getOrInsertFunction( in initializeCallbacks()
2069 AsanUnregisterImageGlobals = M.getOrInsertFunction( in initializeCallbacks()
2652 M.getOrInsertFunction( in initializeCallbacks()
2657 M.getOrInsertFunction( in initializeCallbacks()
2687 AMDGPUAddressShared = M.getOrInsertFunction( in initializeCallbacks()
2689 AMDGPUAddressPrivate = M.getOrInsertFunction( in initializeCallbacks()
2942 AsanPoisonStackMemoryFunc = M.getOrInsertFunction( in initializeCallbacks()
2956 AsanAllocaPoisonFunc = M.getOrInsertFunction( in initializeCallbacks()
[all …]
H A DMemProfiler.cpp539 M.getOrInsertFunction(ClMemoryAccessCallbackPrefix + TypeStr + "N", in initializeCallbacks()
543 M.getOrInsertFunction(ClMemoryAccessCallbackPrefix + TypeStr, in initializeCallbacks()
546 MemProfMemmove = M.getOrInsertFunction( in initializeCallbacks()
549 MemProfMemcpy = M.getOrInsertFunction(ClMemoryAccessCallbackPrefix + "memcpy", in initializeCallbacks()
552 MemProfMemset = M.getOrInsertFunction(ClMemoryAccessCallbackPrefix + "memset", in initializeCallbacks()
H A DHWAddressSanitizer.cpp645 HwasanMemoryAccessCallbackSized[AccessIsWrite] = M.getOrInsertFunction( in initializeCallbacks()
652 M.getOrInsertFunction( in initializeCallbacks()
659 HwasanTagMemoryFunc = M.getOrInsertFunction( in initializeCallbacks()
662 M.getOrInsertFunction("__hwasan_generate_tag", Int8Ty); in initializeCallbacks()
669 HWAsanMemmove = M.getOrInsertFunction(MemIntrinCallbackPrefix + "memmove", in initializeCallbacks()
672 HWAsanMemcpy = M.getOrInsertFunction(MemIntrinCallbackPrefix + "memcpy", in initializeCallbacks()
675 HWAsanMemset = M.getOrInsertFunction(MemIntrinCallbackPrefix + "memset", in initializeCallbacks()
680 M.getOrInsertFunction("__hwasan_handle_vfork", IRB.getVoidTy(), IntptrTy); in initializeCallbacks()
1621 FunctionCallee HwasanPersonalityWrapper = M.getOrInsertFunction( in instrumentPersonalityFunctions()
1624 FunctionCallee UnwindGetGR = M.getOrInsertFunction("_Unwind_GetGR", VoidTy); in instrumentPersonalityFunctions()
[all …]
H A DGCOVProfiling.cpp712 FunctionCallee GCOVFork = M->getOrInsertFunction("__gcov_fork", FTy); in AddFlushBeforeForkAndExec()
739 M->getOrInsertFunction("llvm_writeout_files", FTy); in AddFlushBeforeForkAndExec()
746 FunctionCallee ResetF = M->getOrInsertFunction("llvm_reset_counters", FTy); in AddFlushBeforeForkAndExec()
1061 FunctionCallee GCOVInit = M->getOrInsertFunction("llvm_gcov_init", FTy); in emitGlobalConstructor()
1078 FunctionCallee Res = M->getOrInsertFunction("llvm_gcda_start_file", FTy, AL); in getStartFileFunc()
1095 return M->getOrInsertFunction("llvm_gcda_emit_function", FTy); in getEmitFunctionFunc()
1107 return M->getOrInsertFunction("llvm_gcda_emit_arcs", FTy, AL); in getEmitArcsFunc()
1112 return M->getOrInsertFunction("llvm_gcda_summary_info", FTy); in getSummaryInfoFunc()
1117 return M->getOrInsertFunction("llvm_gcda_end_file", FTy); in getEndFileFunc()
H A DDataFlowSanitizer.cpp1186 FunctionCallee C = Mod->getOrInsertFunction(FName, FTT); in getOrBuildTrampolineFunction()
1258 DFSanLoadLabelAndOriginFn = Mod->getOrInsertFunction( in initializeRuntimeFunctions()
1272 DFSanVarargWrapperFn = Mod->getOrInsertFunction("__dfsan_vararg_wrapper", in initializeRuntimeFunctions()
1279 DFSanChainOriginFn = Mod->getOrInsertFunction("__dfsan_chain_origin", in initializeRuntimeFunctions()
1288 DFSanChainOriginIfTaintedFn = Mod->getOrInsertFunction( in initializeRuntimeFunctions()
1291 DFSanMemOriginTransferFn = Mod->getOrInsertFunction( in initializeRuntimeFunctions()
1298 DFSanMaybeStoreOriginFn = Mod->getOrInsertFunction( in initializeRuntimeFunctions()
1334 DFSanLoadCallbackFn = Mod->getOrInsertFunction("__dfsan_load_callback", in initializeCallbackFunctions()
1336 DFSanStoreCallbackFn = Mod->getOrInsertFunction("__dfsan_store_callback", in initializeCallbackFunctions()
1338 DFSanMemTransferCallbackFn = Mod->getOrInsertFunction( in initializeCallbackFunctions()
[all …]
H A DMemorySanitizer.cpp735 MsanGetContextStateFn = M.getOrInsertFunction( in createKernelApi()
746 MsanMetadataPtrForLoad_1_8[ind] = M.getOrInsertFunction( in createKernelApi()
752 MsanMetadataPtrForLoadN = M.getOrInsertFunction( in createKernelApi()
755 MsanMetadataPtrForStoreN = M.getOrInsertFunction( in createKernelApi()
763 MsanUnpoisonAllocaFn = M.getOrInsertFunction( in createKernelApi()
822 MaybeWarningFn[AccessSizeIndex] = M.getOrInsertFunction( in createUserspaceApi()
838 MsanSetAllocaOrigin4Fn = M.getOrInsertFunction( in createUserspaceApi()
855 MsanChainOriginFn = M.getOrInsertFunction( in initializeCallbacks()
860 MemmoveFn = M.getOrInsertFunction( in initializeCallbacks()
863 MemcpyFn = M.getOrInsertFunction( in initializeCallbacks()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DCallGraph.cpp34 : M(M), ExternalCallingNode(getOrInsertFunction(nullptr)), in CallGraph()
78 CallGraphNode *Node = getOrInsertFunction(F); in addToCallGraph()
110 Node->addCalledFunction(Call, getOrInsertFunction(Callee)); in populateCallGraphNode()
114 Node->addCalledFunction(nullptr, getOrInsertFunction(CB)); in populateCallGraphNode()
175 CallGraphNode *CallGraph::getOrInsertFunction(const Function *F) { in getOrInsertFunction() function in CallGraph
224 removeOneAbstractEdgeTo(CG->getOrInsertFunction(CB)); in removeCallEdgeFor()
277 OldCBs.push_back(CG->getOrInsertFunction(CB)); in replaceCallEdge()
280 NewCBs.push_back(CG->getOrInsertFunction(CB)); in replaceCallEdge()
H A DCallGraphSCCPass.cpp323 CGN->addCalledFunction(nullptr, CG.getOrInsertFunction(CB)); in RefreshCallGraph()
357 CalleeNode = CG.getOrInsertFunction(Callee); in RefreshCallGraph()
381 CalleeNode = CG.getOrInsertFunction(Callee); in RefreshCallGraph()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCallGraphUpdater.cpp42 CallGraphNode *DeadCGN = CG->getOrInsertFunction(DeadFn); in finalize()
89 CallGraphNode *OldCGN = CG->getOrInsertFunction(&Fn); in reanalyzeFunction()
129 CallGraphNode *NewCGN = CG->getOrInsertFunction(&NewFn); in replaceFunctionWith()
150 CG->getOrInsertFunction(NewCS.getCalledFunction()); in replaceCallSite()
H A DSanitizerStats.cpp60 M->getOrInsertFunction("__sanitizer_stat_report", StatReportTy); in create()
101 M->getOrInsertFunction("__sanitizer_stat_init", StatInitTy); in finish()
H A DAMDGPUEmitPrintf.cpp65 auto Fn = M->getOrInsertFunction("__ockl_printf_begin", Int64Ty, Int64Ty); in callPrintfBegin()
76 auto Fn = M->getOrInsertFunction("__ockl_printf_append_args", Int64Ty, in callAppendArgs()
168 auto Fn = M->getOrInsertFunction("__ockl_printf_append_string_n", Int64Ty, in callAppendStringN()
H A DEntryExitInstrumenter.cpp37 FunctionCallee Fn = M.getOrInsertFunction(Func, Type::getVoidTy(C)); in insertCall()
46 FunctionCallee Fn = M.getOrInsertFunction( in insertCall()
H A DBuildLibCalls.cpp1230 FunctionCallee Callee = M->getOrInsertFunction(FuncName, FuncType); in emitLibCall()
1308 FunctionCallee MemCpy = M->getOrInsertFunction( in emitMemCpyChk()
1450 M->getOrInsertFunction(Name, Op->getType(), Op->getType()); in emitUnaryFloatFnCallHelper()
1492 FunctionCallee Callee = M->getOrInsertFunction(Name, Op1->getType(), in emitBinaryFloatFnCallHelper()
1542 M->getOrInsertFunction(PutCharName, B.getInt32Ty(), B.getInt32Ty()); in emitPutChar()
1565 M->getOrInsertFunction(PutsName, B.getInt32Ty(), B.getInt8PtrTy()); in emitPutS()
1581 FunctionCallee F = M->getOrInsertFunction(FPutcName, B.getInt32Ty(), in emitFPutC()
1602 FunctionCallee F = M->getOrInsertFunction(FPutsName, B.getInt32Ty(), in emitFPutS()
1622 FunctionCallee F = M->getOrInsertFunction( in emitFWrite()
1646 FunctionCallee Malloc = M->getOrInsertFunction(MallocName, B.getInt8PtrTy(), in emitMalloc()
[all …]
H A DEscapeEnumerator.cpp26 return M->getOrInsertFunction(getEHPersonalityName(Pers), in getDefaultPersonalityFn()
H A DModuleUtils.cpp118 return M.getOrInsertFunction( in declareSanitizerInitFunction()
149 FunctionCallee VersionCheckFunction = M.getOrInsertFunction( in createSanitizerCtorAndInitFunctions()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DModule.h365 FunctionCallee getOrInsertFunction(StringRef Name, FunctionType *T,
368 FunctionCallee getOrInsertFunction(StringRef Name, FunctionType *T);
377 FunctionCallee getOrInsertFunction(StringRef Name, in getOrInsertFunction() function
381 return getOrInsertFunction(Name, in getOrInsertFunction()
388 FunctionCallee getOrInsertFunction(StringRef Name, Type *RetTy, in getOrInsertFunction() function
390 return getOrInsertFunction(Name, AttributeList{}, RetTy, Args...); in getOrInsertFunction()
396 getOrInsertFunction(StringRef Name, AttributeList AttributeList,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DCrossDSOCFI.cpp105 FunctionCallee C = M.getOrInsertFunction( in buildCFICheck()
133 M.getOrInsertFunction("__cfi_check_fail", Type::getVoidTy(Ctx), in buildCFICheck()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DCallGraph.h153 CallGraphNode *getOrInsertFunction(const Function *F);
397 CallGraphNode *getOrInsertFunction(const Function *F) { in getOrInsertFunction() function
398 return G->getOrInsertFunction(F); in getOrInsertFunction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCLowerMASSVEntries.cpp145 FunctionCallee FCache = M.getOrInsertFunction( in lowerMASSVCall()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DModule.cpp147 FunctionCallee Module::getOrInsertFunction(StringRef Name, FunctionType *Ty, in getOrInsertFunction() function in Module
171 FunctionCallee Module::getOrInsertFunction(StringRef Name, FunctionType *Ty) { in getOrInsertFunction() function in Module
172 return getOrInsertFunction(Name, Ty, AttributeList()); in getOrInsertFunction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86WinEHState.cpp176 SetJmp3 = TheModule->getOrInsertFunction( in runOnFunction()
297 CxxLongjmpUnwind = TheModule->getOrInsertFunction( in emitExceptionRegistrationRecord()
352 SehLongjmpUnwind = TheModule->getOrInsertFunction( in emitExceptionRegistrationRecord()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DStackProtector.cpp579 FunctionCallee StackChkFail = M->getOrInsertFunction( in CreateFailBB()
586 M->getOrInsertFunction("__stack_chk_fail", Type::getVoidTy(Context)); in CreateFailBB()
H A DSjLjEHPrepare.cpp487 RegisterFn = M.getOrInsertFunction( in runOnFunction()
490 UnregisterFn = M.getOrInsertFunction( in runOnFunction()

123