/external/llvm-project/llvm/lib/Transforms/Instrumentation/ |
D | ThreadSanitizer.cpp | 254 TsanFuncEntry = M.getOrInsertFunction("__tsan_func_entry", Attr, in initialize() 257 M.getOrInsertFunction("__tsan_func_exit", Attr, IRB.getVoidTy()); in initialize() 258 TsanIgnoreBegin = M.getOrInsertFunction("__tsan_ignore_thread_begin", Attr, in initialize() 261 M.getOrInsertFunction("__tsan_ignore_thread_end", Attr, IRB.getVoidTy()); in initialize() 269 TsanRead[i] = M.getOrInsertFunction(ReadName, Attr, IRB.getVoidTy(), in initialize() 273 TsanWrite[i] = M.getOrInsertFunction(WriteName, Attr, IRB.getVoidTy(), in initialize() 277 TsanUnalignedRead[i] = M.getOrInsertFunction( in initialize() 281 TsanUnalignedWrite[i] = M.getOrInsertFunction( in initialize() 285 TsanVolatileRead[i] = M.getOrInsertFunction( in initialize() 289 TsanVolatileWrite[i] = M.getOrInsertFunction( in initialize() [all …]
|
D | SanitizerCoverage.cpp | 417 M.getOrInsertFunction(SanCovTracePCIndirName, VoidTy, IntptrTy); in instrumentModule() 427 M.getOrInsertFunction(SanCovTraceCmp1, SanCovTraceCmpZeroExtAL, VoidTy, in instrumentModule() 430 M.getOrInsertFunction(SanCovTraceCmp2, SanCovTraceCmpZeroExtAL, VoidTy, in instrumentModule() 433 M.getOrInsertFunction(SanCovTraceCmp4, SanCovTraceCmpZeroExtAL, VoidTy, in instrumentModule() 436 M.getOrInsertFunction(SanCovTraceCmp8, VoidTy, Int64Ty, Int64Ty); in instrumentModule() 438 SanCovTraceConstCmpFunction[0] = M.getOrInsertFunction( in instrumentModule() 440 SanCovTraceConstCmpFunction[1] = M.getOrInsertFunction( in instrumentModule() 442 SanCovTraceConstCmpFunction[2] = M.getOrInsertFunction( in instrumentModule() 445 M.getOrInsertFunction(SanCovTraceConstCmp8, VoidTy, Int64Ty, Int64Ty); in instrumentModule() 451 M.getOrInsertFunction(SanCovTraceDiv4, AL, VoidTy, IRB.getInt32Ty()); in instrumentModule() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | ThreadSanitizer.cpp | 209 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 …]
|
D | SanitizerCoverage.cpp | 384 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/ |
D | ThreadSanitizer.cpp | 153 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 …]
|
D | SanitizerCoverage.cpp | 222 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()
|
D | EfficiencySanitizer.cpp | 257 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()
|
D | AddressSanitizer.cpp | 1368 AsanPoisonGlobals = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks() 1371 AsanUnpoisonGlobals = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks() 1376 AsanRegisterGlobals = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks() 1380 M.getOrInsertFunction(kAsanUnregisterGlobalsName, IRB.getVoidTy(), in initializeCallbacks() 1387 M.getOrInsertFunction(kAsanRegisterImageGlobalsName, in initializeCallbacks() 1392 M.getOrInsertFunction(kAsanUnregisterImageGlobalsName, in initializeCallbacks() 1650 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks() 1654 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks() 1661 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks() 1665 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks() [all …]
|
/external/llvm-project/llvm/lib/Analysis/ |
D | CallGraph.cpp | 34 : M(M), ExternalCallingNode(getOrInsertFunction(nullptr)), in CallGraph() 78 CallGraphNode *Node = getOrInsertFunction(F); in addToCallGraph() 108 Node->addCalledFunction(Call, getOrInsertFunction(Callee)); in populateCallGraphNode() 112 Node->addCalledFunction(nullptr, getOrInsertFunction(CB)); in populateCallGraphNode() 187 CallGraphNode *CallGraph::getOrInsertFunction(const Function *F) { in getOrInsertFunction() function in CallGraph 236 removeOneAbstractEdgeTo(CG->getOrInsertFunction(CB)); in removeCallEdgeFor() 289 OldCBs.push_back(CG->getOrInsertFunction(CB)); in replaceCallEdge() 292 NewCBs.push_back(CG->getOrInsertFunction(CB)); in replaceCallEdge()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | CallGraphUpdater.cpp | 42 CallGraphNode *DeadCGN = CG->getOrInsertFunction(DeadFn); in finalize() 89 CallGraphNode *OldCGN = CG->getOrInsertFunction(&Fn); in reanalyzeFunction() 126 CallGraphNode *NewCGN = CG->getOrInsertFunction(&NewFn); in replaceFunctionWith() 147 CG->getOrInsertFunction(NewCS.getCalledFunction()); in replaceCallSite()
|
D | SanitizerStats.cpp | 60 M->getOrInsertFunction("__sanitizer_stat_report", StatReportTy); in create() 101 M->getOrInsertFunction("__sanitizer_stat_init", StatInitTy); in finish()
|
/external/llvm/unittests/IR/ |
D | VerifierTest.cpp | 30 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/ |
D | SIAnnotateControlFlow.cpp | 143 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/ |
D | Module.cpp | 121 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/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | Module.h | 345 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/ObjCARC/ |
D | ARCRuntimeEntryPoints.h | 136 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/llvm/lib/Transforms/Utils/ |
D | BuildLibCalls.cpp | 724 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-project/llvm/include/llvm/IR/ |
D | Module.h | 349 FunctionCallee getOrInsertFunction(StringRef Name, FunctionType *T, 352 FunctionCallee getOrInsertFunction(StringRef Name, FunctionType *T); 361 FunctionCallee getOrInsertFunction(StringRef Name, in getOrInsertFunction() function 365 return getOrInsertFunction(Name, in getOrInsertFunction() 372 FunctionCallee getOrInsertFunction(StringRef Name, Type *RetTy, in getOrInsertFunction() function 374 return getOrInsertFunction(Name, AttributeList{}, RetTy, Args...); in getOrInsertFunction() 380 getOrInsertFunction(StringRef Name, AttributeList AttributeList,
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/codegen/templates/ |
D | gen_builder.hpp | 59 …Function* pFunc = cast<Function>(JM()->mpCurrentModule->getOrInsertFunction("meta.intrinsic.${func… 61 …Function* pFunc = cast<Function>(JM()->mpCurrentModule->getOrInsertFunction("meta.intrinsic.${func…
|
/external/llvm/examples/HowToUseJIT/ |
D | HowToUseJIT.cpp | 74 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/ |
D | CallGraph.cpp | 32 : 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/llvm/lib/Analysis/ |
D | CallGraph.cpp | 24 : 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/ |
D | elemental_ir_emitter.cc | 59 ->getOrInsertFunction(function_name, lhs->getType(), lhs->getType(), in EmitAtan2() 94 ->getOrInsertFunction(function_name, value->getType(), in EmitTanh()
|
/external/llvm/examples/BrainF/ |
D | BrainF.cpp | 77 getOrInsertFunction("getchar", IntegerType::getInt32Ty(C), NULL)); in header() 81 getOrInsertFunction("putchar", IntegerType::getInt32Ty(C), in header() 88 getOrInsertFunction("brainf", Type::getVoidTy(C), NULL)); in header() 158 getOrInsertFunction("puts", IntegerType::getInt32Ty(C), in header()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | BuildLibCalls.cpp | 838 FunctionCallee Callee = M->getOrInsertFunction(FuncName, FuncType); in emitLibCall() 916 FunctionCallee MemCpy = M->getOrInsertFunction( in emitMemCpyChk() 1049 M->getOrInsertFunction(Name, Op->getType(), Op->getType()); in emitUnaryFloatFnCallHelper() 1090 FunctionCallee Callee = M->getOrInsertFunction(Name, Op1->getType(), in emitBinaryFloatFnCallHelper() 1137 M->getOrInsertFunction(PutCharName, B.getInt32Ty(), B.getInt32Ty()); in emitPutChar() 1160 M->getOrInsertFunction(PutsName, B.getInt32Ty(), B.getInt8PtrTy()); in emitPutS() 1176 FunctionCallee F = M->getOrInsertFunction(FPutcName, B.getInt32Ty(), in emitFPutC() 1197 FunctionCallee F = M->getOrInsertFunction(FPutcUnlockedName, B.getInt32Ty(), in emitFPutCUnlocked() 1217 FunctionCallee F = M->getOrInsertFunction(FPutsName, B.getInt32Ty(), in emitFPutS() 1236 FunctionCallee F = M->getOrInsertFunction(FPutsUnlockedName, B.getInt32Ty(), in emitFPutSUnlocked() [all …]
|