HomeSort by: relevance | last modified time | path
    Searched refs:Malloc (Results 1 - 7 of 7) sorted by relevancy

  /src/bin/csh/
alloc.c 51 Malloc(size_t n)
55 if ((ptr = malloc(n)) == NULL) {
csh.h 87 #define xmalloc(i) Malloc(i)
extern.h 315 void * Malloc(size_t);
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
SimplifyLibCalls.cpp 1158 /// Fold memset[_chk](malloc(n), 0, n) --> calloc(1, n).
1165 // TODO: We should handle the case where the malloc has more than one use.
1167 // the malloc is checked against null or when a memset intrinsic is used in
1169 auto *Malloc = dyn_cast<CallInst>(Memset->getArgOperand(0));
1170 if (!Malloc || !Malloc->hasOneUse())
1173 // Is the inner call really malloc()?
1174 Function *InnerCallee = Malloc->getCalledFunction();
1183 // The memset must cover the same number of bytes that are malloc'd.
1184 if (Memset->getArgOperand(2) != Malloc->getArgOperand(0)
    [all...]
BuildLibCalls.cpp 1646 FunctionCallee Malloc = M->getOrInsertFunction(MallocName, B.getInt8PtrTy(),
1649 CallInst *CI = B.CreateCall(Malloc, Num, MallocName);
1652 dyn_cast<Function>(Malloc.getCallee()->stripPointerCasts()))
  /src/external/apache2/llvm/dist/llvm/lib/IR/
Core.cpp 3485 Instruction* Malloc = CallInst::CreateMalloc(unwrap(B)->GetInsertBlock(),
3488 return wrap(unwrap(B)->Insert(Malloc, Twine(Name)));
3496 Instruction* Malloc = CallInst::CreateMalloc(unwrap(B)->GetInsertBlock(),
3499 return wrap(unwrap(B)->Insert(Malloc, Twine(Name)));
  /src/sys/external/bsd/compiler_rt/dist/lib/msan/tests/
msan_test.cc 93 # include <malloc.h>
234 // Check that malloc poisons memory.
237 int *x = (int*)malloc(sizeof(int));
332 // malloc() in the following test may be optimized to produce a compile-time
335 S4 *x = (int*)malloc(sizeof(S4));
340 TEST(MemorySanitizer, Malloc) {
341 S4 *x = (int*)Ident(malloc(sizeof(S4)));
1484 char *dst = (char *)malloc(sz);
1490 char *src = (char *)malloc(sz);
4570 char *array = reinterpret_cast<char*>(malloc(100))
    [all...]

Completed in 47 milliseconds