Home
last modified time | relevance | path

Searched refs:Malloc (Results 1 – 25 of 30) 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.h476 void *Malloc(size_t, const char *, int);
494 #define malloc(x) Malloc(x, __FILE__, __LINE__)
501 #define malloc(x) Malloc(x, NULL, 0)
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DDeadStoreElimination.cpp2026 auto *Malloc = const_cast<CallInst *>(dyn_cast<CallInst>(DefUO)); in tryFoldIntoCalloc() local
2027 if (!Malloc) in tryFoldIntoCalloc()
2029 auto *InnerCallee = Malloc->getCalledFunction(); in tryFoldIntoCalloc()
2036 Attribute Attr = Malloc->getFnAttr("alloc-variant-zeroed"); in tryFoldIntoCalloc()
2045 auto *MallocDef = dyn_cast_or_null<MemoryDef>(MSSA.getMemoryAccess(Malloc)); in tryFoldIntoCalloc()
2049 auto shouldCreateCalloc = [](CallInst *Malloc, CallInst *Memset) { in tryFoldIntoCalloc() argument
2052 auto *MallocBB = Malloc->getParent(), in tryFoldIntoCalloc()
2068 if (Malloc->getOperand(0) != MemSet->getLength()) in tryFoldIntoCalloc()
2070 if (!shouldCreateCalloc(Malloc, MemSet) || !DT.dominates(Malloc, MemSet) || in tryFoldIntoCalloc()
2071 !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.h476 Origin != Chunk::Origin::Malloc)
508 void *NewPtr = allocate(NewSize, Chunk::Origin::Malloc, Alignment);
536 if (UNLIKELY(Header.OriginOrWasZeroed != Chunk::Origin::Malloc))
539 Chunk::Origin::Malloc);
597 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.cpp321 if (auto address_or_error = m_execution_unit_sp->Malloc( in PrepareToExecuteJITExpression()
349 if (auto address_or_error = m_execution_unit_sp->Malloc( in PrepareToExecuteJITExpression()
H A DIRInterpreter.cpp338 lldb::addr_t data_address = Malloc(value->getType()); in MakeArgument()
393 lldb::addr_t Malloc(size_t size, uint8_t byte_alignment) { in Malloc() function in InterpreterStackFrame
406 lldb::addr_t Malloc(llvm::Type *type) { in Malloc() function in InterpreterStackFrame
409 return Malloc(m_target_data.getTypeAllocSize(type), in Malloc()
445 lldb::addr_t data_address = Malloc(value->getType()); in ResolveValue()
902 lldb::addr_t R = frame.Malloc(T); in Interpret()
910 lldb::addr_t P = frame.Malloc(Tptr); in Interpret()
H A DMaterializer.cpp79 auto address_or_error = map.Malloc( in MakeAllocation()
564 if (auto address_or_error = map.Malloc( in Materialize()
965 if (auto address_or_error = map.Malloc( in Materialize()
H A DIRExecutionUnit.cpp61 Malloc(size, 8, lldb::ePermissionsWritable | lldb::ePermissionsReadable, in WriteNow()
1108 Malloc(record.m_size, record.m_alignment, record.m_permissions, in CommitOneAllocation()
H A DIRMemoryMap.cpp323 IRMemoryMap::Malloc(size_t size, uint8_t alignment, uint32_t permissions, in Malloc() function in IRMemoryMap
/freebsd/contrib/llvm-project/lldb/include/lldb/Expression/
H A DIRMemoryMap.h57 llvm::Expected<lldb::addr_t> Malloc(size_t size, uint8_t alignment,
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp69 Malloc, enumerator
82 case MallocFamily::Malloc: in mangledNameForMallocFamily()
151 …ibFunc_strdup, {StrDupLike, 1, -1, -1, -1, MallocFamily::Malloc}},
152 …ibFunc_dunder_strdup, {StrDupLike, 1, -1, -1, -1, MallocFamily::Malloc}},
153 …ibFunc_strndup, {StrDupLike, 2, 1, -1, -1, MallocFamily::Malloc}},
154 …ibFunc_dunder_strndup, {StrDupLike, 2, 1, -1, -1, MallocFamily::Malloc}},
/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) in 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.cpp2077 FunctionCallee Malloc = in emitMalloc() local
2080 CallInst *CI = B.CreateCall(Malloc, Num, MallocName); in emitMalloc()
2083 dyn_cast<Function>(Malloc.getCallee()->stripPointerCasts())) in emitMalloc()

12