| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | InterpStack.cpp | 21 if (Chunk && 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() 37 if (Chunk) in grow() 39 Chunk = Next; in grow() 71 Chunk->End = Chunk->start(); in shrink() [all …]
|
| /llvm-project-15.0.7/lld/COFF/ |
| H A D | DLL.h | 30 std::vector<Chunk *> dirs; 31 std::vector<Chunk *> lookups; 32 std::vector<Chunk *> addresses; 33 std::vector<Chunk *> hints; 34 std::vector<Chunk *> dllNames; 52 Chunk *newThunkChunk(DefinedImportData *s, Chunk *tailMerge); 53 Chunk *newTailMergeChunk(Chunk *dir); 57 std::vector<Chunk *> dirs; 60 std::vector<Chunk *> names; 62 std::vector<Chunk *> thunks; [all …]
|
| H A D | DLL.cpp | 77 Chunk *hintName; 118 Chunk *dllName; 119 Chunk *lookupTab; 120 Chunk *addressTab; 184 Chunk *dllName; 187 Chunk *nameTab; 473 Chunk *thunk; 482 ExportDirectoryChunk(int i, int j, Chunk *d, Chunk *a, Chunk *n, Chunk *o) in ExportDirectoryChunk() 505 Chunk *dllName; 507 Chunk *nameTab; [all …]
|
| H A D | Chunks.h | 55 class Chunk { 143 class NonSectionChunk : public Chunk { 175 NonSectionChunk(Kind k = OtherKind) : Chunk(k) {} in Chunk() function 179 class SectionChunk final : public Chunk { 362 inline size_t Chunk::getSize() const { in getSize() 369 inline uint32_t Chunk::getOutputCharacteristics() const { in getOutputCharacteristics() 377 inline void Chunk::writeTo(uint8_t *buf) const { in writeTo() 384 inline StringRef Chunk::getSectionName() const { in getSectionName() 398 inline StringRef Chunk::getDebugName() const { in getDebugName() 556 Chunk *inputChunk; [all …]
|
| H A D | Writer.h | 32 std::vector<Chunk *> chunks; 45 void addChunk(Chunk *c); 46 void insertChunkAtStart(Chunk *c); 74 std::vector<Chunk *> chunks; 75 std::vector<Chunk *> origChunks;
|
| H A D | Writer.cpp | 101 Chunk *c = record.second; in writeTo() 258 Chunk *edataStart = nullptr; 259 Chunk *edataEnd = nullptr; 260 Chunk *iatStart = nullptr; 300 Chunk *lastPdata; 387 Chunk *c; in getThunk() 514 for (Chunk *c : chunks) { in verifyRanges() 673 llvm::stable_sort(chunks, [=](const Chunk *a, const Chunk *b) { in sortBySectionOrder() 723 llvm::stable_sort(pSec->chunks, [&](Chunk *s, Chunk *t) { in fixGnuImportChunks() 1560 Chunk *c = s->getChunk(); in addSymbolToRVASet() [all …]
|
| H A D | Symbols.h | 169 Chunk *getChunk(); 275 explicit DefinedSynthetic(StringRef name, Chunk *c) in DefinedSynthetic() 285 Chunk *getChunk() { return c; } in getChunk() 288 Chunk *c; 365 Chunk *getChunk() { return file->location; } in getChunk() 366 void setLocation(Chunk *addressTable) { file->location = addressTable; } in setLocation() 396 Chunk *getChunk() { return data; } in getChunk() 401 Chunk *data; 419 Chunk *getChunk() { return data; } in getChunk() 450 inline Chunk *Defined::getChunk() { in getChunk()
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/tests/ |
| H A D | chunk_test.cpp | 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() 43 scudo::Chunk::UnpackedHeader OldHeader = {}; in TEST() 47 OldHeader.State = scudo::Chunk::State::Allocated; in TEST() 51 scudo::Chunk::storeHeader(Cookie, P, &OldHeader); in TEST() 53 scudo::Chunk::UnpackedHeader NewHeader = OldHeader; in TEST() 54 NewHeader.State = scudo::Chunk::State::Quarantined; in TEST() 66 scudo::Chunk::UnpackedHeader Header = {}; in TEST() 70 scudo::Chunk::storeHeader(Cookie, P, &Header); in TEST() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | CodeCompletionStrings.cpp | 22 bool isInformativeQualifierChunk(CodeCompletionString::Chunk const &Chunk) { in isInformativeQualifierChunk() argument 123 switch (Chunk.Kind) { in getSignature() 184 *Signature += Chunk.Text; in getSignature() 185 *Snippet += Chunk.Text; in getSignature() 193 *Signature += Chunk.Text; in getSignature() 209 *Signature += Chunk.Text; in getSignature() 234 *Signature += Chunk.Text; in getSignature() 235 *Snippet += Chunk.Text; in getSignature() 238 *Snippet += Chunk.Text; in getSignature() 276 for (const auto &Chunk : CCS) in getReturnType() local [all …]
|
| H A D | RIFF.h | 50 struct Chunk { struct 54 inline bool operator==(const Chunk &L, const Chunk &R) { argument 60 std::vector<Chunk> Chunks; 68 llvm::Expected<Chunk> readChunk(llvm::StringRef &Stream); 71 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const Chunk &);
|
| H A D | RIFF.cpp | 17 llvm::Expected<Chunk> readChunk(llvm::StringRef &Stream) { in readChunk() 20 Chunk C; in readChunk() 37 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const Chunk &C) { in operator <<() 59 if (auto Chunk = readChunk(Body)) { in readFile() local 60 F.Chunks.push_back(*Chunk); in readFile() 62 return Chunk.takeError(); in readFile()
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/include/clang-pseudo/ |
| H A D | DirectiveTree.h | 89 class Chunk; // Defined below. member 90 std::vector<Chunk> Chunks; 129 class DirectiveTree::Chunk { 139 Chunk() = delete; 140 Chunk(const Chunk &) = delete; 141 Chunk(Chunk &&) = default; 142 Chunk &operator=(const Chunk &) = delete; 143 Chunk &operator=(Chunk &&) = default; 144 ~Chunk() = default; 147 Chunk(Code C) : CodeVariant(std::move(C)) {} in Chunk() function [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/ |
| H A D | AArch64ExpandImm.cpp | 31 Chunk = (Chunk << 48) | (Chunk << 32) | (Chunk << 16) | Chunk; in canUseOrr() 54 for (const auto &Chunk : Counts) { in tryToreplicateChunks() local 107 if (Chunk == 0 || Chunk == std::numeric_limits<uint64_t>::max()) in isStartChunk() 110 return isMask_64(~Chunk); in isStartChunk() 117 if (Chunk == 0 || Chunk == std::numeric_limits<uint64_t>::max()) in isEndChunk() 120 return isMask_64(Chunk); in isEndChunk() 161 Chunk = (Chunk << 48) >> 48; in trySequenceOfOnes() 163 if (isStartChunk(Chunk)) in trySequenceOfOnes() 165 else if (isEndChunk(Chunk)) in trySequenceOfOnes() 313 if (Chunk == Mask) in expandMOVImm() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/ |
| H A D | wrappers_cpp.cpp | 25 return Allocator.allocate(size, scudo::Chunk::Origin::New); in operator new() 32 return Allocator.allocate(size, scudo::Chunk::Origin::New); in operator new() 39 return Allocator.allocate(size, scudo::Chunk::Origin::New, in operator new() 48 return Allocator.allocate(size, scudo::Chunk::Origin::New, 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[]() 65 Allocator.deallocate(ptr, scudo::Chunk::Origin::New); in operator delete() 69 Allocator.deallocate(ptr, scudo::Chunk::Origin::NewArray); in operator delete[]() 79 Allocator.deallocate(ptr, scudo::Chunk::Origin::New, 0, in operator delete() 89 Allocator.deallocate(ptr, scudo::Chunk::Origin::New, 0, in operator delete() [all …]
|
| H A D | combined.h | 64 Chunk::UnpackedHeader Header; in recycle() 110 Chunk::UnpackedHeader Header; in deallocate() 546 Chunk::UnpackedHeader Header; 607 Chunk::UnpackedHeader OldHeader; 750 uptr Chunk; in iterateOverChunks() local 751 Chunk::UnpackedHeader Header; in iterateOverChunks() 765 uptr TaggedChunk = Chunk; in iterateOverChunks() 829 Chunk::UnpackedHeader Header; in getUsableSize() 854 Chunk::UnpackedHeader Header; in isOwned() 1142 *Chunk = in getChunkFromBlock() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/unittests/ |
| H A D | DirectiveTreeTest.cpp | 28 using Chunk = DirectiveTree::Chunk; typedef 70 ASSERT_THAT(PP.Chunks, ElementsAre(chunkKind(Chunk::K_Directive), in TEST() 71 chunkKind(Chunk::K_Code), in TEST() 73 chunkKind(Chunk::K_Code))); in TEST() 95 ElementsAre(chunkKind(Chunk::K_Code))); in TEST() 97 ElementsAre(chunkKind(Chunk::K_Code))); in TEST() 117 ASSERT_THAT(PP.Chunks, ElementsAre(chunkKind(Chunk::K_Code), in TEST() 119 chunkKind(Chunk::K_Code))); in TEST() 138 ASSERT_THAT(PP.Chunks, ElementsAre(chunkKind(Chunk::K_Code), in TEST() 151 ElementsAre(chunkKind(Chunk::K_Code))); in TEST() [all …]
|
| /llvm-project-15.0.7/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 252 return Chunk(CK_Text, Text); in CreateText() 255 CodeCompletionString::Chunk 257 Chunk Result; in CreateOptional() 263 CodeCompletionString::Chunk 268 CodeCompletionString::Chunk 273 CodeCompletionString::Chunk 278 CodeCompletionString::Chunk CodeCompletionString::Chunk::CreateCurrentParameter( in CreateCurrentParameter() 293 Chunk *StoredChunks = reinterpret_cast<Chunk *>(this + 1); in CodeCompletionString() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/lib/ |
| H A D | DirectiveTree.cpp | 175 static void dump(llvm::raw_ostream &OS, const DirectiveTree::Chunk &Chunk, in dump() argument 177 switch (Chunk.kind()) { in dump() 178 case DirectiveTree::Chunk::K_Empty: in dump() 180 case DirectiveTree::Chunk::K_Code: in dump() 191 for (const auto &Chunk : Tree.Chunks) in dump() local 192 dump(OS, Chunk, Indent); in dump() 202 OSTREAM_DUMP(DirectiveTree::Chunk) 264 Score walk(DirectiveTree::Chunk &C) { in walk() 266 case DirectiveTree::Chunk::K_Code: in walk() 272 case DirectiveTree::Chunk::K_Empty: in walk() [all …]
|
| /llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/ |
| H A D | Delta.cpp | 122 std::vector<Chunk> NewChunks; in increaseGranularity() 151 CheckChunk(Chunk &ChunkToCheckForUninterestingness, in CheckChunk() 154 std::set<Chunk> &UninterestingChunks, in CheckChunk() 160 std::vector<Chunk> CurrentChunks; in CheckChunk() 164 [&](const Chunk &C) { in CheckChunk() 186 for (const Chunk &C : UninterestingChunks) in CheckChunk() 243 std::vector<Chunk> AllChunks = {{0, INT_MAX}}; in runDeltaPass() 255 std::vector<Chunk> NoChunks; in runDeltaPass() 286 std::set<Chunk> UninterestingChunks; in runDeltaPass() 380 Chunk &ChunkToCheckForUninterestingness = *I; in runDeltaPass() [all …]
|
| H A D | Delta.h | 26 struct Chunk { struct 41 friend bool operator!=(const Chunk &C1, const Chunk &C2) { argument 46 friend bool operator<(const Chunk &C1, const Chunk &C2) { 60 ArrayRef<Chunk> ChunksToKeep; 63 explicit Oracle(ArrayRef<Chunk> ChunksToKeep) : ChunksToKeep(ChunksToKeep) {} in Oracle()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/dex/ |
| H A D | PostingList.cpp | 24 explicit ChunkIterator(const Token *Tok, llvm::ArrayRef<Chunk> Chunks) in ChunkIterator() 77 for (const Chunk &C : Chunks) in dump() 105 [&](const Chunk &C) { return C.Head < ID; }); in advanceToChunk() 113 llvm::ArrayRef<Chunk> Chunks; 119 llvm::SmallVector<DocID, Chunk::PayloadSize + 1> DecompressedChunk; 166 std::vector<Chunk> encodeStream(llvm::ArrayRef<DocID> Documents) { in encodeStream() 168 std::vector<Chunk> Result; in encodeStream() 180 return std::vector<Chunk>(Result); // no move, shrink-to-fit in encodeStream() 203 llvm::SmallVector<DocID, Chunk::PayloadSize + 1> Chunk::decompress() const { in decompress() 204 llvm::SmallVector<DocID, Chunk::PayloadSize + 1> Result{Head}; in decompress() [all …]
|
| H A D | PostingList.h | 42 struct Chunk { struct 53 static_assert(sizeof(Chunk) == 32, "Chunk should take 32 bytes of memory."); argument 69 size_t bytes() const { return Chunks.capacity() * sizeof(Chunk); } in bytes() 72 const std::vector<Chunk> Chunks;
|
| /llvm-project-15.0.7/llvm/include/llvm/ObjectYAML/ |
| H A D | ELFYAML.h | 182 struct Chunk { struct 221 virtual ~Chunk(); 224 struct Section : public Chunk { 240 static bool classof(const Chunk *S) { in classof() 282 struct Fill : Chunk { 291 struct SectionHeaderTable : Chunk { 295 static bool classof(const Chunk *S) { in classof() 325 static bool classof(const Chunk *S) { in classof() 339 static bool classof(const Chunk *S) { in classof() 365 static bool classof(const Chunk *S) { in classof() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/ |
| H A D | scudo_allocator.cpp | 73 namespace Chunk { namespace 184 Chunk::loadHeader(Ptr, &Header); in Recycle() 294 if (!Chunk::isAligned(Ptr)) in isValidPointer() 296 return Chunk::isValid(Ptr); in isValidPointer() 326 Chunk::getHeaderSize(); in allocate() 399 Chunk::storeHeader(Ptr, &Header); in allocate() 468 if (UNLIKELY(!Chunk::isAligned(Ptr))) in deallocate() 471 Chunk::loadHeader(Ptr, &Header); in deallocate() 509 if (UNLIKELY(!Chunk::isAligned(OldPtr))) in reallocate() 513 Chunk::loadHeader(OldPtr, &OldHeader); in reallocate() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | CodeCompleteConsumer.h | 522 struct Chunk { struct 540 Chunk() : Text(nullptr) {} in Chunk() argument 542 explicit Chunk(ChunkKind Kind, const char *Text = ""); 545 static Chunk CreateText(const char *Text); 551 static Chunk CreatePlaceholder(const char *Placeholder); 554 static Chunk CreateInformative(const char *Informative); 557 static Chunk CreateResultType(const char *ResultType); 597 using iterator = const Chunk *; 604 const Chunk &operator[](unsigned I) const { 679 using Chunk = CodeCompletionString::Chunk; [all …]
|