Home
last modified time | relevance | path

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

1234567

/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DBuildLibCalls.cpp41 Constant *StrLen = M->getOrInsertFunction("strlen", AttrListPtr::get(AWI, 2), in EmitStrLen()
63 Constant *StrChr = M->getOrInsertFunction("strchr", AttrListPtr::get(&AWI, 1), in EmitStrChr()
83 Value *StrNCmp = M->getOrInsertFunction("strncmp", AttrListPtr::get(AWI, 3), in EmitStrNCmp()
106 Value *StrCpy = M->getOrInsertFunction(Name, AttrListPtr::get(AWI, 2), in EmitStrCpy()
124 Value *StrNCpy = M->getOrInsertFunction(Name, AttrListPtr::get(AWI, 2), in EmitStrNCpy()
143 Value *MemCpy = M->getOrInsertFunction("__memcpy_chk", in EmitMemCpyChk()
166 Value *MemChr = M->getOrInsertFunction("memchr", AttrListPtr::get(&AWI, 1), in EmitMemChr()
191 Value *MemCmp = M->getOrInsertFunction("memcmp", AttrListPtr::get(AWI, 3), in EmitMemCmp()
226 Value *Callee = M->getOrInsertFunction(Name, Op->getType(), in EmitUnaryFloatFnCall()
240 Value *PutChar = M->getOrInsertFunction("putchar", B.getInt32Ty(), in EmitPutChar()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp162 TsanFuncEntry = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
165 M.getOrInsertFunction("__tsan_func_exit", Attr, IRB.getVoidTy())); in initializeCallbacks()
166 TsanIgnoreBegin = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
168 TsanIgnoreEnd = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
177 TsanRead[i] = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
181 TsanWrite[i] = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
186 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
191 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
198 M.getOrInsertFunction(AtomicLoadName, Attr, Ty, PtrTy, OrdTy)); in initializeCallbacks()
201 TsanAtomicStore[i] = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
[all …]
DSanitizerCoverage.cpp313 M.getOrInsertFunction(SanCovTracePCIndirName, VoidTy, IntptrTy)); in runOnModule()
315 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in runOnModule()
318 M.getOrInsertFunction(SanCovTraceCmp2, VoidTy, IRB.getInt16Ty(), in runOnModule()
321 M.getOrInsertFunction(SanCovTraceCmp4, VoidTy, IRB.getInt32Ty(), in runOnModule()
324 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in runOnModule()
328 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in runOnModule()
331 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in runOnModule()
334 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in runOnModule()
337 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in runOnModule()
341 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in runOnModule()
[all …]
DEfficiencySanitizer.cpp269 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
273 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
277 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
281 checkSanitizerInterfaceFunction(M.getOrInsertFunction( in initializeCallbacks()
285 M.getOrInsertFunction("__esan_unaligned_loadN", IRB.getVoidTy(), in initializeCallbacks()
288 M.getOrInsertFunction("__esan_unaligned_storeN", IRB.getVoidTy(), in initializeCallbacks()
291 M.getOrInsertFunction("memmove", IRB.getInt8PtrTy(), IRB.getInt8PtrTy(), in initializeCallbacks()
294 M.getOrInsertFunction("memcpy", IRB.getInt8PtrTy(), IRB.getInt8PtrTy(), in initializeCallbacks()
297 M.getOrInsertFunction("memset", IRB.getInt8PtrTy(), IRB.getInt8PtrTy(), in initializeCallbacks()
530 M.getOrInsertFunction(EsanExitName, IRB_Dtor.getVoidTy(), in createDestructor()
/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-7.0/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()
177 auto *F = cast<Function>(M.getOrInsertFunction( in TEST()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DModule.cpp139 Constant *Module::getOrInsertFunction(StringRef Name, in getOrInsertFunction() function in Module
158 Constant *NewF = getOrInsertFunction(Name, Ty); in getOrInsertFunction()
189 Constant *Module::getOrInsertFunction(StringRef Name, in getOrInsertFunction() function in Module
192 return getOrInsertFunction(Name, Ty, AttributeList); in getOrInsertFunction()
200 Constant *Module::getOrInsertFunction(StringRef Name, in getOrInsertFunction() function in Module
214 return getOrInsertFunction(Name, in getOrInsertFunction()
219 Constant *Module::getOrInsertFunction(StringRef Name, in getOrInsertFunction() function in Module
232 return getOrInsertFunction(Name, in getOrInsertFunction()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DBuildLibCalls.cpp768 Constant *StrLen = M->getOrInsertFunction(StrlenName, DL.getIntPtrType(Context), in emitStrLen()
788 M->getOrInsertFunction(StrChrName, I8Ptr, I8Ptr, I32Ty); in emitStrChr()
805 Value *StrNCmp = M->getOrInsertFunction(StrNCmpName, B.getInt32Ty(), in emitStrNCmp()
825 Value *StrCpy = M->getOrInsertFunction(Name, I8Ptr, I8Ptr, I8Ptr); in emitStrCpy()
841 Value *StrNCpy = M->getOrInsertFunction(Name, I8Ptr, I8Ptr, I8Ptr, in emitStrNCpy()
862 Value *MemCpy = M->getOrInsertFunction( in emitMemCpyChk()
882 Value *MemChr = M->getOrInsertFunction(MemChrName, B.getInt8PtrTy(), in emitMemChr()
902 Value *MemCmp = M->getOrInsertFunction(MemCmpName, B.getInt32Ty(), in emitMemCmp()
936 Value *Callee = M->getOrInsertFunction(Name, Op->getType(), in emitUnaryFloatFnCall()
958 Value *Callee = M->getOrInsertFunction(Name, Op1->getType(), Op1->getType(), in emitBinaryFloatFnCall()
[all …]
/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/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/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/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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/ObjCARC/
DARCRuntimeEntryPoints.h144 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr); in getVoidRetI8XEntryPoint()
162 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr);
181 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr); in getI8XRetI8XXI8XEntryPoint()
/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/lib/Analysis/IPA/
DCallGraph.cpp54 ExternalCallingNode = getOrInsertFunction(0); in runOnModule()
115 CallGraphNode *Node = getOrInsertFunction(F); in addToCallGraph()
154 Node->addCalledFunction(CS, getOrInsertFunction(Callee)); in addToCallGraph()
251 CallGraphNode *CallGraph::getOrInsertFunction(const Function *F) { in getOrInsertFunction() function in CallGraph
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DCallGraph.cpp33 : M(M), ExternalCallingNode(getOrInsertFunction(nullptr)), in CallGraph()
62 CallGraphNode *Node = getOrInsertFunction(F); in addToCallGraph()
85 Node->addCalledFunction(CS, getOrInsertFunction(Callee)); in addToCallGraph()
150 CallGraphNode *CallGraph::getOrInsertFunction(const Function *F) { in getOrInsertFunction() function in CallGraph
/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/swiftshader/third_party/LLVM/examples/HowToUseJIT/
DHowToUseJIT.cpp65 cast<Function>(M->getOrInsertFunction("add1", Type::getInt32Ty(Context), in main()
97 cast<Function>(M->getOrInsertFunction("foo", Type::getInt32Ty(Context), in main()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DModule.h340 Constant *getOrInsertFunction(StringRef Name, FunctionType *T,
343 Constant *getOrInsertFunction(StringRef Name, FunctionType *T);
352 Constant *getOrInsertFunction(StringRef Name, in getOrInsertFunction() function
357 return getOrInsertFunction(Name, in getOrInsertFunction()
364 Constant *getOrInsertFunction(StringRef Name, Type *RetTy, ArgsTy... Args) { in getOrInsertFunction() function
365 return getOrInsertFunction(Name, AttributeList{}, RetTy, Args...); in getOrInsertFunction()
/external/swiftshader/third_party/llvm-7.0/llvm/examples/HowToUseJIT/
DHowToUseJIT.cpp73 cast<Function>(M->getOrInsertFunction("add1", Type::getInt32Ty(Context), in main()
103 cast<Function>(M->getOrInsertFunction("foo", Type::getInt32Ty(Context))); in main()
/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-7.0/llvm/unittests/Analysis/
DScalarEvolutionTest.cpp67 Function *F = cast<Function>(M.getOrInsertFunction("f", FTy)); in TEST_F()
116 Function *F = cast<Function>(M.getOrInsertFunction("f", FTy)); in TEST_F()
150 Function *F = cast<Function>(M.getOrInsertFunction("f", FTy)); in TEST_F()
333 Function *F = cast<Function>(M.getOrInsertFunction("f", FTy)); in TEST_F()
403 Function *F = cast<Function>(M.getOrInsertFunction("f", FTy)); in TEST_F()
439 Function *F = cast<Function>(M.getOrInsertFunction("f", FTy)); in TEST_F()
673 Function *F = cast<Function>(M.getOrInsertFunction("foo", FTy)); in TEST_F()
752 Function *F = cast<Function>(NIM.getOrInsertFunction("foo", FTy)); in TEST_F()
825 Function *F = cast<Function>(NIM.getOrInsertFunction("foo", FTy)); in TEST_F()
923 Function *F = cast<Function>(NIM.getOrInsertFunction("foo", FTy)); in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/BrainF/
DBrainF.cpp77 getOrInsertFunction("getchar", IntegerType::getInt32Ty(C))); in header()
81 getOrInsertFunction("putchar", IntegerType::getInt32Ty(C), in header()
88 getOrInsertFunction("brainf", Type::getVoidTy(C))); in header()
158 getOrInsertFunction("puts", IntegerType::getInt32Ty(C), in header()

1234567