| /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); 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 …]
|
| 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/AST/ |
| H A D | TemplateName.cpp | 153 Storage = StorageType::getFromOpaqueValue(Ptr); in TemplateName() 156 TemplateName::TemplateName(TemplateDecl *Template) : Storage(Template) {} in TemplateName() 157 TemplateName::TemplateName(OverloadedTemplateStorage *Storage) in TemplateName() argument 158 : Storage(Storage) {} in TemplateName() 159 TemplateName::TemplateName(AssumedTemplateStorage *Storage) in TemplateName() argument 160 : Storage(Storage) {} in TemplateName() 161 TemplateName::TemplateName(SubstTemplateTemplateParmStorage *Storage) in TemplateName() argument 162 : Storage(Storage) {} in TemplateName() 163 TemplateName::TemplateName(SubstTemplateTemplateParmPackStorage *Storage) in TemplateName() argument 164 : Storage(Storage) {} in TemplateName() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Object/ |
| H A D | Minidump.h | 134 MemoryInfoIterator(ArrayRef<uint8_t> Storage, size_t Stride) in MemoryInfoIterator() argument 135 : Storage(Storage), Stride(Stride) { in MemoryInfoIterator() 136 assert(Storage.size() % Stride == 0); in MemoryInfoIterator() 140 return Storage.size() == R.Storage.size(); 144 assert(Storage.size() >= sizeof(minidump::MemoryInfo)); 145 return *reinterpret_cast<const minidump::MemoryInfo *>(Storage.data()); 149 Storage = Storage.drop_front(Stride); 154 ArrayRef<uint8_t> Storage; 163 begin(ArrayRef<uint8_t> Storage, in begin() argument 165 return Memory64Iterator(Storage, Descriptors); in begin() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | InlineAsm.h | 307 uint32_t Storage; variable 317 unsigned getMatchedOperandNo() const { return Bitfield::get<MatchedOperandNo>(Storage); } in getMatchedOperandNo() 318 unsigned getRegClass() const { return Bitfield::get<RegClass>(Storage); } in getRegClass() 319 bool isMatched() const { return Bitfield::get<IsMatched>(Storage); } in isMatched() 322 Flag() : Storage(0) {} in Flag() 323 explicit Flag(uint32_t F) : Storage(F) {} in Flag() 324 Flag(enum Kind K, unsigned NumOps) : Storage(0) { in Flag() 325 Bitfield::set<KindField>(Storage, K); in Flag() 326 Bitfield::set<NumOperands>(Storage, NumOps); in Flag() 328 operator uint32_t() { return Storage; } in uint32_t() [all …]
|
| H A D | DebugInfoMetadata.h | 141 DINode(LLVMContext &C, unsigned ID, StorageType Storage, unsigned Tag, 143 : MDNode(C, ID, Storage, Ops1, Ops2) { in MDNode() argument 243 GenericDINode(LLVMContext &C, StorageType Storage, unsigned Hash, in GenericDINode() argument 246 : DINode(C, GenericDINodeKind, Storage, Tag, Ops1, Ops2) { in GenericDINode() 256 StorageType Storage, bool ShouldCreate = true) { 258 DwarfOps, Storage, ShouldCreate); 264 StorageType Storage, 318 DIAssignID(LLVMContext &C, StorageType Storage) in DIAssignID() argument 319 : MDNode(C, DIAssignIDKind, Storage, {}) {} in DIAssignID() 323 LLVM_ABI static DIAssignID *getImpl(LLVMContext &Context, StorageType Storage, [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
| H A D | ModuleLoader.h | 50 llvm::PointerIntPair<Module *, 2, LoadResultKind> Storage; variable 53 ModuleLoadResult(Module *M) : Storage(M, Normal) {} in ModuleLoadResult() 54 ModuleLoadResult(LoadResultKind Kind) : Storage(nullptr, Kind) {} in ModuleLoadResult() 55 ModuleLoadResult(Module *M, LoadResultKind Kind) : Storage(M, Kind) {} in ModuleLoadResult() 58 return Storage.getInt() == Normal && Storage.getPointer(); 61 operator Module *() const { return Storage.getPointer(); } 65 bool isNormal() const { return Storage.getInt() == Normal; } in isNormal() 71 bool isMissingExpected() const { return Storage.getInt() == MissingExpected; } in isMissingExpected() 75 bool isConfigMismatch() const { return Storage.getInt() == ConfigMismatch; } in isConfigMismatch()
|
| H A D | ModuleMap.h | 159 llvm::PointerIntPair<Module *, 3, ModuleHeaderRole> Storage; variable 162 KnownHeader() : Storage(nullptr, NormalHeader) {} in KnownHeader() 163 KnownHeader(Module *M, ModuleHeaderRole Role) : Storage(M, Role) {} in KnownHeader() 166 return A.Storage == B.Storage; 169 return A.Storage != B.Storage; 173 Module *getModule() const { return Storage.getPointer(); } in getModule() 176 ModuleHeaderRole getRole() const { return Storage.getInt(); } in getRole() 192 return Storage.getPointer() != nullptr;
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExplodedGraph.cpp | 211 GroupStorage &Storage = reinterpret_cast<GroupStorage&>(P); in replaceNode() local 212 assert(isa<ExplodedNode *>(Storage)); in replaceNode() 213 Storage = node; in replaceNode() 214 assert(isa<ExplodedNode *>(Storage)); in replaceNode() 220 GroupStorage &Storage = reinterpret_cast<GroupStorage&>(P); in addNode() local 221 if (Storage.isNull()) { in addNode() 222 Storage = N; in addNode() 223 assert(isa<ExplodedNode *>(Storage)); in addNode() 227 ExplodedNodeVector *V = dyn_cast<ExplodedNodeVector *>(Storage); in addNode() 231 auto *Old = cast<ExplodedNode *>(Storage); in addNode() [all …]
|
| /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 | User.cpp | 144 uint8_t *Storage = static_cast<uint8_t *>( in allocateFixedOperandUser() local 146 Use *Start = reinterpret_cast<Use *>(Storage + DescBytesToAllocate); in allocateFixedOperandUser() 156 auto *DescInfo = reinterpret_cast<DescriptorInfo *>(Storage + DescBytes); in allocateFixedOperandUser() 175 void *Storage = ::operator new(Size + sizeof(Use *)); in operator new() local 176 Use **HungOffOperandList = static_cast<Use **>(Storage); in operator new() 208 uint8_t *Storage = reinterpret_cast<uint8_t *>(DI) - DI->SizeInBytes; in operator delete() local 209 ::operator delete(Storage); in operator delete() 211 Use *Storage = static_cast<Use *>(Usr) - Obj->NumUserOperands; in operator delete() local 212 Use::zap(Storage, Storage + Obj->NumUserOperands, in operator delete() 214 ::operator delete(Storage); in operator delete()
|
| H A D | DebugInfoMetadata.cpp | 66 DILocation::DILocation(LLVMContext &C, StorageType Storage, unsigned Line, in DILocation() argument 69 : MDNode(C, DILocationKind, Storage, MDs) in DILocation() 102 StorageType Storage, bool ShouldCreate) { in getImpl() argument 106 if (Storage == Uniqued) { in getImpl() 122 return storeImpl(new (Ops.size(), Storage) in getImpl() 123 DILocation(Context, Storage, Line, Column, AtomGroup, in getImpl() 125 Storage, Context.pImpl->DILocations); in getImpl() 575 StorageType Storage, bool ShouldCreate) { in getImpl() argument 577 if (Storage == Uniqued) { in getImpl() 591 return storeImpl(new (DwarfOps.size() + 1, Storage) GenericDINode( in getImpl() [all …]
|
| 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()
|
| /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 | Chrono.cpp | 27 struct tm Storage; in getStructTM() local 31 struct tm *LT = ::localtime_r(&OurTime, &Storage); in getStructTM() 36 int Error = ::localtime_s(&Storage, &OurTime); in getStructTM() 41 return Storage; in getStructTM() 45 struct tm Storage; in getStructTMUtc() local 49 struct tm *LT = ::gmtime_r(&OurTime, &Storage); in getStructTMUtc() 54 int Error = ::gmtime_s(&Storage, &OurTime); in getStructTMUtc() 59 return Storage; in getStructTMUtc()
|
| 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() 2055 parseScalarValue(StringRef UnquotedValue, SmallVectorImpl<char> &Storage, in parseScalarValue() argument 2063 Storage.clear(); in parseScalarValue() 2064 Storage.reserve(UnquotedValue.size()); in parseScalarValue() 2068 llvm::append_range(Storage, UnquotedValue.take_front(I)); in parseScalarValue() 2069 UnquotedValue = UnescapeCallback(UnquotedValue.drop_front(I), Storage); in parseScalarValue() 2075 llvm::append_range(Storage, UnquotedValue.take_front(LastNonSWhite + 1)); in parseScalarValue() [all …]
|
| /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/libc/src/__support/fixed_point/ |
| H A D | fx_rep.h | 26 template <int Bits> struct Storage { struct 56 using StorageType = typename internal::Storage<TOTAL_LEN>::Type; 76 using StorageType = typename internal::Storage<TOTAL_LEN>::Type; 96 using StorageType = typename internal::Storage<TOTAL_LEN>::Type; 116 using StorageType = typename internal::Storage<TOTAL_LEN>::Type; 136 using StorageType = typename internal::Storage<TOTAL_LEN>::Type; 156 using StorageType = typename internal::Storage<TOTAL_LEN>::Type; 176 using StorageType = typename internal::Storage<TOTAL_LEN>::Type; 196 using StorageType = typename internal::Storage<TOTAL_LEN>::Type; 216 using StorageType = typename internal::Storage<TOTAL_LEN>::Type; [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | PrecompiledPreamble.cpp | 427 std::unique_ptr<PCHStorage> Storage; in Build() local 429 Storage = PCHStorage::inMemory(Buffer); in Build() 437 Storage = PCHStorage::file(std::move(PreamblePCHFile)); in Build() 450 StoreInMemory ? getInMemoryPreamblePath() : Storage->filePath()); in Build() 513 /*WritePCHFile=*/Storage->getKind() == PCHStorage::Kind::TempFile, in Build() 573 Storage->shrink(); in Build() 575 std::move(Storage), std::move(PreambleBytes), PreambleEndsAtStartOfLine, in Build() 584 switch (Storage->getKind()) { in getSize() 586 return Storage->memoryContents().size(); in getSize() 589 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 | 30 BumpPtrAllocator &Storage; variable 50 SymbolSerializer(BumpPtrAllocator &Storage, CodeViewContainer Container); 53 static CVSymbol writeOneSymbol(SymType &Sym, BumpPtrAllocator &Storage, in writeOneSymbol() argument 57 SymbolSerializer Serializer(Storage, Container); in writeOneSymbol()
|
| /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/GSYM/ |
| H A D | LookupResult.cpp | 25 llvm::SmallString<64> Storage; in getSourceFile() local 26 llvm::sys::path::append(Storage, Locations[Index].Dir, in getSourceFile() 28 Fullpath.assign(Storage.begin(), Storage.end()); in getSourceFile()
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | TemplateName.h | 231 StorageType Storage; variable 276 explicit TemplateName(OverloadedTemplateStorage *Storage); 277 explicit TemplateName(AssumedTemplateStorage *Storage); 278 explicit TemplateName(SubstTemplateTemplateParmStorage *Storage); 279 explicit TemplateName(SubstTemplateTemplateParmPackStorage *Storage); 386 ID.AddPointer(Storage.getOpaqueValue()); in Profile() 390 void *getAsVoidPointer() const { return Storage.getOpaqueValue(); } in getAsVoidPointer() 398 bool operator==(TemplateName Other) const { return Storage == Other.Storage; }
|
| /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/lib/AST/ByteCode/ |
| H A D | Pointer.h | 57 enum class Storage { Block, Int, Fn, Typeid }; enum 95 StorageKind = Storage::Int; in Pointer() 99 Pointer(IntPointer &&IntPtr) : StorageKind(Storage::Int) { in Pointer() 107 : Offset(Offset), StorageKind(Storage::Int) { in Offset() 112 : Offset(Offset), StorageKind(Storage::Fn) { in Offset() 116 : Offset(Offset), StorageKind(Storage::Typeid) { in Offset() 482 bool isBlockPointer() const { return StorageKind == Storage::Block; } in isBlockPointer() 483 bool isIntegralPointer() const { return StorageKind == Storage::Int; } in isIntegralPointer() 484 bool isFunctionPointer() const { return StorageKind == Storage::Fn; } in isFunctionPointer() 485 bool isTypeidPointer() const { return StorageKind == Storage::Typeid; } in isTypeidPointer() [all …]
|