Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/clang-analyzer/
H A Dunix.Malloc.rst1 .. title:: clang-tidy - clang-analyzer-unix.Malloc
5 clang-analyzer-unix.Malloc
8 The clang-analyzer-unix.Malloc check is an alias, please see
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/benchmarks/
H A Dmalloc_benchmark.cpp37 void *Ptr = Allocator->allocate(NBytes, scudo::Chunk::Origin::Malloc); in BM_malloc_free()
42 Allocator->deallocate(Ptr, scudo::Chunk::Origin::Malloc); in BM_malloc_free()
80 Ptr = Allocator->allocate(1 << SizeLog2, scudo::Chunk::Origin::Malloc); in BM_malloc_free_loop()
88 Allocator->deallocate(Ptr, scudo::Chunk::Origin::Malloc); in BM_malloc_free_loop()
/llvm-project-15.0.7/mlir/include/mlir/Conversion/LLVMCommon/
H A DLoweringOptions.h39 Malloc, enumerator
49 AllocLowering allocLowering = AllocLowering::Malloc;
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/
H A Dwrappers_c.inc32 Product, scudo::Chunk::Origin::Malloc, SCUDO_MALLOC_ALIGNMENT, true));
36 SCUDO_ALLOCATOR.deallocate(ptr, scudo::Chunk::Origin::Malloc);
76 size, scudo::Chunk::Origin::Malloc, SCUDO_MALLOC_ALIGNMENT));
142 size, scudo::Chunk::Origin::Malloc, SCUDO_MALLOC_ALIGNMENT));
144 SCUDO_ALLOCATOR.deallocate(ptr, scudo::Chunk::Origin::Malloc);
228 SCUDO_ALLOCATOR.allocate(size, scudo::Chunk::Origin::Malloc, alignment));
H A Dchunk.h56 Malloc = 0, enumerator
H A Dcombined.h557 Origin != Chunk::Origin::Malloc)
589 void *NewPtr = allocate(NewSize, Chunk::Origin::Malloc, Alignment);
617 if (UNLIKELY(OldHeader.OriginOrWasZeroed != Chunk::Origin::Malloc))
620 Chunk::Origin::Malloc);
666 void *NewPtr = allocate(NewSize, Chunk::Origin::Malloc, Alignment);
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DDeadStoreElimination.cpp1741 if (!Malloc) in tryFoldIntoCalloc()
1743 auto *InnerCallee = Malloc->getCalledFunction(); in tryFoldIntoCalloc()
1754 auto *MallocBB = Malloc->getParent(), in tryFoldIntoCalloc()
1770 if (Malloc->getOperand(0) != MemSet->getLength()) in tryFoldIntoCalloc()
1772 if (!shouldCreateCalloc(Malloc, MemSet) || in tryFoldIntoCalloc()
1773 !DT.dominates(Malloc, MemSet) || in tryFoldIntoCalloc()
1776 IRBuilder<> IRB(Malloc); in tryFoldIntoCalloc()
1780 Malloc->getArgOperand(0), IRB, TLI); in tryFoldIntoCalloc()
1791 Updater.removeMemoryAccess(Malloc); in tryFoldIntoCalloc()
1792 Malloc->replaceAllUsesWith(Calloc); in tryFoldIntoCalloc()
[all …]
/llvm-project-15.0.7/polly/lib/CodeGen/
H A DManagedMemoryRewrite.cpp361 Function *Malloc = M.getFunction("malloc"); in runOnModule() local
363 if (Malloc) { in runOnModule()
368 replaceAllUsesAndConstantUses(Malloc, PollyMallocManaged, Builder); in runOnModule()
369 Malloc->eraseFromParent(); in runOnModule()
/llvm-project-15.0.7/clang/test/Analysis/diagnostics/Inputs/expected-sarif/
H A Dsarif-multi-diagnostic-test.c.sarif365 "ruleId": "unix.Malloc",
471 "id": "unix.Malloc",
472 "name": "unix.Malloc"
/llvm-project-15.0.7/clang/test/Analysis/
H A Dexceptions.mm1 …xceptions -fobjc-exceptions -fcxx-exceptions -analyzer-checker=core,unix.Malloc,debug.ExprInspecti…
H A Ddispatch-once.m4 // RUN: -analyzer-checker=unix.Malloc \
10 // RUN: -analyzer-checker=unix.Malloc \
H A Dmalloc.m1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,unix.Malloc -verify -Wno-objc-root-class -fblocks…
H A DMismatchedDeallocator-checker-test.mm132 // Check for intersection with unix.Malloc bounded with
174 // malloc()/free() are subjects of unix.Malloc and unix.MallocWithAnnotations
H A Dobjc-boxing.m1 // RUN: %clang_analyze_cc1 -Wno-objc-literal-conversion -analyzer-checker=core,unix.Malloc,osx.coco…
/llvm-project-15.0.7/lldb/source/Expression/
H A DLLVMUserExpression.cpp316 m_materialized_address = m_execution_unit_sp->Malloc( in PrepareToExecuteJITExpression()
340 m_stack_frame_bottom = m_execution_unit_sp->Malloc( in PrepareToExecuteJITExpression()
H A DIRInterpreter.cpp314 lldb::addr_t data_address = Malloc(value->getType()); in MakeArgument()
369 lldb::addr_t Malloc(size_t size, uint8_t byte_alignment) { in Malloc() function in InterpreterStackFrame
382 lldb::addr_t Malloc(llvm::Type *type) { in Malloc() function in InterpreterStackFrame
385 return Malloc(m_target_data.getTypeAllocSize(type), in Malloc()
421 lldb::addr_t data_address = Malloc(value->getType()); in ResolveValue()
830 lldb::addr_t R = frame.Malloc(T); in Interpret()
839 lldb::addr_t P = frame.Malloc(Tptr); in Interpret()
H A DMaterializer.cpp79 lldb::addr_t mem = map.Malloc( in MakeAllocation()
558 m_temporary_allocation = map.Malloc( in Materialize()
956 m_temporary_allocation = map.Malloc( in Materialize()
H A DIRExecutionUnit.cpp60 Malloc(size, 8, lldb::ePermissionsWritable | lldb::ePermissionsReadable, in WriteNow()
1070 Malloc(record.m_size, record.m_alignment, record.m_permissions, in CommitOneAllocation()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp68 Malloc, enumerator
81 case MallocFamily::Malloc: in mangledNameForMallocFamily()
143 …ibFunc_memalign, {AlignedAllocLike, 2, 1, -1, 0, MallocFamily::Malloc}},
146 …ibFunc_strdup, {StrDupLike, 1, -1, -1, -1, MallocFamily::Malloc}},
147 …ibFunc_dunder_strdup, {StrDupLike, 1, -1, -1, -1, MallocFamily::Malloc}},
148 …ibFunc_strndup, {StrDupLike, 2, 1, -1, -1, MallocFamily::Malloc}},
149 …ibFunc_dunder_strndup, {StrDupLike, 2, 1, -1, -1, MallocFamily::Malloc}},
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/tests/
H A Dchunk_test.cpp44 OldHeader.OriginOrWasZeroed = scudo::Chunk::Origin::Malloc; in TEST()
H A Dwrappers_c_test.cpp45 TEST(ScudoWrappersCDeathTest, Malloc) { in TEST() argument
/llvm-project-15.0.7/lldb/include/lldb/Expression/
H A DIRMemoryMap.h53 lldb::addr_t Malloc(size_t size, uint8_t alignment, uint32_t permissions,
/llvm-project-15.0.7/compiler-rt/lib/hwasan/
H A Dhwasan_flags.inc63 // Malloc / free bisection. Only tag malloc and free calls when a hash of
/llvm-project-15.0.7/clang/test/Analysis/Inputs/expected-plists/
H A Dmalloc-plist.c.plist214 <key>check_name</key><string>unix.Malloc</string>
391 <key>check_name</key><string>unix.Malloc</string>
722 <key>check_name</key><string>unix.Malloc</string>
1170 <key>check_name</key><string>unix.Malloc</string>
1736 <key>check_name</key><string>unix.Malloc</string>
2315 <key>check_name</key><string>unix.Malloc</string>
2635 <key>check_name</key><string>unix.Malloc</string>
2996 <key>check_name</key><string>unix.Malloc</string>
3140 <key>check_name</key><string>unix.Malloc</string>
3330 <key>check_name</key><string>unix.Malloc</string>
[all …]
/llvm-project-15.0.7/llvm/docs/HistoricalNotes/
H A D2003-06-25-Reoptimizer1.txt107 away that a single pc-relative branch would not work.) Malloc() or

12