| /openbsd-src/gnu/llvm/clang/lib/AST/Interp/ |
| H A D | InterpStack.cpp | 21 if (Chunk && Chunk->Next) in clear() 22 free(Chunk->Next); in clear() 23 if (Chunk) in clear() 24 free(Chunk); in clear() 25 Chunk = nullptr; in clear() 32 if (!Chunk || sizeof(StackChunk) + Chunk->size() + Size > ChunkSize) { in grow() 33 if (Chunk && Chunk->Next) { in grow() 34 Chunk = Chunk->Next; in grow() 36 StackChunk *Next = new (malloc(ChunkSize)) StackChunk(Chunk); in grow() 37 if (Chunk) in grow() [all …]
|
| /openbsd-src/gnu/llvm/lld/COFF/ |
| H A D | DLL.h | 29 std::vector<Chunk *> dirs; 30 std::vector<Chunk *> lookups; 31 std::vector<Chunk *> addresses; 32 std::vector<Chunk *> hints; 33 std::vector<Chunk *> dllNames; 44 std::vector<Chunk *> getChunks(); 45 std::vector<Chunk *> getDataChunks(); 46 ArrayRef<Chunk *> getCodeChunks() { return thunks; } in getCodeChunks() 47 ArrayRef<Chunk *> getCodePData() { return pdata; } in getCodePData() 48 ArrayRef<Chunk *> getCodeUnwindInfo() { return unwindinfo; } in getCodeUnwindInfo() [all …]
|
| H A D | DLL.cpp | 64 explicit LookupChunk(COFFLinkerContext &ctx, Chunk *c) in LookupChunk() 77 Chunk *hintName; 113 explicit ImportDirectoryChunk(Chunk *n) : dllName(n) {} in ImportDirectoryChunk() 125 Chunk *dllName; 126 Chunk *lookupTab; 127 Chunk *addressTab; 175 explicit DelayDirectoryChunk(Chunk *n) : dllName(n) {} in DelayDirectoryChunk() 192 Chunk *dllName; 193 Chunk *moduleHandle; 194 Chunk *addressTab; [all …]
|
| H A D | Writer.h | 31 std::vector<Chunk *> chunks; 44 void addChunk(Chunk *c); 45 void insertChunkAtStart(Chunk *c); 73 std::vector<Chunk *> chunks; 74 std::vector<Chunk *> origChunks;
|
| H A D | Chunks.h | 54 class Chunk { 118 Chunk(Kind k = OtherKind) : chunkKind(k), hasData(true), p2Align(0) {} in chunkKind() 142 class NonSectionChunk : public Chunk { 171 static bool classof(const Chunk *c) { return c->kind() != SectionKind; } in classof() 174 NonSectionChunk(Kind k = OtherKind) : Chunk(k) {} in Chunk() function 195 class SectionChunk final : public Chunk { 217 static bool classof(const Chunk *c) { return c->kind() == SectionKind; } in classof() 378 inline size_t Chunk::getSize() const { in getSize() 385 inline uint32_t Chunk::getOutputCharacteristics() const { in getOutputCharacteristics() 393 inline void Chunk::writeTo(uint8_t *buf) const { in writeTo() [all …]
|
| H A D | Writer.cpp | 89 const std::vector<std::pair<COFF::DebugType, Chunk *>> &r, in DebugDirectoryChunk() 100 for (const std::pair<COFF::DebugType, Chunk *>& record : records) { in writeTo() 101 Chunk *c = record.second; in writeTo() 139 const std::vector<std::pair<COFF::DebugType, Chunk *>> &records; 221 bool verifyRanges(const std::vector<Chunk *> chunks); 247 void sortCRTSectionChunks(std::vector<Chunk *> &chunks); 249 void sortBySectionOrder(std::vector<Chunk *> &chunks); 273 Chunk *importTableStart = nullptr; 275 Chunk *edataStart = nullptr; 276 Chunk *edataEnd = nullptr; [all …]
|
| H A D | Symbols.h | 169 Chunk *getChunk(); 272 explicit DefinedSynthetic(StringRef name, Chunk *c) in DefinedSynthetic() 282 Chunk *getChunk() { return c; } in getChunk() 285 Chunk *c; 362 Chunk *getChunk() { return file->location; } in getChunk() 363 void setLocation(Chunk *addressTable) { file->location = addressTable; } in setLocation() 394 Chunk *getChunk() { return data; } in getChunk() 399 Chunk *data; 418 Chunk *getChunk() { return data; } in getChunk() 449 inline Chunk *Defined::getChunk() { in getChunk()
|
| H A D | SymbolTable.h | 25 class Chunk; variable 68 std::vector<Chunk *> getChunks() const; 88 Symbol *addSynthetic(StringRef n, Chunk *c); 116 std::vector<Chunk *> localImportChunks;
|
| H A D | InputFiles.h | 53 class Chunk; variable 137 ArrayRef<Chunk *> getChunks() { return chunks; } in getChunks() 273 std::vector<Chunk *> chunks; 350 Chunk *location = nullptr;
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/scudo/standalone/tests/ |
| H A D | chunk_test.cpp | 15 static constexpr scudo::uptr HeaderSize = scudo::Chunk::getHeaderSize(); 27 scudo::Chunk::UnpackedHeader Header = {}; in TEST() 31 scudo::Chunk::storeHeader(Cookie, P, &Header); in TEST() 33 scudo::Chunk::loadHeader(Cookie, P, &Header); in TEST() 34 EXPECT_TRUE(scudo::Chunk::isValid(Cookie, P, &Header)); in TEST() 35 EXPECT_FALSE(scudo::Chunk::isValid(InvalidCookie, P, &Header)); in TEST() 36 EXPECT_DEATH(scudo::Chunk::loadHeader(InvalidCookie, P, &Header), ""); in TEST() 43 scudo::Chunk::UnpackedHeader OldHeader = {}; in TEST() 44 OldHeader.OriginOrWasZeroed = scudo::Chunk::Origin::Malloc; in TEST() 47 OldHeader.State = scudo::Chunk::State::Allocated; in TEST() [all …]
|
| H A D | combined_test.cpp | 24 static constexpr scudo::Chunk::Origin Origin = scudo::Chunk::Origin::Malloc; 43 ((Alignment > MinAlignment) ? Alignment : scudo::Chunk::getHeaderSize()); in isPrimaryAllocation() 134 static scudo::u8 StaticBuffer[scudo::Chunk::getHeaderSize() + 1]; in SCUDO_TYPED_TEST() 136 Allocator->isOwned(&StaticBuffer[scudo::Chunk::getHeaderSize()])); in SCUDO_TYPED_TEST() 138 scudo::u8 StackBuffer[scudo::Chunk::getHeaderSize() + 1]; in SCUDO_TYPED_TEST() 141 EXPECT_FALSE(Allocator->isOwned(&StackBuffer[scudo::Chunk::getHeaderSize()])); in SCUDO_TYPED_TEST() 554 reinterpret_cast<scudo::u64 *>(scudo::Chunk::getAtomicHeader(P)); in TEST() 628 Allocator->allocate(Size - scudo::Chunk::getHeaderSize(), Origin))); in SCUDO_TYPED_TEST() 660 SizeClassMap::getSizeByClassId(ClassId) - scudo::Chunk::getHeaderSize(); in SCUDO_TYPED_TEST() 734 void *p = Allocator->allocate(Size - scudo::Chunk::getHeaderSize(), Origin); in TEST()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/ |
| H A D | AArch64ExpandImm.cpp | 30 static bool canUseOrr(uint64_t Chunk, uint64_t &Encoding) { in canUseOrr() argument 31 Chunk = (Chunk << 48) | (Chunk << 32) | (Chunk << 16) | Chunk; in canUseOrr() 33 return AArch64_AM::processLogicalImmediate(Chunk, 64, Encoding); in canUseOrr() 54 for (const auto &Chunk : Counts) { in tryToreplicateChunks() local 55 const uint64_t ChunkVal = Chunk.first; in tryToreplicateChunks() 56 const unsigned Count = Chunk.second; in tryToreplicateChunks() 106 static bool isStartChunk(uint64_t Chunk) { in isStartChunk() argument 107 if (Chunk == 0 || Chunk == std::numeric_limits<uint64_t>::max()) in isStartChunk() 110 return isMask_64(~Chunk); in isStartChunk() 116 static bool isEndChunk(uint64_t Chunk) { in isEndChunk() argument [all …]
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-reduce/deltas/ |
| H A D | Delta.h | 30 struct Chunk { struct 45 friend bool operator!=(const Chunk &C1, const Chunk &C2) { argument 49 friend bool operator==(const Chunk &C1, const Chunk &C2) { 54 friend bool operator<(const Chunk &C1, const Chunk &C2) { 60 struct DenseMapInfo<Chunk> { 61 static inline Chunk getEmptyKey() { 66 static inline Chunk getTombstoneKey() { 71 static unsigned getHashValue(const Chunk Val) { 76 static bool isEqual(const Chunk LHS, const Chunk RHS) { 91 ArrayRef<Chunk> ChunksToKeep; [all …]
|
| H A D | Delta.cpp | 60 static bool increaseGranularity(std::vector<Chunk> &Chunks) { in increaseGranularity() 63 std::vector<Chunk> NewChunks; in increaseGranularity() 66 for (Chunk C : Chunks) { in increaseGranularity() 93 CheckChunk(const Chunk ChunkToCheckForUninterestingness, in CheckChunk() 96 const DenseSet<Chunk> &UninterestingChunks, in CheckChunk() 97 const std::vector<Chunk> &ChunksStillConsideredInteresting) { in CheckChunk() 102 std::vector<Chunk> CurrentChunks; in CheckChunk() 106 [&](const Chunk &C) { in CheckChunk() 132 for (const Chunk &C : UninterestingChunks) in CheckChunk() 147 const Chunk ChunkToCheckForUninterestingness, const TestRunner &Test, in ProcessChunkFromSerializedBitcode() [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/scudo/standalone/ |
| H A D | wrappers_cpp.cpp | 25 return Allocator.allocate(size, scudo::Chunk::Origin::New); in operator new() 28 return Allocator.allocate(size, scudo::Chunk::Origin::NewArray); in operator new[]() 32 return Allocator.allocate(size, scudo::Chunk::Origin::New); in operator new() 36 return Allocator.allocate(size, scudo::Chunk::Origin::NewArray); in operator new[]() 39 return Allocator.allocate(size, scudo::Chunk::Origin::New, in operator new() 43 return Allocator.allocate(size, scudo::Chunk::Origin::NewArray, in operator new[]() 48 return Allocator.allocate(size, scudo::Chunk::Origin::New, in operator new() 53 return Allocator.allocate(size, scudo::Chunk::Origin::NewArray, in operator new[]() 58 Allocator.deallocate(ptr, scudo::Chunk::Origin::New); in operator delete() 61 Allocator.deallocate(ptr, scudo::Chunk::Origin::NewArray); in operator delete[]() [all …]
|
| H A D | combined.h | 65 Chunk::UnpackedHeader Header; in recycle() 66 Chunk::loadHeader(Allocator.Cookie, Ptr, &Header); in recycle() 67 if (UNLIKELY(Header.State != Chunk::State::Quarantined)) in recycle() 70 Chunk::UnpackedHeader NewHeader = Header; in recycle() 71 NewHeader.State = Chunk::State::Available; in recycle() 72 Chunk::compareExchangeHeader(Allocator.Cookie, Ptr, &NewHeader, &Header); in recycle() 85 sizeof(QuarantineBatch) + Chunk::getHeaderSize()); in allocate() 92 Chunk::getHeaderSize()); in allocate() 93 Chunk::UnpackedHeader Header = {}; in allocate() 94 Header.ClassId = QuarantineClassId & Chunk::ClassIdMask; in allocate() [all …]
|
| H A D | wrappers_c.inc | 32 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)); 105 return SCUDO_ALLOCATOR.allocate(size, scudo::Chunk::Origin::Memalign, 117 SCUDO_ALLOCATOR.allocate(size, scudo::Chunk::Origin::Memalign, alignment); 136 scudo::Chunk::Origin::Memalign, PageSize)); 142 size, scudo::Chunk::Origin::Malloc, SCUDO_MALLOC_ALIGNMENT)); 144 SCUDO_ALLOCATOR.deallocate(ptr, scudo::Chunk::Origin::Malloc); 153 size, scudo::Chunk::Origin::Memalign, scudo::getPageSizeCached())); 228 SCUDO_ALLOCATOR.allocate(size, scudo::Chunk::Origin::Malloc, alignment));
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | CodeCompleteConsumer.cpp | 177 CodeCompletionString::Chunk::Chunk(ChunkKind Kind, const char *Text) in Chunk() function in CodeCompletionString::Chunk 250 CodeCompletionString::Chunk 251 CodeCompletionString::Chunk::CreateText(const char *Text) { in CreateText() 252 return Chunk(CK_Text, Text); in CreateText() 255 CodeCompletionString::Chunk 256 CodeCompletionString::Chunk::CreateOptional(CodeCompletionString *Optional) { in CreateOptional() 257 Chunk Result; in CreateOptional() 263 CodeCompletionString::Chunk 264 CodeCompletionString::Chunk::CreatePlaceholder(const char *Placeholder) { in CreatePlaceholder() 265 return Chunk(CK_Placeholder, Placeholder); in CreatePlaceholder() [all …]
|
| H A D | SemaTemplateVariadic.cpp | 920 const DeclaratorChunk &Chunk = D.getTypeObject(I); in containsUnexpandedParameterPacks() local 921 switch (Chunk.Kind) { in containsUnexpandedParameterPacks() 931 if (Chunk.Arr.NumElts && in containsUnexpandedParameterPacks() 932 Chunk.Arr.NumElts->containsUnexpandedParameterPack()) in containsUnexpandedParameterPacks() 936 for (unsigned i = 0, e = Chunk.Fun.NumParams; i != e; ++i) { in containsUnexpandedParameterPacks() 937 ParmVarDecl *Param = cast<ParmVarDecl>(Chunk.Fun.Params[i].Param); in containsUnexpandedParameterPacks() 943 if (Chunk.Fun.getExceptionSpecType() == EST_Dynamic) { in containsUnexpandedParameterPacks() 944 for (unsigned i = 0; i != Chunk.Fun.getNumExceptions(); ++i) { in containsUnexpandedParameterPacks() 945 if (Chunk.Fun.Exceptions[i] in containsUnexpandedParameterPacks() 950 } else if (isComputedNoexcept(Chunk.Fun.getExceptionSpecType()) && in containsUnexpandedParameterPacks() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/ObjectYAML/ |
| H A D | ELFYAML.h | 184 struct Chunk { struct 222 Chunk(ChunkKind K, bool Implicit) : Kind(K), IsImplicit(Implicit) {} in Chunk() argument 223 virtual ~Chunk(); 226 struct Section : public Chunk { 240 Section(ChunkKind Kind, bool IsImplicit = false) : Chunk(Kind, IsImplicit) {} in Chunk() function 242 static bool classof(const Chunk *S) { in classof() 284 struct Fill : Chunk { 288 Fill() : Chunk(ChunkKind::Fill, /*Implicit=*/false) {} in Fill() 290 static bool classof(const Chunk *S) { return S->Kind == ChunkKind::Fill; } in classof() 293 struct SectionHeaderTable : Chunk { [all …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/Sema/ |
| H A D | CodeCompleteConsumer.h | 521 struct Chunk { struct 539 Chunk() : Text(nullptr) {} in Chunk() argument 541 explicit Chunk(ChunkKind Kind, const char *Text = ""); 544 static Chunk CreateText(const char *Text); 547 static Chunk CreateOptional(CodeCompletionString *Optional); 550 static Chunk CreatePlaceholder(const char *Placeholder); 553 static Chunk CreateInformative(const char *Informative); 556 static Chunk CreateResultType(const char *ResultType); 559 static Chunk CreateCurrentParameter(const char *CurrentParameter); 585 CodeCompletionString(const Chunk *Chunks, unsigned NumChunks, [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/scudo/standalone/benchmarks/ |
| H A D | malloc_benchmark.cpp | 37 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()
|
| /openbsd-src/gnu/llvm/llvm/lib/Support/ |
| H A D | BinaryStreamWriter.cpp | 72 ArrayRef<uint8_t> Chunk; in writeStreamRef() local 73 if (auto EC = SrcReader.readLongestContiguousChunk(Chunk)) in writeStreamRef() 75 if (auto EC = writeBytes(Chunk)) in writeStreamRef()
|
| /openbsd-src/gnu/llvm/llvm/lib/Debuginfod/ |
| H A D | HTTPServer.cpp | 97 StringRef Chunk = Response.Provider(Offset, Length); in setResponse() local 98 Sink.write(Chunk.begin(), Chunk.size()); in setResponse()
|
| /openbsd-src/gnu/llvm/llvm/tools/obj2yaml/ |
| H A D | elf2yaml.cpp | 55 dumpProgramHeaders(ArrayRef<std::unique_ptr<ELFYAML::Chunk>> Sections); 58 dumpDWARFSections(std::vector<std::unique_ptr<ELFYAML::Chunk>> &Sections); 64 Expected<std::vector<std::unique_ptr<ELFYAML::Chunk>>> dumpSections(); 239 std::vector<std::unique_ptr<ELFYAML::Chunk>> &V, in dumpSectionOffsets() 250 for (const std::unique_ptr<ELFYAML::Chunk> &C : ArrayRef(V).drop_front()) { in dumpSectionOffsets() 353 Expected<std::vector<std::unique_ptr<ELFYAML::Chunk>>> ChunksOrErr = in dump() 357 std::vector<std::unique_ptr<ELFYAML::Chunk>> Chunks = std::move(*ChunksOrErr); in dump() 361 for (const std::unique_ptr<ELFYAML::Chunk> &C : in dump() 367 llvm::stable_sort(Chunks, [&](const std::unique_ptr<ELFYAML::Chunk> &A, in dump() 368 const std::unique_ptr<ELFYAML::Chunk> &B) { in dump() [all …]
|