Searched refs:getOrInsertFunction (Results 1 - 25 of 34) sorted by relevance

12

/external/llvm/examples/HowToUseJIT/
H A DHowToUseJIT.cpp65 cast<Function>(M->getOrInsertFunction("add1", Type::getInt32Ty(Context),
97 cast<Function>(M->getOrInsertFunction("foo", Type::getInt32Ty(Context),
/external/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp128 Value *TsanInit = M.getOrInsertFunction("__tsan_init",
133 TsanFuncEntry = checkInterfaceFunction(M.getOrInsertFunction(
135 TsanFuncExit = checkInterfaceFunction(M.getOrInsertFunction(
142 TsanRead[i] = checkInterfaceFunction(M.getOrInsertFunction(
146 TsanWrite[i] = checkInterfaceFunction(M.getOrInsertFunction(
153 TsanAtomicLoad[i] = checkInterfaceFunction(M.getOrInsertFunction(
158 TsanAtomicStore[i] = checkInterfaceFunction(M.getOrInsertFunction(
162 TsanVptrUpdate = checkInterfaceFunction(M.getOrInsertFunction(
H A DAddressSanitizer.cpp430 // Validate the result of Module::getOrInsertFunction called for an interface
433 // getOrInsertFunction returns a bitcast.
524 Function *AsanPoisonGlobals = checkInterfaceFunction(M.getOrInsertFunction(
527 Function *AsanUnpoisonGlobals = checkInterfaceFunction(M.getOrInsertFunction(
705 Function *AsanRegisterGlobals = checkInterfaceFunction(M.getOrInsertFunction(
722 checkInterfaceFunction(M.getOrInsertFunction(
758 M.getOrInsertFunction(kAsanInitName, IRB.getVoidTy(), NULL));
771 M.getOrInsertFunction(FunctionName, IRB.getVoidTy(), IntptrTy, NULL));
925 IRB.CreateCall(M.getOrInsertFunction(kAsanHandleNoReturnName,
1090 Value *AsanStackMallocFunc = M.getOrInsertFunction(
[all...]
H A DGCOVProfiling.cpp580 return M->getOrInsertFunction("llvm_gcda_start_file", FTy);
591 return M->getOrInsertFunction("__llvm_gcov_indirect_counter_increment", FTy);
600 return M->getOrInsertFunction("llvm_gcda_emit_function", FTy);
610 return M->getOrInsertFunction("llvm_gcda_emit_arcs", FTy);
615 return M->getOrInsertFunction("llvm_gcda_end_file", FTy);
689 Constant *AtExitFn = M->getOrInsertFunction("atexit", FTy);
H A DProfilingUtils.cpp33 Constant *InitFn = M.getOrInsertFunction(FnName, Type::getInt32Ty(Context),
H A DPathProfiling.cpp1354 llvmIncrementHashFunction = M.getOrInsertFunction(
1361 llvmDecrementHashFunction = M.getOrInsertFunction(
/external/llvm/lib/Transforms/Utils/
H A DBuildLibCalls.cpp49 Constant *StrLen = M->getOrInsertFunction("strlen", AttrListPtr::get(AWI),
75 Constant *StrNLen = M->getOrInsertFunction("strnlen", AttrListPtr::get(AWI),
101 Constant *StrChr = M->getOrInsertFunction("strchr", AttrListPtr::get(AWI),
125 Value *StrNCmp = M->getOrInsertFunction("strncmp", AttrListPtr::get(AWI),
152 Value *StrCpy = M->getOrInsertFunction(Name, AttrListPtr::get(AWI),
174 Value *StrNCpy = M->getOrInsertFunction(Name, AttrListPtr::get(AWI),
197 Value *MemCpy = M->getOrInsertFunction("__memcpy_chk",
224 Value *MemChr = M->getOrInsertFunction("memchr", AttrListPtr::get(AWI),
253 Value *MemCmp = M->getOrInsertFunction("memcmp", AttrListPtr::get(AWI),
285 Value *Callee = M->getOrInsertFunction(Nam
[all...]
/external/llvm/lib/VMCore/
H A DModule.cpp134 // getOrInsertFunction - Look up the specified function in the module symbol
139 Constant *Module::getOrInsertFunction(StringRef Name, function in class:Module
158 Constant *NewF = getOrInsertFunction(Name, Ty);
189 Constant *Module::getOrInsertFunction(StringRef Name, function in class:Module
191 return getOrInsertFunction(Name, Ty, AttrListPtr());
194 // getOrInsertFunction - Look up the specified function in the module symbol
199 Constant *Module::getOrInsertFunction(StringRef Name, function in class:Module
212 // Build the function type and chain to the other getOrInsertFunction...
213 return getOrInsertFunction(Name,
218 Constant *Module::getOrInsertFunction(StringRe function in class:Module
[all...]
/external/llvm/lib/Analysis/IPA/
H A DCallGraph.cpp54 ExternalCallingNode = getOrInsertFunction(0);
115 CallGraphNode *Node = getOrInsertFunction(F);
147 Node->addCalledFunction(CS, getOrInsertFunction(Callee));
243 // getOrInsertFunction - This method is identical to calling operator[], but
246 CallGraphNode *CallGraph::getOrInsertFunction(const Function *F) { function in class:CallGraph
H A DCallGraphSCCPass.cpp283 CalleeNode = CG.getOrInsertFunction(Callee);
307 CalleeNode = CG.getOrInsertFunction(Callee);
/external/llvm/lib/Target/MBlaze/
H A DMBlazeIntrinsicInfo.cpp108 return cast<Function>(M->getOrInsertFunction(getName(IntrID),
/external/llvm/examples/BrainF/
H A DBrainF.cpp64 getOrInsertFunction("getchar", IntegerType::getInt32Ty(C), NULL));
68 getOrInsertFunction("putchar", IntegerType::getInt32Ty(C),
76 getOrInsertFunction("brainf", Type::getVoidTy(C), NULL));
150 getOrInsertFunction("puts", IntegerType::getInt32Ty(C),
H A DBrainFDriver.cpp60 getOrInsertFunction("main", IntegerType::getInt32Ty(mod->getContext()),
/external/llvm/include/llvm/
H A DModule.h312 /// getOrInsertFunction - Look up the specified function in the module symbol
321 Constant *getOrInsertFunction(StringRef Name, FunctionType *T,
324 Constant *getOrInsertFunction(StringRef Name, FunctionType *T);
326 /// getOrInsertFunction - Look up the specified function in the module symbol
333 Constant *getOrInsertFunction(StringRef Name,
337 /// getOrInsertFunction - Same as above, but without the attributes.
338 Constant *getOrInsertFunction(StringRef Name, Type *RetTy, ...)
/external/llvm/examples/Fibonacci/
H A Dfibonacci.cpp43 cast<Function>(M->getOrInsertFunction("fib", Type::getInt32Ty(Context),
/external/llvm/examples/ParallelJIT/
H A DParallelJIT.cpp38 cast<Function>(M->getOrInsertFunction("add1",
69 cast<Function>(M->getOrInsertFunction("fib",
/external/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp35 M.getOrInsertFunction(Name, FunctionType::get(RetTy, ParamTys, false));
75 Constant* FCache = M->getOrInsertFunction(NewFn,
114 M.getOrInsertFunction("memcpy",
121 M.getOrInsertFunction("memmove",
128 M.getOrInsertFunction("memset",
H A DDwarfEHPrepare.cpp130 RewindFunction = Fn.getParent()->getOrInsertFunction(RewindName, FTy);
H A DStackProtector.cpp278 M->getOrInsertFunction("__stack_chk_fail",
H A DSjLjEHPrepare.cpp103 RegisterFn = M.getOrInsertFunction("_Unwind_SjLj_Register",
108 M.getOrInsertFunction("_Unwind_SjLj_Unregister",
H A DShadowStackGC.cpp149 getOrInsertFunction("__gcc_personality_v0",
/external/llvm/include/llvm/Analysis/
H A DCallGraph.h136 /// getOrInsertFunction - This method is identical to calling operator[], but
139 CallGraphNode *getOrInsertFunction(const Function *F);
/external/llvm/unittests/Analysis/
H A DScalarEvolutionTest.cpp42 Function *F = cast<Function>(M.getOrInsertFunction("f", FTy));
95 Function *F = cast<Function>(M.getOrInsertFunction("f", FTy));
/external/llvm/lib/Transforms/Scalar/
H A DObjCARC.cpp1781 M->getOrInsertFunction("objc_retainAutoreleasedReturnValue", FTy,
1795 M->getOrInsertFunction("objc_autoreleaseReturnValue", FTy,
1807 M->getOrInsertFunction(
1821 M->getOrInsertFunction(
1836 M->getOrInsertFunction(
1850 M->getOrInsertFunction(
3826 M->getOrInsertFunction(
3842 M->getOrInsertFunction("objc_retainAutorelease", FTy, Attributes);
3855 M->getOrInsertFunction("objc_retainAutoreleaseReturnValue", FTy,
H A DLoopIdiomRecognize.cpp520 Value *MSP = M->getOrInsertFunction("memset_pattern16",

Completed in 311 milliseconds

12