Home
last modified time | relevance | path

Searched refs:Calloc (Results 1 – 5 of 5) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp789 Value *Calloc = M->getOrInsertFunction("calloc", Attrs, B.getInt8PtrTy(), in emitCalloc() local
791 CallInst *CI = B.CreateCall(Calloc, { Num, Size }, "calloc"); in emitCalloc()
793 if (const auto *F = dyn_cast<Function>(Calloc->stripPointerCasts())) in emitCalloc()
831 Value *Calloc = emitCalloc(ConstantInt::get(SizeType, 1), in foldMallocMemset() local
834 if (!Calloc) in foldMallocMemset()
837 Malloc->replaceAllUsesWith(Calloc); in foldMallocMemset()
840 return Calloc; in foldMallocMemset()
844 if (auto *Calloc = foldMallocMemset(CI, B, *TLI)) in optimizeMemSet() local
845 return Calloc; in optimizeMemSet()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp897 Value *Calloc = emitCalloc(ConstantInt::get(SizeType, 1), in foldMallocMemset() local
900 if (!Calloc) in foldMallocMemset()
903 Malloc->replaceAllUsesWith(Calloc); in foldMallocMemset()
906 return Calloc; in foldMallocMemset()
910 if (auto *Calloc = foldMallocMemset(CI, B, *TLI)) in optimizeMemSet() local
911 return Calloc; in optimizeMemSet()
DBuildLibCalls.cpp1131 Value *Calloc = M->getOrInsertFunction(CallocName, Attrs, B.getInt8PtrTy(), in emitCalloc() local
1134 CallInst *CI = B.CreateCall(Calloc, {Num, Size}, CallocName); in emitCalloc()
1136 if (const auto *F = dyn_cast<Function>(Calloc->stripPointerCasts())) in emitCalloc()
/external/compiler-rt/lib/asan/
Dasan_allocator.cc564 void *Calloc(uptr nmemb, uptr size, BufferedStackTrace *stack) { in Calloc() function
738 return instance.Calloc(nmemb, size, stack); in asan_calloc()
/external/compiler-rt/lib/msan/tests/
Dmsan_test.cc351 TEST(MemorySanitizer, Calloc) { in TEST() argument