Home
last modified time | relevance | path

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

12345678

/external/swiftshader/third_party/llvm-16.0/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp207 TsanFuncEntry = M.getOrInsertFunction("__tsan_func_entry", Attr, in initialize()
210 M.getOrInsertFunction("__tsan_func_exit", Attr, IRB.getVoidTy()); in initialize()
211 TsanIgnoreBegin = M.getOrInsertFunction("__tsan_ignore_thread_begin", Attr, in initialize()
214 M.getOrInsertFunction("__tsan_ignore_thread_end", Attr, IRB.getVoidTy()); in initialize()
222 TsanRead[i] = M.getOrInsertFunction(ReadName, Attr, IRB.getVoidTy(), in initialize()
226 TsanWrite[i] = M.getOrInsertFunction(WriteName, Attr, IRB.getVoidTy(), in initialize()
230 TsanUnalignedRead[i] = M.getOrInsertFunction( in initialize()
234 TsanUnalignedWrite[i] = M.getOrInsertFunction( in initialize()
238 TsanVolatileRead[i] = M.getOrInsertFunction( in initialize()
242 TsanVolatileWrite[i] = M.getOrInsertFunction( in initialize()
[all …]
DSanitizerCoverage.cpp416 M.getOrInsertFunction(SanCovTracePCIndirName, VoidTy, IntptrTy); in instrumentModule()
426 M.getOrInsertFunction(SanCovTraceCmp1, SanCovTraceCmpZeroExtAL, VoidTy, in instrumentModule()
429 M.getOrInsertFunction(SanCovTraceCmp2, SanCovTraceCmpZeroExtAL, VoidTy, in instrumentModule()
432 M.getOrInsertFunction(SanCovTraceCmp4, SanCovTraceCmpZeroExtAL, VoidTy, in instrumentModule()
435 M.getOrInsertFunction(SanCovTraceCmp8, VoidTy, Int64Ty, Int64Ty); in instrumentModule()
437 SanCovTraceConstCmpFunction[0] = M.getOrInsertFunction( in instrumentModule()
439 SanCovTraceConstCmpFunction[1] = M.getOrInsertFunction( in instrumentModule()
441 SanCovTraceConstCmpFunction[2] = M.getOrInsertFunction( in instrumentModule()
444 M.getOrInsertFunction(SanCovTraceConstCmp8, VoidTy, Int64Ty, Int64Ty); in instrumentModule()
447 SanCovLoadFunction[0] = M.getOrInsertFunction(SanCovLoad1, VoidTy, Int8PtrTy); in instrumentModule()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp209 TsanFuncEntry = M.getOrInsertFunction("__tsan_func_entry", Attr, in initialize()
212 M.getOrInsertFunction("__tsan_func_exit", Attr, IRB.getVoidTy()); in initialize()
213 TsanIgnoreBegin = M.getOrInsertFunction("__tsan_ignore_thread_begin", Attr, in initialize()
216 M.getOrInsertFunction("__tsan_ignore_thread_end", Attr, IRB.getVoidTy()); in initialize()
224 TsanRead[i] = M.getOrInsertFunction(ReadName, Attr, IRB.getVoidTy(), in initialize()
228 TsanWrite[i] = M.getOrInsertFunction(WriteName, Attr, IRB.getVoidTy(), in initialize()
232 TsanUnalignedRead[i] = M.getOrInsertFunction( in initialize()
236 TsanUnalignedWrite[i] = M.getOrInsertFunction( in initialize()
243 M.getOrInsertFunction(AtomicLoadName, Attr, Ty, PtrTy, OrdTy); in initialize()
246 TsanAtomicStore[i] = M.getOrInsertFunction( in initialize()
[all …]
DSanitizerCoverage.cpp384 M.getOrInsertFunction(SanCovTracePCIndirName, VoidTy, IntptrTy); in instrumentModule()
396 M.getOrInsertFunction(SanCovTraceCmp1, SanCovTraceCmpZeroExtAL, VoidTy, in instrumentModule()
399 M.getOrInsertFunction(SanCovTraceCmp2, SanCovTraceCmpZeroExtAL, VoidTy, in instrumentModule()
402 M.getOrInsertFunction(SanCovTraceCmp4, SanCovTraceCmpZeroExtAL, VoidTy, in instrumentModule()
405 M.getOrInsertFunction(SanCovTraceCmp8, VoidTy, Int64Ty, Int64Ty); in instrumentModule()
407 SanCovTraceConstCmpFunction[0] = M.getOrInsertFunction( in instrumentModule()
409 SanCovTraceConstCmpFunction[1] = M.getOrInsertFunction( in instrumentModule()
411 SanCovTraceConstCmpFunction[2] = M.getOrInsertFunction( in instrumentModule()
414 M.getOrInsertFunction(SanCovTraceConstCmp8, VoidTy, Int64Ty, Int64Ty); in instrumentModule()
421 M.getOrInsertFunction(SanCovTraceDiv4, AL, VoidTy, IRB.getInt32Ty()); in instrumentModule()
[all …]
/external/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp153 TsanFuncEntry = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
156 M.getOrInsertFunction("__tsan_func_exit", IRB.getVoidTy(), nullptr)); in initializeCallbacks()
164 TsanRead[i] = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
168 TsanWrite[i] = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
173 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
178 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
185 M.getOrInsertFunction(AtomicLoadName, Ty, PtrTy, OrdTy, nullptr)); in initializeCallbacks()
188 TsanAtomicStore[i] = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
213 M.getOrInsertFunction(RMWName, Ty, PtrTy, Ty, OrdTy, nullptr)); in initializeCallbacks()
218 TsanAtomicCAS[i] = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
[all …]
DSanitizerCoverage.cpp222 M.getOrInsertFunction(SanCovName, VoidTy, Int32PtrTy, nullptr)); in runOnModule()
224 M.getOrInsertFunction(SanCovWithCheckName, VoidTy, Int32PtrTy, nullptr)); in runOnModule()
226 M.getOrInsertFunction(SanCovTracePCIndirName, VoidTy, IntptrTy, nullptr)); in runOnModule()
228 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in runOnModule()
231 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in runOnModule()
234 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in runOnModule()
243 M.getOrInsertFunction(SanCovTracePCName, VoidTy, nullptr)); in runOnModule()
245 M.getOrInsertFunction(SanCovTraceEnterName, VoidTy, Int32PtrTy, nullptr)); in runOnModule()
247 M.getOrInsertFunction(SanCovTraceBBName, VoidTy, Int32PtrTy, nullptr)); in runOnModule()
DEfficiencySanitizer.cpp257 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
261 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
265 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
269 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
273 M.getOrInsertFunction("__esan_unaligned_loadN", IRB.getVoidTy(), in initializeCallbacks()
276 M.getOrInsertFunction("__esan_unaligned_storeN", IRB.getVoidTy(), in initializeCallbacks()
279 M.getOrInsertFunction("memmove", IRB.getInt8PtrTy(), IRB.getInt8PtrTy(), in initializeCallbacks()
282 M.getOrInsertFunction("memcpy", IRB.getInt8PtrTy(), IRB.getInt8PtrTy(), in initializeCallbacks()
285 M.getOrInsertFunction("memset", IRB.getInt8PtrTy(), IRB.getInt8PtrTy(), in initializeCallbacks()
523 M.getOrInsertFunction(EsanExitName, IRB_Dtor.getVoidTy(), in createDestructor()
/external/swiftshader/third_party/llvm-16.0/llvm/lib/Analysis/
DCallGraph.cpp33 : 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()
/external/swiftshader/third_party/llvm-16.0/llvm/lib/Transforms/Utils/
DCallGraphUpdater.cpp44 CallGraphNode *DeadCGN = CG->getOrInsertFunction(DeadFn); in finalize()
91 CallGraphNode *OldCGN = CG->getOrInsertFunction(&Fn); in reanalyzeFunction()
131 CallGraphNode *NewCGN = CG->getOrInsertFunction(&NewFn); in replaceFunctionWith()
152 CG->getOrInsertFunction(NewCS.getCalledFunction()); in replaceCallSite()
DEntryExitInstrumenter.cpp46 M.getOrInsertFunction(Func, in insertCall()
52 FunctionCallee Fn = M.getOrInsertFunction(Func, Type::getVoidTy(C)); in insertCall()
62 FunctionCallee Fn = M.getOrInsertFunction( in insertCall()
/external/llvm/unittests/IR/
DVerifierTest.cpp30 Function *F = cast<Function>(M.getOrInsertFunction("foo", FTy)); in TEST()
53 Function *F = cast<Function>(M.getOrInsertFunction("foo", FTy)); in TEST()
71 Function *F1 = cast<Function>(M1.getOrInsertFunction("foo1", FTy)); in TEST()
72 Function *F2 = cast<Function>(M2.getOrInsertFunction("foo2", FTy)); in TEST()
73 Function *F3 = cast<Function>(M3.getOrInsertFunction("foo3", FTy)); in TEST()
/external/llvm/lib/Target/AMDGPU/
DSIAnnotateControlFlow.cpp143 If = M.getOrInsertFunction( in doInitialization()
146 Else = M.getOrInsertFunction( in doInitialization()
149 Break = M.getOrInsertFunction( in doInitialization()
152 IfBreak = M.getOrInsertFunction( in doInitialization()
155 ElseBreak = M.getOrInsertFunction( in doInitialization()
158 Loop = M.getOrInsertFunction( in doInitialization()
161 EndCf = M.getOrInsertFunction( in doInitialization()
/external/llvm/lib/IR/
DModule.cpp121 Constant *Module::getOrInsertFunction(StringRef Name, in getOrInsertFunction() function in Module
144 Constant *Module::getOrInsertFunction(StringRef Name, in getOrInsertFunction() function in Module
146 return getOrInsertFunction(Name, Ty, AttributeSet()); in getOrInsertFunction()
154 Constant *Module::getOrInsertFunction(StringRef Name, in getOrInsertFunction() function in Module
168 return getOrInsertFunction(Name, in getOrInsertFunction()
173 Constant *Module::getOrInsertFunction(StringRef Name, in getOrInsertFunction() function in Module
186 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/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DModule.h345 FunctionCallee getOrInsertFunction(StringRef Name, FunctionType *T,
348 FunctionCallee getOrInsertFunction(StringRef Name, FunctionType *T);
357 FunctionCallee getOrInsertFunction(StringRef Name, in getOrInsertFunction() function
361 return getOrInsertFunction(Name, in getOrInsertFunction()
368 FunctionCallee getOrInsertFunction(StringRef Name, Type *RetTy, in getOrInsertFunction() function
370 return getOrInsertFunction(Name, AttributeList{}, RetTy, Args...); in getOrInsertFunction()
376 getOrInsertFunction(StringRef Name, AttributeList AttributeList,
/external/llvm/lib/Transforms/Utils/
DBuildLibCalls.cpp724 Constant *StrLen = M->getOrInsertFunction("strlen", DL.getIntPtrType(Context), in emitStrLen()
743 M->getOrInsertFunction("strchr", I8Ptr, I8Ptr, I32Ty, nullptr); in emitStrChr()
759 Value *StrNCmp = M->getOrInsertFunction("strncmp", B.getInt32Ty(), in emitStrNCmp()
779 Value *StrCpy = M->getOrInsertFunction(Name, I8Ptr, I8Ptr, I8Ptr, nullptr); in emitStrCpy()
795 Value *StrNCpy = M->getOrInsertFunction(Name, I8Ptr, I8Ptr, I8Ptr, in emitStrNCpy()
816 Value *MemCpy = M->getOrInsertFunction( in emitMemCpyChk()
835 Value *MemChr = M->getOrInsertFunction("memchr", B.getInt8PtrTy(), in emitMemChr()
854 Value *MemCmp = M->getOrInsertFunction("memcmp", B.getInt32Ty(), in emitMemCmp()
888 Value *Callee = M->getOrInsertFunction(Name, Op->getType(), in emitUnaryFloatFnCall()
904 Value *Callee = M->getOrInsertFunction(Name, Op1->getType(), Op1->getType(), in emitBinaryFloatFnCall()
[all …]
/external/llvm/examples/HowToUseJIT/
DHowToUseJIT.cpp74 cast<Function>(M->getOrInsertFunction("add1", Type::getInt32Ty(Context), in main()
105 cast<Function>(M->getOrInsertFunction("foo", Type::getInt32Ty(Context), in main()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DCallGraph.cpp32 : M(M), ExternalCallingNode(getOrInsertFunction(nullptr)), in CallGraph()
61 CallGraphNode *Node = getOrInsertFunction(F); in addToCallGraph()
84 Node->addCalledFunction(Call, getOrInsertFunction(Callee)); in addToCallGraph()
148 CallGraphNode *CallGraph::getOrInsertFunction(const Function *F) { in getOrInsertFunction() function in CallGraph
/external/AFLplusplus/instrumentation/
Dcmplog-switches-pass.cc167 c1 = M.getOrInsertFunction("__cmplog_ins_hook1", VoidTy, Int8Ty, Int8Ty,
185 c2 = M.getOrInsertFunction("__cmplog_ins_hook2", VoidTy, Int16Ty, Int16Ty,
203 c4 = M.getOrInsertFunction("__cmplog_ins_hook4", VoidTy, Int32Ty, Int32Ty,
221 c8 = M.getOrInsertFunction("__cmplog_ins_hook8", VoidTy, Int64Ty, Int64Ty,
Dcmplog-instructions-pass.cc193 c2 = M.getOrInsertFunction("__cmplog_ins_hook2", VoidTy, Int16Ty, Int16Ty, in hookInstrs()
211 c4 = M.getOrInsertFunction("__cmplog_ins_hook4", VoidTy, Int32Ty, Int32Ty, in hookInstrs()
229 c8 = M.getOrInsertFunction("__cmplog_ins_hook8", VoidTy, Int64Ty, Int64Ty, in hookInstrs()
247 c16 = M.getOrInsertFunction("__cmplog_ins_hook16", VoidTy, Int128Ty, in hookInstrs()
265 cN = M.getOrInsertFunction("__cmplog_ins_hookN", VoidTy, Int128Ty, in hookInstrs()
Dinjection-pass.cc155 c1 = M.getOrInsertFunction("__afl_injection_sql", VoidTy, i8PtrTy
172 c2 = M.getOrInsertFunction("__afl_injection_ldap", VoidTy, i8PtrTy
189 c3 = M.getOrInsertFunction("__afl_injection_xss", VoidTy, i8PtrTy
Dcmplog-routines-pass.cc153 c = M.getOrInsertFunction("__cmplog_rtn_hook", VoidTy, i8PtrTy, i8PtrTy
170 c1 = M.getOrInsertFunction("__cmplog_rtn_llvm_stdstring_stdstring",
188 c2 = M.getOrInsertFunction("__cmplog_rtn_llvm_stdstring_cstring", VoidTy,
206 c3 = M.getOrInsertFunction("__cmplog_rtn_gcc_stdstring_stdstring", VoidTy,
224 c4 = M.getOrInsertFunction("__cmplog_rtn_gcc_stdstring_cstring", VoidTy,
242 c5 = M.getOrInsertFunction("__cmplog_rtn_hook_n", VoidTy, i8PtrTy,
260 c6 = M.getOrInsertFunction("__cmplog_rtn_hook_strn", VoidTy, i8PtrTy,
278 c7 = M.getOrInsertFunction("__cmplog_rtn_hook_str", VoidTy, i8PtrTy,
/external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/IR/
DModule.h368 FunctionCallee getOrInsertFunction(StringRef Name, FunctionType *T,
371 FunctionCallee getOrInsertFunction(StringRef Name, FunctionType *T);
380 FunctionCallee getOrInsertFunction(StringRef Name, in getOrInsertFunction() function
384 return getOrInsertFunction(Name, in getOrInsertFunction()
391 FunctionCallee getOrInsertFunction(StringRef Name, Type *RetTy, in getOrInsertFunction() function
393 return getOrInsertFunction(Name, AttributeList{}, RetTy, Args...); in getOrInsertFunction()
399 getOrInsertFunction(StringRef Name, AttributeList AttributeList,
/external/llvm/lib/Analysis/
DCallGraph.cpp24 : M(M), Root(nullptr), ExternalCallingNode(getOrInsertFunction(nullptr)), in CallGraph()
58 CallGraphNode *Node = getOrInsertFunction(F); in addToCallGraph()
93 Node->addCalledFunction(CS, getOrInsertFunction(Callee)); in addToCallGraph()
165 CallGraphNode *CallGraph::getOrInsertFunction(const Function *F) { in getOrInsertFunction() function in CallGraph
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Delemental_ir_emitter.cc59 ->getOrInsertFunction(function_name, lhs->getType(), lhs->getType(), in EmitAtan2()
94 ->getOrInsertFunction(function_name, value->getType(), in EmitTanh()

12345678