Home
last modified time | relevance | path

Searched refs:Allocated (Results 1 – 25 of 27) sorted by relevance

12

/llvm-project-15.0.7/compiler-rt/lib/gwp_asan/tests/
H A Diterate.cpp17 std::vector<std::pair<void *, size_t>> Allocated; in TEST_F() local
19 Allocated.push_back({GPA.allocate(size), size}); in TEST_F()
28 std::sort(Allocated.begin(), Allocated.end()); in TEST_F()
31 void *Base = Allocated[0].first; in TEST_F()
32 size_t Size = reinterpret_cast<size_t>(Allocated.back().first) - in TEST_F()
45 EXPECT_EQ(Allocated, Found); in TEST_F()
49 Size = reinterpret_cast<size_t>(Allocated.back().first) - in TEST_F()
64 GPA.deallocate(Allocated.back().first); in TEST_F()
65 Allocated.pop_back(); in TEST_F()
66 EXPECT_EQ(Allocated, Found); in TEST_F()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_stack_store_test.cpp73 uptr before = store_.Allocated(); in TEST_F()
76 uptr after = store_.Allocated(); in TEST_F()
97 TEST_F(StackStoreTest, Allocated) { in TEST_F() argument
98 EXPECT_LE(store_.Allocated(), 0x100000u); in TEST_F()
104 EXPECT_NEAR(store_.Allocated(), FIRST_32_SECOND_64(500000000u, 1000000000u), in TEST_F()
107 EXPECT_LE(store_.Allocated(), 0x100000u); in TEST_F()
152 uptr before = store_.Allocated(); in TEST_P()
154 uptr after = store_.Allocated(); in TEST_P()
/llvm-project-15.0.7/clang/test/Analysis/
H A DkeychainAPI.m81 } // expected-warning{{Allocated data is not released: missing a call to 'SecKeychainItemFreeConten…
99 …nItemCopyContent(2, ptr, ptr, &length, &outData); // expected-warning {{Allocated data should be r…
196 …return 0; // expected-warning{{Allocated data is not released: missing a call to 'SecKeychainItemF…
215 …if (length) { // expected-warning{{Allocated data is not released: missing a call to 'SecKeychainI…
284 …opy(alloc, bytes, length, 5, 0, kCFAllocatorNull); // expected-warning{{Allocated data is not rele…
405 consumeChar(*(char*)outData); // expected-warning{{Allocated data is not released:}}
424 …OSStatus st = my_Allocate_Param(&outData, &length); // expected-warning{{Allocated data is not rel…
425 … st = my_Allocate_Param(&outData2, &length); // expected-warning{{Allocated data is not released}}
H A DkeychainAPI-diagnostic-visitor.m33 …length++; // expected-warning {{Allocated data is not released}} // expected-note{{Allocated data …
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A Dedit_distance.h75 std::unique_ptr<unsigned[]> Allocated; variable
79 Allocated.reset(Row);
/llvm-project-15.0.7/compiler-rt/lib/orc/
H A Delfnix_platform.cpp428 auto &Allocated = AllocatedSections[TDS->first]; in getInstance() local
429 if (!Allocated) { in getInstance()
430 Allocated = std::make_unique<char[]>(TDS->second); in getInstance()
431 memcpy(Allocated.get(), TDS->first, TDS->second); in getInstance()
436 char *Instance = Allocated.get() + ThreadDataDelta; in getInstance()
H A Dmacho_platform.cpp904 auto &Allocated = AllocatedSections[TDS->first]; in getInstance() local
905 if (!Allocated) { in getInstance()
906 Allocated = std::make_unique<char[]>(TDS->second); in getInstance()
907 memcpy(Allocated.get(), TDS->first, TDS->second); in getInstance()
913 char *Instance = Allocated.get() + ThreadDataDelta; in getInstance()
/llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/
H A DFrames-dyn-alloca-with-func-call.ll59 ; Allocated area is referred by stack pointer.
96 ; Allocated area is referred by stack pointer.
131 ; Allocated area is referred by stack pointer.
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/tests/
H A Dwrappers_c_test.cpp270 size_t Allocated = MI.uordblks; in TEST() local
274 EXPECT_GE(static_cast<size_t>(MI.uordblks), Allocated + BypassQuarantineSize); in TEST()
288 size_t Allocated = MI.uordblks; in TEST() local
292 EXPECT_GE(MI.uordblks, Allocated + BypassQuarantineSize); in TEST()
H A Dchunk_test.cpp47 OldHeader.State = scudo::Chunk::State::Allocated; in TEST()
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/
H A Dcombined.h95 Header.State = Chunk::State::Allocated; in allocate()
113 if (UNLIKELY(Header.State != Chunk::State::Allocated)) in deallocate()
500 Header.State = Chunk::State::Allocated;
549 if (UNLIKELY(Header.State != Chunk::State::Allocated))
610 if (UNLIKELY(OldHeader.State != Chunk::State::Allocated))
764 if (Header.State == Chunk::State::Allocated) { in iterateOverChunks()
832 if (UNLIKELY(Header.State != Chunk::State::Allocated)) in getUsableSize()
856 Header.State == Chunk::State::Allocated; in isOwned()
1336 Header.State != Chunk::State::Allocated || Tag != FaultAddrTag) in getInlineErrorInfo()
H A Dchunk.h62 enum State : u8 { Available = 0, Allocated = 1, Quarantined = 2 }; enumerator
/llvm-project-15.0.7/llvm/unittests/IR/
H A DDebugInfoTest.cpp219 DIExpression *Allocated = getDIExpression(2); in TEST() local
224 Allocated, Rank); in TEST()
229 EXPECT_EQ(ArrayType->getRawAllocated(), Allocated); in TEST()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DFuchsiaHandleChecker.cpp115 enum class Kind { MaybeAllocated, Allocated, Released, Escaped, Unowned } K; enumerator
123 bool isAllocated() const { return K == Kind::Allocated; } in isAllocated()
137 return HandleState(Kind::Allocated, nullptr); in getAllocated()
163 CASE(Kind::Allocated) in dump()
H A DMallocChecker.cpp139 Allocated, enumerator
164 bool isAllocated() const { return K == Allocated; } in isAllocated()
177 return RefState(Allocated, s, family); in getAllocated()
202 CASE(Allocated) in dump()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stack_store.h41 uptr Allocated() const;
H A Dsanitizer_stackdepot.cpp74 return stackStore.Allocated() + useCounts.MemoryUsage(); in allocated()
H A Dsanitizer_stack_store.cpp67 uptr StackStore::Allocated() const { in Allocated() function in __sanitizer::StackStore
/llvm-project-15.0.7/llvm/test/CodeGen/X86/GC/
H A Dalloc_loop.ll39 ;; Allocated mem: allocated memory is immediately dead.
/llvm-project-15.0.7/llvm/test/CodeGen/VE/Scalar/
H A Dstackframe_align.ll9 ;; Allocated buffer places from 9 to 15 bytes in 16 bytes local vars area.
64 ;; Allocated buffer is aligned by 8, so it places from 8 to 14 bytes in 16
120 ;; Allocated buffer is aligned by 16, so it places from 0 to 15 bytes in 16
176 ;; Allocated buffer is aligned by 32, so it places from 0 to 15 bytes in 48
240 ;; Allocated buffer is aligned by 32, so it places from 0 to 31 bytes in 48
/llvm-project-15.0.7/llvm/lib/IR/
H A DDebugInfoMetadata.cpp657 Metadata *DataLocation, Metadata *Associated, Metadata *Allocated, in getImpl() argument
667 Discriminator, DataLocation, Associated, Allocated, in getImpl()
671 Discriminator, DataLocation, Associated, Allocated, in getImpl()
685 Metadata *DataLocation, Metadata *Associated, Metadata *Allocated, in buildODRType() argument
696 DataLocation, Associated, Allocated, Rank, Annotations); in buildODRType()
711 Discriminator, DataLocation, Associated, Allocated, in buildODRType()
727 Metadata *DataLocation, Metadata *Associated, Metadata *Allocated, in getODRType() argument
738 Allocated, Rank, Annotations); in getODRType()
H A DLLVMContextImpl.h585 Metadata *Allocated;
596 Metadata *Allocated, Metadata *Rank, Metadata *Annotations)
603 Associated(Associated), Allocated(Allocated), Rank(Rank),
616 Associated(N->getRawAssociated()), Allocated(N->getRawAllocated()),
634 Allocated == RHS->getRawAllocated() && Rank == RHS->getRawRank() &&
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DDebugInfoMetadata.h1074 Metadata *Associated, Metadata *Allocated, Metadata *Rank,
1082 Associated, Allocated, Rank, Annotations.get(), Storage, ShouldCreate);
1091 Metadata *Associated, Metadata *Allocated, Metadata *Rank,
1114 Metadata *Allocated = nullptr, Metadata *Rank = nullptr,
1118 Identifier, Discriminator, DataLocation, Associated, Allocated, Rank,
1128 Metadata *Associated = nullptr, Metadata *Allocated = nullptr,
1132 Identifier, Discriminator, DataLocation, Associated, Allocated, Rank,
1151 Metadata *DataLocation, Metadata *Associated, Metadata *Allocated,
1173 Metadata *Allocated, Metadata *Rank, Metadata *Annotations);
H A DDIBuilder.h554 PointerUnion<DIExpression *, DIVariable *> Allocated = nullptr,
/llvm-project-15.0.7/llvm/lib/Bitcode/Reader/
H A DMetadataLoader.cpp1498 Metadata *Allocated = nullptr; in parseOneMetadata() local
1536 Allocated = getMDOrNull(Record[19]); in parseOneMetadata()
1551 Allocated, Rank, Annotations); in parseOneMetadata()
1560 Allocated, Rank, Annotations)); in parseOneMetadata()

12