Home
last modified time | relevance | path

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

12345678

/openbsd-src/gnu/llvm/clang/lib/AST/
H A DTemplateName.cpp103 Storage = StorageType::getFromOpaqueValue(Ptr); in TemplateName()
106 TemplateName::TemplateName(TemplateDecl *Template) : Storage(Template) {} in TemplateName()
107 TemplateName::TemplateName(OverloadedTemplateStorage *Storage) in TemplateName() argument
108 : Storage(Storage) {} in TemplateName()
109 TemplateName::TemplateName(AssumedTemplateStorage *Storage) in TemplateName() argument
110 : Storage(Storage) {} in TemplateName()
111 TemplateName::TemplateName(SubstTemplateTemplateParmStorage *Storage) in TemplateName() argument
112 : Storage(Storage) {} in TemplateName()
113 TemplateName::TemplateName(SubstTemplateTemplateParmPackStorage *Storage) in TemplateName() argument
114 : Storage(Storage) {} in TemplateName()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/ADT/
H A DAny.h66 : Storage(Other.Storage ? Other.Storage->clone() : nullptr) {} in Any()
89 Storage = in Any()
93 Any(Any &&Other) : Storage(std::move(Other.Storage)) {} in Any()
96 std::swap(Storage, Other.Storage); in swap()
101 Storage = std::move(Other.Storage);
105 bool has_value() const { return !!Storage; } in has_value()
107 void reset() { Storage.reset(); } in reset()
112 if (!Storage) in isa()
114 return Storage->id() == &Any::TypeId<remove_cvref_t<T>>::Id; in isa()
124 std::unique_ptr<StorageBase> Storage; variable
[all …]
/openbsd-src/gnu/llvm/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()
54 ModuleLoadResult(Module *M, LoadResultKind Kind) : Storage(M, Kind) {} in ModuleLoadResult()
57 return Storage.getInt() == Normal && Storage.getPointer();
60 operator Module *() const { return Storage.getPointer(); }
64 bool isNormal() const { return Storage.getInt() == Normal; } in isNormal()
70 bool isMissingExpected() const { return Storage.getInt() == MissingExpected; } in isMissingExpected()
74 bool isConfigMismatch() const { return Storage.getInt() == ConfigMismatch; } in isConfigMismatch()
H A DModuleMap.h162 llvm::PointerIntPair<Module *, 3, ModuleHeaderRole> Storage; variable
165 KnownHeader() : Storage(nullptr, NormalHeader) {} in KnownHeader()
166 KnownHeader(Module *M, ModuleHeaderRole Role) : Storage(M, Role) {} in KnownHeader()
169 return A.Storage == B.Storage;
172 return A.Storage != B.Storage;
176 Module *getModule() const { return Storage.getPointer(); } in getModule()
179 ModuleHeaderRole getRole() const { return Storage.getInt(); } in getRole()
195 return Storage.getPointer() != nullptr;
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DExplodedGraph.cpp213 GroupStorage &Storage = reinterpret_cast<GroupStorage&>(P); in replaceNode() local
214 assert(Storage.is<ExplodedNode *>()); in replaceNode()
215 Storage = node; in replaceNode()
216 assert(Storage.is<ExplodedNode *>()); in replaceNode()
222 GroupStorage &Storage = reinterpret_cast<GroupStorage&>(P); in addNode() local
223 if (Storage.isNull()) { in addNode()
224 Storage = N; in addNode()
225 assert(Storage.is<ExplodedNode *>()); in addNode()
229 ExplodedNodeVector *V = Storage.dyn_cast<ExplodedNodeVector *>(); in addNode()
233 ExplodedNode *Old = Storage.get<ExplodedNode *>(); in addNode()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DDebugInfoMetadata.cpp44 DILocation::DILocation(LLVMContext &C, StorageType Storage, unsigned Line, in DILocation() argument
47 : MDNode(C, DILocationKind, Storage, MDs) { in DILocation()
69 StorageType Storage, bool ShouldCreate) { in getImpl() argument
73 if (Storage == Uniqued) { in getImpl()
88 return storeImpl(new (Ops.size(), Storage) DILocation( in getImpl()
89 Context, Storage, Line, Column, Ops, ImplicitCode), in getImpl()
90 Storage, Context.pImpl->DILocations); in getImpl()
324 StorageType Storage, bool ShouldCreate) { in getImpl() argument
326 if (Storage == Uniqued) { in getImpl()
340 return storeImpl(new (DwarfOps.size() + 1, Storage) GenericDINode( 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()
/openbsd-src/gnu/llvm/clang/include/clang/Basic/
H A DCustomizableOptional.h29 optional_detail::OptionalStorage<T> Storage; variable
37 constexpr CustomizableOptional(const T &y) : Storage(std::in_place, y) {} in CustomizableOptional()
41 : Storage(std::in_place, std::move(y)) {} in CustomizableOptional()
46 : Storage(std::in_place, std::forward<ArgTypes>(Args)...) {} in CustomizableOptional()
55 Storage = std::move(y);
62 Storage.emplace(std::forward<ArgTypes>(Args)...); in emplace()
66 Storage = y;
71 void reset() { Storage.reset(); } in reset()
74 constexpr const T *getPointer() const { return &Storage.value(); } in getPointer()
76 T *getPointer() { return &Storage.value(); } in getPointer()
[all …]
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DASTTypeTraits.h269 return BaseConverter<T>::get(NodeKind, &Storage);
277 return BaseConverter<T>::getUnchecked(NodeKind, &Storage);
289 ? *reinterpret_cast<void *const *>(&Storage)
411 static const T *get(ASTNodeKind NodeKind, const void *Storage) {
413 return &getUnchecked(NodeKind, Storage);
416 static const T &getUnchecked(ASTNodeKind NodeKind, const void *Storage) {
419 *reinterpret_cast<const void *const *>(Storage)));
424 new (&Result.Storage) const void *(&Node);
431 static const T *get(ASTNodeKind NodeKind, const void *Storage) {
433 return &getUnchecked(NodeKind, Storage);
[all …]
H A DTemplateName.h211 StorageType Storage; variable
252 explicit TemplateName(OverloadedTemplateStorage *Storage);
253 explicit TemplateName(AssumedTemplateStorage *Storage);
254 explicit TemplateName(SubstTemplateTemplateParmStorage *Storage);
255 explicit TemplateName(SubstTemplateTemplateParmPackStorage *Storage);
355 ID.AddPointer(Storage.getOpaqueValue()); in Profile()
359 void *getAsVoidPointer() const { return Storage.getOpaqueValue(); } in getAsVoidPointer()
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DDebugInfoMetadata.h135 DINode(LLVMContext &C, unsigned ID, StorageType Storage, unsigned Tag,
137 : MDNode(C, ID, Storage, Ops1, Ops2) { in MDNode() argument
233 GenericDINode(LLVMContext &C, StorageType Storage, unsigned Hash, in GenericDINode() argument
236 : DINode(C, GenericDINodeKind, Storage, Tag, Ops1, Ops2) { in GenericDINode()
246 StorageType Storage, bool ShouldCreate = true) {
248 DwarfOps, Storage, ShouldCreate);
253 StorageType Storage, bool ShouldCreate = true);
306 DIAssignID(LLVMContext &C, StorageType Storage) in DIAssignID() argument
307 : MDNode(C, DIAssignIDKind, Storage, std::nullopt) {} in DIAssignID()
311 static DIAssignID *getImpl(LLVMContext &Context, StorageType Storage,
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Object/
H A DMinidump.h111 MemoryInfoIterator(ArrayRef<uint8_t> Storage, size_t Stride) in MemoryInfoIterator() argument
112 : Storage(Storage), Stride(Stride) { in MemoryInfoIterator()
113 assert(Storage.size() % Stride == 0); in MemoryInfoIterator()
117 return Storage.size() == R.Storage.size();
121 assert(Storage.size() >= sizeof(minidump::MemoryInfo));
122 return *reinterpret_cast<const minidump::MemoryInfo *>(Storage.data());
126 Storage = Storage.drop_front(Stride);
131 ArrayRef<uint8_t> Storage;
/openbsd-src/gnu/llvm/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()
76 std::array<UTF8, UNI_MAX_UTF8_BYTES_PER_CODE_POINT> Storage; in caseFoldingDjbHash() local
79 StringRef Folded = toUTF8(C, Storage); in caseFoldingDjbHash()
H A DYAMLParser.cpp2015 StringRef ScalarNode::getValue(SmallVectorImpl<char> &Storage) const { in getValue()
2023 return unescapeDoubleQuoted(UnquotedValue, i, Storage); in getValue()
2031 Storage.clear(); in getValue()
2032 Storage.reserve(UnquotedValue.size()); in getValue()
2035 llvm::append_range(Storage, Valid); in getValue()
2036 Storage.push_back('\''); in getValue()
2039 llvm::append_range(Storage, UnquotedValue); in getValue()
2040 return StringRef(Storage.begin(), Storage.size()); in getValue()
2050 , SmallVectorImpl<char> &Storage) in unescapeDoubleQuoted()
2053 Storage.clear(); in unescapeDoubleQuoted()
[all …]
H A DChrono.cpp26 struct tm Storage; in getStructTM() local
30 struct tm *LT = ::localtime_r(&OurTime, &Storage); in getStructTM()
35 int Error = ::localtime_s(&Storage, &OurTime); in getStructTM()
40 return Storage; in getStructTM()
/openbsd-src/gnu/llvm/clang/lib/Frontend/
H A DPrecompiledPreamble.cpp415 std::unique_ptr<PCHStorage> Storage; in Build() local
417 Storage = PCHStorage::inMemory(Buffer); in Build()
424 Storage = PCHStorage::file(std::move(PreamblePCHFile)); in Build()
437 StoreInMemory ? getInMemoryPreamblePath() : Storage->filePath()); in Build()
501 /*WritePCHFile=*/Storage->getKind() == PCHStorage::Kind::TempFile, in Build()
561 Storage->shrink(); in Build()
563 std::move(Storage), std::move(PreambleBytes), PreambleEndsAtStartOfLine, in Build()
572 switch (Storage->getKind()) { in getSize()
574 return Storage->memoryContents().size(); in getSize()
577 if (llvm::sys::fs::file_size(Storage->filePath(), Result)) in getSize()
[all …]
/openbsd-src/gnu/llvm/llvm/tools/llvm-diff/lib/
H A DDifferenceEngine.cpp39 llvm::SmallVector<T, InlineCapacity> Storage; member in __anoncf9999380111::PriorityQueue
45 bool empty() const { return Storage.empty(); } in empty()
49 unsigned Index = Storage.size(); in insert()
50 Storage.push_back(V); in insert()
53 T *data = Storage.data(); in insert()
66 T tmp = Storage[0]; in remove_min()
68 unsigned NewSize = Storage.size() - 1; in remove_min()
72 Storage[0] = Storage[NewSize]; in remove_min()
74 std::swap(Storage[0], Storage[NewSize]); in remove_min()
89 if (Precedes(Storage[L], Storage[Index])) in remove_min()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/CodeView/
H A DSymbolSerializer.h29 BumpPtrAllocator &Storage; variable
49 SymbolSerializer(BumpPtrAllocator &Storage, CodeViewContainer Container);
52 static CVSymbol writeOneSymbol(SymType &Sym, BumpPtrAllocator &Storage, in writeOneSymbol() argument
56 SymbolSerializer Serializer(Storage, Container); in writeOneSymbol()
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/GSYM/
H A DLookupResult.cpp27 llvm::SmallString<64> Storage; in getSourceFile() local
28 llvm::sys::path::append(Storage, Locations[Index].Dir, in getSourceFile()
30 Fullpath.assign(Storage.begin(), Storage.end()); in getSourceFile()
/openbsd-src/gnu/llvm/lldb/source/Target/
H A DTrace.cpp189 Storage &storage = GetUpdatedStorage(); in GetLiveThreadBinaryDataSize()
195 Storage &storage = GetUpdatedStorage(); in GetLiveCpuBinaryDataSize()
201 Storage &storage = GetUpdatedStorage(); in GetLiveProcessBinaryDataSize()
278 Trace::Storage &Trace::GetUpdatedStorage() { in GetUpdatedStorage()
295 m_storage = Trace::Storage(); in RefreshLiveProcessState()
376 Storage &storage = GetUpdatedStorage(); in GetPostMortemThreadDataFile()
389 Storage &storage = GetUpdatedStorage(); in GetPostMortemCpuDataFile()
402 Storage &storage = GetUpdatedStorage(); in SetPostMortemThreadDataFile()
408 Storage &storage = GetUpdatedStorage(); in SetPostMortemCpuDataFile()
424 Storage &storage = GetUpdatedStorage(); in OnLiveCpuBinaryDataRead()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/CodeView/
H A DTypeStreamMerger.cpp137 MutableArrayRef<uint8_t> Storage);
359 [this, Type](MutableArrayRef<uint8_t> Storage) -> ArrayRef<uint8_t> { in remapType() argument
360 return remapIndices(Type, Storage); in remapType()
389 MutableArrayRef<uint8_t> Storage) { in remapIndices() argument
391 assert(Storage.size() == alignTo(OriginalType.RecordData.size(), 4) && in remapIndices()
400 ::memcpy(Storage.data(), OriginalType.RecordData.data(), in remapIndices()
403 uint8_t *DestContent = Storage.data() + sizeof(RecordPrefix); in remapIndices()
420 reinterpret_cast<RecordPrefix *>(Storage.data()); in remapIndices()
423 DestContent = Storage.data() + OriginalType.RecordData.size(); in remapIndices()
427 return Storage; in remapIndices()
/openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/
H A DSPIRVDuplicatesTracker.h190 StorageTy Storage;
197 Storage[V][MF] = R;
204 Storage[V].setIsFunc(true);
208 Storage[V].setIsGV(true);
212 auto iter = Storage.find(V);
213 if (iter != Storage.end()) {
222 const StorageTy &getAllUses() const { return Storage; }
225 StorageTy &getAllUses() { return Storage; }
/openbsd-src/gnu/llvm/llvm/include/llvm/Support/
H A DCommandLine.h1560 std::vector<DataType> Storage;
1567 iterator begin() { return Storage.begin(); }
1568 iterator end() { return Storage.end(); }
1572 const_iterator begin() const { return Storage.begin(); }
1573 const_iterator end() const { return Storage.end(); }
1577 size_type size() const { return Storage.size(); }
1579 bool empty() const { return Storage.empty(); }
1581 void push_back(const DataType &value) { Storage.push_back(value); }
1582 void push_back(DataType &&value) { Storage.push_back(value); }
1587 reference operator[](size_type pos) { return Storage[pos]; }
[all …]
/openbsd-src/gnu/llvm/llvm/lib/ObjectYAML/
H A Dyaml2obj.cpp65 yaml2ObjectFile(SmallVectorImpl<char> &Storage, StringRef Yaml, in yaml2ObjectFile() argument
67 Storage.clear(); in yaml2ObjectFile()
68 raw_svector_ostream OS(Storage); in yaml2ObjectFile()

12345678