Home
last modified time | relevance | path

Searched refs:Malloc (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/stand/libsa/
H A Dzalloc_malloc.c57 Malloc(size_t bytes, const char *file __unused, int line __unused) in Malloc() function
160 if ((res = Malloc(bytes, file, line)) != NULL) { in Calloc()
182 if ((res = Malloc(size, file, line)) != NULL) { in Realloc()
H A Dstand.h464 void *Malloc(size_t, const char *, int);
482 #define malloc(x) Malloc(x, __FILE__, __LINE__)
489 #define malloc(x) Malloc(x, NULL, 0)
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DDeadStoreElimination.cpp1868 auto *Malloc = const_cast<CallInst *>(dyn_cast<CallInst>(DefUO)); in tryFoldIntoCalloc() local
1869 if (!Malloc) in tryFoldIntoCalloc()
1871 auto *InnerCallee = Malloc->getCalledFunction(); in tryFoldIntoCalloc()
1879 auto *MallocDef = dyn_cast_or_null<MemoryDef>(MSSA.getMemoryAccess(Malloc)); in tryFoldIntoCalloc()
1883 auto shouldCreateCalloc = [](CallInst *Malloc, CallInst *Memset) { in tryFoldIntoCalloc() argument
1886 auto *MallocBB = Malloc->getParent(), in tryFoldIntoCalloc()
1902 if (Malloc->getOperand(0) != MemSet->getLength()) in tryFoldIntoCalloc()
1904 if (!shouldCreateCalloc(Malloc, MemSet) || in tryFoldIntoCalloc()
1905 !DT.dominates(Malloc, MemSet) || in tryFoldIntoCalloc()
1906 !memoryIsNotModifiedBetween(Malloc, MemSet, BatchAA, DL, &DT)) in tryFoldIntoCalloc()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dwrappers_c.inc60 void *Ptr = SCUDO_ALLOCATOR.allocate(Product, scudo::Chunk::Origin::Malloc,
68 SCUDO_ALLOCATOR.deallocate(ptr, scudo::Chunk::Origin::Malloc);
110 void *Ptr = SCUDO_ALLOCATOR.allocate(size, scudo::Chunk::Origin::Malloc,
185 void *Ptr = SCUDO_ALLOCATOR.allocate(size, scudo::Chunk::Origin::Malloc,
192 SCUDO_ALLOCATOR.deallocate(ptr, scudo::Chunk::Origin::Malloc);
311 SCUDO_ALLOCATOR.allocate(size, scudo::Chunk::Origin::Malloc, alignment);
H A Dchunk.h56 Malloc = 0, enumerator
H A Dcombined.h468 Origin != Chunk::Origin::Malloc)
500 void *NewPtr = allocate(NewSize, Chunk::Origin::Malloc, Alignment);
528 if (UNLIKELY(Header.OriginOrWasZeroed != Chunk::Origin::Malloc))
531 Chunk::Origin::Malloc);
589 void *NewPtr = allocate(NewSize, Chunk::Origin::Malloc, Alignment);
/freebsd/tools/tools/bootparttest/
H A Dstub.c32 Malloc(size_t size, const char *file, int line) in Malloc() function
/freebsd/sys/kern/
H A Dsubr_unit.c92 #define Malloc(foo) malloc(foo, M_UNIT, M_WAITOK | M_ZERO) macro
119 #define Malloc(foo) _Malloc(foo, __LINE__) macro
242 iter = Malloc(sizeof(*iter)); in create_iter_unr()
492 uh = Malloc(sizeof *uh); in new_unrhdr()
897 p1 = Malloc(sizeof(struct unr)); in alloc_unr_specific()
898 p2 = Malloc(sizeof(struct unr)); in alloc_unr_specific()
1033 p1 = Malloc(sizeof(struct unr)); in free_unr()
1034 p2 = Malloc(sizeof(struct unr)); in free_unr()
/freebsd/sys/sys/
H A Dmalloc.h298 extern void *Malloc(size_t bytes, const char *file, int line);
303 * Define the simple alloc / free routines in terms of Malloc and
312 void *p = Malloc((size), __FILE__, __LINE__); \
/freebsd/contrib/llvm-project/lldb/source/Expression/
H A DLLVMUserExpression.cpp316 m_materialized_address = m_execution_unit_sp->Malloc( in PrepareToExecuteJITExpression()
347 m_stack_frame_bottom = m_execution_unit_sp->Malloc( in PrepareToExecuteJITExpression()
H A DIRInterpreter.cpp340 lldb::addr_t data_address = Malloc(value->getType()); in MakeArgument()
395 lldb::addr_t Malloc(size_t size, uint8_t byte_alignment) { in Malloc() function in InterpreterStackFrame
408 lldb::addr_t Malloc(llvm::Type *type) { in Malloc() function in InterpreterStackFrame
411 return Malloc(m_target_data.getTypeAllocSize(type), in Malloc()
447 lldb::addr_t data_address = Malloc(value->getType()); in ResolveValue()
908 lldb::addr_t R = frame.Malloc(T); in Interpret()
917 lldb::addr_t P = frame.Malloc(Tptr); in Interpret()
H A DMaterializer.cpp80 lldb::addr_t mem = map.Malloc( in MakeAllocation()
559 m_temporary_allocation = map.Malloc( in Materialize()
957 m_temporary_allocation = map.Malloc( in Materialize()
H A DIRExecutionUnit.cpp61 Malloc(size, 8, lldb::ePermissionsWritable | lldb::ePermissionsReadable, in WriteNow()
1072 Malloc(record.m_size, record.m_alignment, record.m_permissions, in CommitOneAllocation()
H A DIRMemoryMap.cpp314 lldb::addr_t IRMemoryMap::Malloc(size_t size, uint8_t alignment, in Malloc() function in IRMemoryMap
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp70 Malloc, enumerator
83 case MallocFamily::Malloc: in mangledNameForMallocFamily()
152 …ibFunc_strdup, {StrDupLike, 1, -1, -1, -1, MallocFamily::Malloc}},
153 …ibFunc_dunder_strdup, {StrDupLike, 1, -1, -1, -1, MallocFamily::Malloc}},
154 …ibFunc_strndup, {StrDupLike, 2, 1, -1, -1, MallocFamily::Malloc}},
155 …ibFunc_dunder_strndup, {StrDupLike, 2, 1, -1, -1, MallocFamily::Malloc}},
/freebsd/contrib/llvm-project/lldb/include/lldb/Expression/
H A DIRMemoryMap.h53 lldb::addr_t Malloc(size_t size, uint8_t alignment, uint32_t permissions,
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_flags.inc66 // Malloc / free bisection. Only tag malloc and free calls when a hash of
/freebsd/contrib/tcsh/
H A Dsrc.desc43 tc.alloc.c: Malloc/Free
/freebsd/crypto/heimdal/lib/roken/
H A Dglob.hin93 #define GLOB_NOSPACE (-1) /* Malloc call failed. */
/freebsd/sys/netgraph/
H A DNOTES73 - Malloc all memory with type M_NETGRAPH. -DONE
/freebsd/sbin/fsck_ffs/
H A Dfsck.h413 Malloc(size_t size)
417 Malloc(size_t size) Malloc() function
H A Dpass1.c574 new = (struct dups *)Malloc(sizeof(struct dups)); in pass1check()
H A Dfsutil.c206 bp = (struct bufarea *)Malloc(sizeof(struct bufarea)); in allocbuf()
H A Dinode.c1158 Malloc(sizeof(*inp) + (blks - 1) * sizeof(ufs2_daddr_t)); in cacheino()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBuildLibCalls.cpp1919 FunctionCallee Malloc = getOrInsertLibFunc(M, *TLI, LibFunc_malloc, in emitMalloc() local
1922 CallInst *CI = B.CreateCall(Malloc, Num, MallocName); in emitMalloc()
1925 dyn_cast<Function>(Malloc.getCallee()->stripPointerCasts())) in emitMalloc()

12