Home
last modified time | relevance | path

Searched refs:Storage (Results 1 – 25 of 182) sorted by relevance

12345678

/llvm-project-15.0.7/llvm/unittests/ADT/
H A DBitFieldsTest.cpp17 uint8_t Storage = 0; in TEST() local
54 Storage = 0; in TEST()
60 Storage = 255; in TEST()
68 uint8_t Storage = 0; in TEST() local
81 uint8_t Storage = 0; in TEST() local
94 uint8_t Storage = 0; in TEST() local
107 uint64_t Storage = 0; in TEST() local
122 uint8_t Storage = 0; in TEST() local
134 uint8_t Storage = 0; in TEST() local
144 uint8_t Storage = 0; in TEST() local
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Support/
H A DStorageUniquer.h148 template <typename Storage>
155 static_cast<Storage *>(storage)->~Storage(); in registerParametricStorageType()
161 registerParametricStorageType<Storage>(TypeID::get<Storage>()); in registerParametricStorageType()
172 auto *storage = new (allocator.allocate<Storage>()) Storage(); in registerSingletonStorageType()
186 registerSingletonStorageType<Storage>(TypeID::get<Storage>(), initFn);
195 Storage *get(function_ref<void(Storage *)> initFn, TypeID id, in get()
222 Storage *get(function_ref<void(Storage *)> initFn, Args &&...args) { in get()
223 return get<Storage>(initFn, TypeID::get<Storage>(), in get()
230 Storage *get(TypeID id) { in get()
235 Storage *get() { in get()
[all …]
/llvm-project-15.0.7/clang/lib/AST/
H A DTemplateName.cpp66 Storage = StorageType::getFromOpaqueValue(Ptr); in TemplateName()
71 : Storage(Storage) {} in TemplateName()
73 : Storage(Storage) {} in TemplateName()
75 : Storage(Storage) {} in TemplateName()
77 : Storage(Storage) {} in TemplateName()
85 if (auto *ND = Storage.dyn_cast<Decl *>()) { in getKind()
92 if (Storage.is<DependentTemplateName *>()) in getKind()
94 if (Storage.is<QualifiedTemplateName *>()) in getKind()
98 = Storage.get<UncommonTemplateNameStorage*>(); in getKind()
164 return Storage.dyn_cast<QualifiedTemplateName *>(); in getAsQualifiedTemplateName()
[all …]
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/abseil/
H A Dcleanup-ctad.cpp30 class Storage { class
32 Storage() = delete;
34 explicit Storage(Callback callback) {} in Storage() function in absl::cleanup_internal::Storage
36 Storage(Storage &&other) {} in Storage() function in absl::cleanup_internal::Storage
38 Storage(const Storage &other) = delete;
40 Storage &operator=(Storage &&other) = delete;
42 Storage &operator=(const Storage &other) = delete;
66 cleanup_internal::Storage<Callback> storage_;
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DAny.h64 : Storage(Other.Storage ? Other.Storage->clone() : nullptr) {} in Any()
87 Storage = in Any()
91 Any(Any &&Other) : Storage(std::move(Other.Storage)) {} in Any()
94 std::swap(Storage, Other.Storage); in swap()
99 Storage = std::move(Other.Storage);
103 bool hasValue() const { return !!Storage; } in hasValue()
105 void reset() { Storage.reset(); } in reset()
115 std::unique_ptr<StorageBase> Storage; variable
122 if (!Value.Storage) in any_isa()
124 return Value.Storage->id() == &Any::TypeId<remove_cvref_t<T>>::Id; in any_isa()
[all …]
H A DOptional.h262 optional_detail::OptionalStorage<T> Storage; variable
270 constexpr Optional(const T &y) : Storage(in_place, y) {} in Optional()
281 Storage = std::move(y);
288 Storage.emplace(std::forward<ArgTypes>(Args)...); in emplace()
296 Storage = y;
301 void reset() { Storage.reset(); } in reset()
304 T *getPointer() { return &Storage.value(); } in getPointer()
307 T &value() & { return Storage.value(); } in value()
308 T &getValue() & { return Storage.value(); } in getValue()
335 T &&value() && { return std::move(Storage.value()); } in value()
[all …]
/llvm-project-15.0.7/llvm/unittests/ObjectYAML/
H A DDXContainerYAMLTest.cpp29 SmallString<128> Storage; in TEST() local
32 ASSERT_TRUE(convert(Storage, R"(--- !dxcontainer in TEST()
74 EXPECT_EQ(Storage.size(), 116u); in TEST()
75 EXPECT_TRUE(memcmp(Buffer, Storage.data(), 116) == 0); in TEST()
77 Storage.clear(); in TEST()
81 ASSERT_TRUE(convert(Storage, R"(--- !dxcontainer in TEST()
107 EXPECT_EQ(Storage.size(), 116u); in TEST()
108 EXPECT_TRUE(memcmp(Buffer, Storage.data(), 116) == 0); in TEST()
H A DMinidumpYAMLTest.cpp20 Storage.clear(); in toBinary()
21 raw_svector_ostream OS(Storage); in toBinary()
31 SmallString<0> Storage; in TEST() local
32 auto ExpectedFile = toBinary(Storage, R"( in TEST()
73 SmallString<0> Storage; in TEST() local
89 SmallString<0> Storage; in TEST() local
119 SmallString<0> Storage; in TEST() local
145 SmallString<0> Storage; in TEST() local
191 SmallString<0> Storage; in TEST() local
234 SmallString<0> Storage; in TEST() local
[all …]
H A DYAML2ObjTest.cpp25 SmallString<0> Storage; in TEST() local
26 std::unique_ptr<ObjectFile> Obj = yaml2ObjectFile(Storage, R"( in TEST()
46 SmallString<0> Storage; in TEST() local
62 std::unique_ptr<ObjectFile> Obj = yaml2ObjectFile(Storage, Yaml, ErrHandler); in TEST()
72 Storage.clear(); in TEST()
73 raw_svector_ostream OS(Storage); in TEST()
H A DELFYAMLTest.cpp21 static Expected<ELFObjectFile<ELFT>> toBinary(SmallVectorImpl<char> &Storage, in toBinary() argument
23 Storage.clear(); in toBinary()
24 raw_svector_ostream OS(Storage); in toBinary()
34 SmallString<0> Storage; in TEST() local
35 Expected<ELFObjectFile<ELF64LE>> ExpectedFile = toBinary<ELF64LE>(Storage, R"( in TEST()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/
H A DClangTidyProfiling.cpp46 OS << "\"file\": \"" << Storage->SourceFilename << "\",\n"; in printAsJSON()
47 OS << "\"timestamp\": \"" << Storage->Timestamp << "\",\n"; in printAsJSON()
56 assert(Storage && "We should have a filename."); in storeProfileData()
58 llvm::SmallString<256> OutputDirectory(Storage->StoreFilename); in storeProfileData()
67 llvm::raw_fd_ostream OS(Storage->StoreFilename, EC, llvm::sys::fs::OF_None); in storeProfileData()
69 llvm::errs() << "Error opening output file '" << Storage->StoreFilename in storeProfileData()
77 ClangTidyProfiling::ClangTidyProfiling(llvm::Optional<StorageParams> Storage) in ClangTidyProfiling() argument
78 : Storage(std::move(Storage)) {} in ClangTidyProfiling()
83 if (!Storage) in ~ClangTidyProfiling()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DExplodedGraph.cpp214 assert(Storage.is<ExplodedNode *>()); in replaceNode()
215 Storage = node; in replaceNode()
216 assert(Storage.is<ExplodedNode *>()); in replaceNode()
223 if (Storage.isNull()) { in addNode()
224 Storage = N; in addNode()
240 Storage = V; in addNode()
253 if (Storage.isNull()) in size()
265 if (Storage.isNull()) in begin()
269 return Storage.getAddrOfPtr1(); in begin()
277 if (Storage.isNull()) in end()
[all …]
/llvm-project-15.0.7/clang-tools-extra/pseudo/lib/
H A DToken.cpp51 Storage.emplace_back(); in TokenStream()
52 Storage.back().Kind = clang::tok::eof; in TokenStream()
57 unsigned LastLine = Storage.back().Line; in finalize()
58 Storage.emplace_back(); in finalize()
59 Storage.back().Kind = tok::eof; in finalize()
60 Storage.back().Line = LastLine + 1; in finalize()
62 Tokens = Storage; in finalize()
67 assert(!Storage.empty() && Storage.front().Kind == tok::eof); in isFinalized()
68 if (Storage.size() == 1) in isFinalized()
70 return Storage.back().Kind == tok::eof; in isFinalized()
/llvm-project-15.0.7/llvm/lib/IR/
H A DDebugInfoMetadata.cpp40 : MDNode(C, DILocationKind, Storage, MDs) { in DILocation()
66 if (Storage == Uniqued) { in getImpl()
293 if (Storage == Uniqued) { in getImpl()
334 Storage, Context.pImpl->CLASS##s)
338 Storage, Context.pImpl->CLASS##s)
342 Storage, Context.pImpl->CLASS##s)
346 Storage, Context.pImpl->CLASS##s)
769 DIFile::DIFile(LLVMContext &C, StorageType Storage, in DIFile() argument
825 assert(Storage != Uniqued); in DICompileUnit()
858 Storage); in getImpl()
[all …]
H A DUser.cpp134 uint8_t *Storage = static_cast<uint8_t *>( in allocateFixedOperandUser() local
136 Use *Start = reinterpret_cast<Use *>(Storage + DescBytesToAllocate); in allocateFixedOperandUser()
146 auto *DescInfo = reinterpret_cast<DescriptorInfo *>(Storage + DescBytes); in allocateFixedOperandUser()
163 void *Storage = ::operator new(Size + sizeof(Use *)); in operator new() local
164 Use **HungOffOperandList = static_cast<Use **>(Storage); in operator new()
196 uint8_t *Storage = reinterpret_cast<uint8_t *>(DI) - DI->SizeInBytes; in operator delete() local
197 ::operator delete(Storage); in operator delete()
199 Use *Storage = static_cast<Use *>(Usr) - Obj->NumUserOperands; in operator delete() local
200 Use::zap(Storage, Storage + Obj->NumUserOperands, in operator delete()
202 ::operator delete(Storage); in operator delete()
H A DMetadataImpl.h28 template <class T> T *MDNode::storeImpl(T *N, StorageType Storage) { in storeImpl() argument
29 switch (Storage) { in storeImpl()
42 T *MDNode::storeImpl(T *N, StorageType Storage, StoreT &Store) { in storeImpl() argument
43 switch (Storage) { in storeImpl()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DASTTypeTraits.h270 return BaseConverter<T>::get(NodeKind, &Storage);
414 return &getUnchecked(NodeKind, Storage);
425 new (&Result.Storage) const void *(&Node);
434 return &getUnchecked(NodeKind, Storage);
445 new (&Result.Storage) const void *(&Node);
454 return reinterpret_cast<const T *>(Storage);
459 return *reinterpret_cast<const T *>(Storage);
464 new (&Result.Storage) T(Node);
477 return &getUnchecked(NodeKind, Storage);
487 new (&Result.Storage) T(Node);
[all …]
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DDebugInfoMetadata.h136 : MDNode(C, ID, Storage, Ops1, Ops2) { in MDNode() argument
475 : DINode(C, ID, Storage, Tag, Ops) {} in DIScope()
565 DIFile(LLVMContext &C, StorageType Storage,
583 Storage, ShouldCreate);
669 : DIScope(C, ID, Storage, Tag, Ops) { in DIType()
951 Storage, ShouldCreate);
1531 : DIScope(C, ID, Storage, Tag, Ops) {} in DILocalScope()
1868 Storage, ShouldCreate);
2326 Storage, ShouldCreate);
3082 Storage, ShouldCreate);
[all …]
/llvm-project-15.0.7/llvm/lib/Support/
H A DDJB.cpp37 static StringRef toUTF8(UTF32 C, MutableArrayRef<UTF8> Storage) { in toUTF8() argument
39 UTF8 *Begin8 = Storage.begin(); in toUTF8()
44 Storage.end(), strictConversion); in toUTF8()
47 return StringRef(reinterpret_cast<char *>(Storage.begin()), in toUTF8()
48 Begin8 - Storage.begin()); in toUTF8()
75 std::array<UTF8, UNI_MAX_UTF8_BYTES_PER_CODE_POINT> Storage; in caseFoldingDjbHash() local
78 StringRef Folded = toUTF8(C, Storage); in caseFoldingDjbHash()
/llvm-project-15.0.7/llvm/include/llvm/Object/
H A DMinidump.h110 MemoryInfoIterator(ArrayRef<uint8_t> Storage, size_t Stride) in MemoryInfoIterator() argument
111 : Storage(Storage), Stride(Stride) { in MemoryInfoIterator()
112 assert(Storage.size() % Stride == 0); in MemoryInfoIterator()
116 return Storage.size() == R.Storage.size();
120 assert(Storage.size() >= sizeof(minidump::MemoryInfo));
121 return *reinterpret_cast<const minidump::MemoryInfo *>(Storage.data());
125 Storage = Storage.drop_front(Stride);
130 ArrayRef<uint8_t> Storage;
/llvm-project-15.0.7/clang/include/clang/Lex/
H A DModuleLoader.h49 llvm::PointerIntPair<Module *, 2, LoadResultKind> Storage; variable
52 ModuleLoadResult(Module *M) : Storage(M, Normal) {} in ModuleLoadResult()
53 ModuleLoadResult(LoadResultKind Kind) : Storage(nullptr, Kind) {} in ModuleLoadResult()
55 operator Module *() const { return Storage.getPointer(); }
59 bool isNormal() const { return Storage.getInt() == Normal; } in isNormal()
65 bool isMissingExpected() const { return Storage.getInt() == MissingExpected; } in isMissingExpected()
69 bool isConfigMismatch() const { return Storage.getInt() == ConfigMismatch; } in isConfigMismatch()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DBackgroundIndexTests.cpp55 llvm::StringMap<std::string> &Storage; member in clang::clangd::MemoryShardStorage
60 : Storage(Storage), CacheHits(CacheHits) {} in MemoryShardStorage()
72 if (Storage.find(ShardIdentifier) == Storage.end()) { in loadShard()
97 llvm::StringMap<std::string> Storage; in TEST_F() local
144 llvm::StringMap<std::string> Storage; in TEST_F() local
189 llvm::StringMap<std::string> Storage; in TEST_F() local
244 llvm::StringMap<std::string> Storage; in TEST_F() local
278 llvm::StringMap<std::string> Storage; in TEST_F() local
295 EXPECT_EQ(Storage.size(), 2U); in TEST_F()
305 EXPECT_EQ(Storage.size(), 2U); in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVDuplicatesTracker.h63 StorageTy Storage;
70 Storage[V][MF] = R; in add()
77 Storage[V].setIsFunc(true); in add()
81 Storage[V].setIsGV(true); in add()
85 auto iter = Storage.find(V); in find()
86 if (iter != Storage.end()) { in find()
95 const StorageTy &getAllUses() const { return Storage; } in getAllUses()
98 StorageTy &getAllUses() { return Storage; } in getAllUses()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/AST/
H A DTypeDetail.h21 struct Type::Storage : public StorageUniquer::BaseStorage { struct
22 Storage(TypeID typeID) : typeID(typeID) {} in Storage() function
33 struct TypeStorageBase : public Type::Storage { argument
37 : Type::Storage(TypeID::get<ConcreteT>()), key(key) {} in TypeStorageBase()
56 struct TypeStorageBase<ConcreteT, void> : public Type::Storage {
58 TypeStorageBase() : Type::Storage(TypeID::get<ConcreteT>()) {}
/llvm-project-15.0.7/clang-tools-extra/pseudo/include/clang-pseudo/
H A DToken.h138 Storage.push_back(std::move(T)); in push()
151 assert(&T >= Storage.data() && &T < Storage.data() + Storage.size()); in index()
152 assert(&T != Storage.data() && "start sentinel"); in index()
172 return Storage[1]; in front()
196 std::vector<Token> Storage; // eof + Tokens + eof variable

12345678