/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | TemplateName.cpp | 103 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 …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | Any.h | 66 : 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); 124 std::unique_ptr<StorageBase> Storage; global() variable [all...] |
H A D | LazyAtomicPointer.h | 67 if (Storage.compare_exchange_weak(RawExistingValue, makeRaw(NewValue))) in compare_exchange_weak() 83 if (Storage.compare_exchange_strong(RawExistingValue, makeRaw(NewValue))) in compare_exchange_strong() 90 if (Storage.compare_exchange_weak(RawExistingValue, makeRaw(NewValue))) in compare_exchange_strong() 101 uintptr_t RawValue = Storage.load(); in load() 111 uintptr_t Raw = Storage.load(); in loadOrGenerate() 117 Storage.compare_exchange_strong(Raw, getBusy()))) { in loadOrGenerate() 120 Storage.store(Raw); in loadOrGenerate() 126 Raw = Storage.load(); in loadOrGenerate() 141 LazyAtomicPointer() : Storage(0) {} in LazyAtomicPointer() 142 LazyAtomicPointer(std::nullptr_t) : Storage(0) {} in LazyAtomicPointer() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | ExplodedGraph.cpp | 213 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 …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
H A D | ModuleLoader.h | 49 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 D | ModuleMap.h | 160 llvm::PointerIntPair<Module *, 3, ModuleHeaderRole> Storage; variable 163 KnownHeader() : Storage(nullptr, NormalHeader) {} in KnownHeader() 164 KnownHeader(Module *M, ModuleHeaderRole Role) : Storage(M, Role) {} in KnownHeader() 167 return A.Storage == B.Storage; 170 return A.Storage != B.Storage; 174 Module *getModule() const { return Storage.getPointer(); } in getModule() 177 ModuleHeaderRole getRole() const { return Storage.getInt(); } in getRole() 193 return Storage.getPointer() != nullptr;
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | CustomizableOptional.h | 29 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 …]
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | DebugInfoMetadata.cpp | 58 DILocation::DILocation(LLVMContext &C, StorageType Storage, unsigned Line, in DILocation() argument 61 : MDNode(C, DILocationKind, Storage, MDs) { in DILocation() 83 StorageType Storage, bool ShouldCreate) { in getImpl() argument 87 if (Storage == Uniqued) { in getImpl() 102 return storeImpl(new (Ops.size(), Storage) DILocation( in getImpl() 103 Context, Storage, Line, Column, Ops, ImplicitCode), in getImpl() 104 Storage, Context.pImpl->DILocations); in getImpl() 395 StorageType Storage, bool ShouldCreate) { in getImpl() argument 397 if (Storage == Uniqued) { in getImpl() 411 return storeImpl(new (DwarfOps.size() + 1, Storage) GenericDINode( in getImpl() [all …]
|
H A D | User.cpp | 134 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 D | MetadataImpl.h | 28 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()
|
H A D | ConstantsContext.h | 293 SmallVectorImpl<Constant *> &Storage) { 294 assert(Storage.empty() && "Expected empty storage"); 296 Storage.push_back(C->getOperand(I)); 297 Operands = Storage; 422 SmallVectorImpl<Constant *> &Storage) 428 assert(Storage.empty() && "Expected empty storage"); 430 Storage.push_back(CE->getOperand(I)); 431 Ops = Storage; 508 SmallVectorImpl<Constant *> &Storage) { 509 assert(Storage.empty() && "Expected empty storage"); [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | DebugInfoMetadata.h | 140 DINode(LLVMContext &C, unsigned ID, StorageType Storage, unsigned Tag, 142 : MDNode(C, ID, Storage, Ops1, Ops2) { in MDNode() argument 240 GenericDINode(LLVMContext &C, StorageType Storage, unsigned Hash, in GenericDINode() argument 243 : DINode(C, GenericDINodeKind, Storage, Tag, Ops1, Ops2) { in GenericDINode() 253 StorageType Storage, bool ShouldCreate = true) { 255 DwarfOps, Storage, ShouldCreate); 260 StorageType Storage, bool ShouldCreate = true); 313 DIAssignID(LLVMContext &C, StorageType Storage) in DIAssignID() argument 314 : MDNode(C, DIAssignIDKind, Storage, std::nullopt) {} in DIAssignID() 318 static DIAssignID *getImpl(LLVMContext &Context, StorageType Storage, [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/ |
H A D | Minidump.h | 111 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;
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | DJB.cpp | 37 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 D | YAMLParser.cpp | 2032 StringRef ScalarNode::getValue(SmallVectorImpl<char> &Storage) const { in getValue() 2034 return getDoubleQuotedValue(Value, Storage); in getValue() 2036 return getSingleQuotedValue(Value, Storage); in getValue() 2037 return getPlainValue(Value, Storage); in getValue() 2046 /// \param Storage - A storage for the result if the input value is multiline or in getValue() 2055 parseScalarValue(StringRef UnquotedValue, SmallVectorImpl<char> &Storage, in unescapeDoubleQuoted() 2063 Storage.clear(); in unescapeDoubleQuoted() 2064 Storage.reserve(UnquotedValue.size()); in unescapeDoubleQuoted() 2068 llvm::append_range(Storage, UnquotedValue.take_front(I)); in unescapeDoubleQuoted() 2069 UnquotedValue = UnescapeCallback(UnquotedValue.drop_front(I), Storage); in unescapeDoubleQuoted() [all...] |
H A D | Chrono.cpp | 26 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() 44 struct tm Storage; in operator <<() 48 struct tm *LT = ::gmtime_r(&OurTime, &Storage); in operator <<() 53 int Error = ::gmtime_s(&Storage, &OurTime); in format() 58 return Storage; in format()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-diff/lib/ |
H A D | DifferenceEngine.cpp | 39 llvm::SmallVector<T, InlineCapacity> Storage; member in __anon35eb8c210111::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 …]
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | PrecompiledPreamble.cpp | 428 std::unique_ptr<PCHStorage> Storage; in Build() local 430 Storage = PCHStorage::inMemory(Buffer); in Build() 438 Storage = PCHStorage::file(std::move(PreamblePCHFile)); in Build() 451 StoreInMemory ? getInMemoryPreamblePath() : Storage->filePath()); in Build() 515 /*WritePCHFile=*/Storage->getKind() == PCHStorage::Kind::TempFile, in Build() 575 Storage->shrink(); in Build() 577 std::move(Storage), std::move(PreambleBytes), PreambleEndsAtStartOfLine, in Build() 586 switch (Storage->getKind()) { in getSize() 588 return Storage->memoryContents().size(); in getSize() 591 if (llvm::sys::fs::file_size(Storage->filePath(), Result)) in getSize() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
H A D | SymbolSerializer.h | 29 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()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVDuplicatesTracker.h | 144 StorageTy Storage; 151 Storage[V][MF] = R; in add() 158 Storage[V].setIsFunc(true); in add() 162 Storage[V].setIsGV(true); in add() 166 auto iter = Storage.find(V); in find() 167 if (iter != Storage.end()) { in find() 176 const StorageTy &getAllUses() const { return Storage; } in getAllUses() 179 StorageTy &getAllUses() { return Storage; } in getAllUses()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/ |
H A D | LookupResult.cpp | 27 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()
|
/freebsd/contrib/llvm-project/lldb/source/Target/ |
H A D | Trace.cpp | 189 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 …]
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
H A D | TypeStreamMerger.cpp | 137 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()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | TemplateName.h | 212 StorageType Storage; variable 253 explicit TemplateName(OverloadedTemplateStorage *Storage); 254 explicit TemplateName(AssumedTemplateStorage *Storage); 255 explicit TemplateName(SubstTemplateTemplateParmStorage *Storage); 256 explicit TemplateName(SubstTemplateTemplateParmPackStorage *Storage); 353 void *getAsVoidPointer() const { return Storage.getOpaqueValue(); } in getAsVoidPointer() 361 bool operator==(TemplateName Other) const { return Storage == Other.Storage; }
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | CommandLine.h | 1569 std::vector<DataType> Storage; 1576 iterator begin() { return Storage.begin(); } 1577 iterator end() { return Storage.end(); } 1581 const_iterator begin() const { return Storage.begin(); } 1582 const_iterator end() const { return Storage.end(); } 1586 size_type size() const { return Storage.size(); } 1588 bool empty() const { return Storage.empty(); } 1590 void push_back(const DataType &value) { Storage.push_back(value); } 1591 void push_back(DataType &&value) { Storage.push_back(value); } 1596 reference operator[](size_type pos) { return Storage[pos]; } [all …]
|