| /freebsd/contrib/llvm-project/llvm/include/llvm/Object/ |
| H A D | Archive.h | 50 virtual Expected<StringRef> getRawName() const = 0; 57 virtual Expected<StringRef> getName(uint64_t Size) const = 0; 58 virtual Expected<uint64_t> getSize() const = 0; 62 virtual Expected<const char *> getNextChildLoc() const = 0; 63 virtual Expected<bool> isThin() const = 0; 65 LLVM_ABI Expected<sys::fs::perms> getAccessMode() const; 66 LLVM_ABI Expected<sys::TimePoint<std::chrono::seconds>> 68 LLVM_ABI Expected<unsigned> getUID() const; 69 LLVM_ABI Expected<unsigned> getGID() const; 114 Expected<StringRef> getRawName() const override; [all …]
|
| H A D | ELF.h | 110 Expected<T> operator[](uint64_t N) { 289 Expected<const T *> getEntry(uint32_t Section, uint32_t Entry) const; 291 Expected<const T *> getEntry(const Elf_Shdr &Section, uint32_t Entry) const; 293 Expected<std::vector<VerDef>> 295 Expected<std::vector<VerNeed>> getVersionDependencies( 298 Expected<StringRef> getSymbolVersionByIndex( 303 Expected<StringRef> 306 Expected<StringRef> getStringTableForSymtab(const Elf_Shdr &Section) const; 307 Expected<StringRef> getStringTableForSymtab(const Elf_Shdr &Section, 309 Expected<StringRef> getLinkAsStrtab(const typename ELFT::Shdr &Sec) const; [all …]
|
| H A D | ObjectFile.h | 98 Expected<StringRef> getName() const; 102 Expected<StringRef> getContents() const; 140 Expected<section_iterator> getRelocatedSection() const; 188 Expected<StringRef> getName() const; 191 Expected<uint64_t> getAddress() const; 195 Expected<uint64_t> getValue() const; 200 Expected<SymbolRef::Type> getType() const; 204 Expected<section_iterator> getSection() const; 250 virtual Expected<StringRef> getSymbolName(DataRefImpl Symb) const = 0; 253 virtual Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const = 0; [all …]
|
| H A D | Minidump.h | 30 LLVM_ABI static Expected<std::unique_ptr<MinidumpFile>> 53 Expected<ArrayRef<uint8_t>> 60 LLVM_ABI Expected<std::string> getString(size_t Offset) const; 66 Expected<const minidump::SystemInfo &> getSystemInfo() const { in getSystemInfo() 75 Expected<ArrayRef<minidump::Module>> getModuleList() const { in getModuleList() 84 Expected<ArrayRef<minidump::Thread>> getThreadList() const { in getThreadList() 91 Expected<const minidump::ExceptionStream &> 103 Expected<const minidump::ExceptionStream &> getExceptionStream() const { in getExceptionStream() 117 Expected<ArrayRef<minidump::MemoryDescriptor>> getMemoryList() const { in getMemoryList() 124 Expected<minidump::Memory64ListHeader> getMemoryList64Header() const { in getMemoryList64Header() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/Symbolize/ |
| H A D | Symbolize.h | 81 LLVM_ABI Expected<DILineInfo> 83 LLVM_ABI Expected<DILineInfo> 85 LLVM_ABI Expected<DILineInfo> 88 LLVM_ABI Expected<DIInliningInfo> 91 LLVM_ABI Expected<DIInliningInfo> 94 LLVM_ABI Expected<DIInliningInfo> 98 LLVM_ABI Expected<DIGlobal> 100 LLVM_ABI Expected<DIGlobal> 102 LLVM_ABI Expected<DIGlobal> 105 LLVM_ABI Expected<std::vector<DILocal>> [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | ASTImporter.h | 267 virtual Expected<Decl *> ImportImpl(Decl *From); 316 llvm::Expected<ExprWithCleanups::CleanupObject> 323 llvm::Expected<const Type *> Import(const Type *FromT); 329 llvm::Expected<QualType> Import(QualType FromT); 336 llvm::Expected<TypeSourceInfo *> Import(TypeSourceInfo *FromTSI); 343 llvm::Expected<Attr *> Import(const Attr *FromAttr); 350 llvm::Expected<Decl *> Import(Decl *FromD); 351 llvm::Expected<const Decl *> Import(const Decl *FromD) { in Import() 355 llvm::Expected<InheritedConstructor> 386 llvm::Expected<DeclContext *> ImportContext(DeclContext *FromDC); [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Bitstream/Reader/ |
| H A D | BitstreamReader.cpp | 40 Expected<uint32_t> MaybeVBR = ReadVBR(bitc::CodeLenWidth); in EnterSubBlock() 52 Expected<word_t> MaybeNum = Read(bitc::BlockSizeWidth); in EnterSubBlock() 71 static Expected<uint64_t> readAbbreviatedField(BitstreamCursor &Cursor, in readAbbreviatedField() 87 if (Expected<unsigned> Res = Cursor.Read(6)) in readAbbreviatedField() 96 Expected<unsigned> BitstreamCursor::skipRecord(unsigned AbbrevID) { in skipRecord() 99 Expected<uint32_t> MaybeCode = ReadVBR(6); in skipRecord() 103 Expected<uint32_t> MaybeVBR = ReadVBR(6); in skipRecord() 108 if (Expected<uint64_t> Res = ReadVBR64(6)) in skipRecord() 115 Expected<const BitCodeAbbrev *> MaybeAbbv = getAbbrev(AbbrevID); in skipRecord() 130 Expected<uint64_t> MaybeCode = readAbbreviatedField(*this, CodeOp); in skipRecord() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Remarks/ |
| H A D | YAMLRemarkParser.cpp | 62 static Expected<bool> parseMagic(StringRef &Buf) { in parseMagic() 72 static Expected<uint64_t> parseVersion(StringRef &Buf) { in parseVersion() 88 static Expected<uint64_t> parseStrTabSize(StringRef &Buf) { in parseStrTabSize() 98 Expected<std::unique_ptr<YAMLRemarkParser>> remarks::createYAMLParserFromMeta( in createYAMLParserFromMeta() 101 Expected<bool> isMeta = parseMagic(Buf); in createYAMLParserFromMeta() 107 Expected<uint64_t> Version = parseVersion(Buf); in createYAMLParserFromMeta() 111 Expected<uint64_t> StrTabSize = parseStrTabSize(Buf); in createYAMLParserFromMeta() 163 Expected<std::unique_ptr<Remark>> 183 Expected<Type> T = parseType(*Root); in parseRemark() 191 Expected<StringRef> MaybeKey = parseKey(RemarkField); in parseRemark() [all …]
|
| H A D | YAMLRemarkParser.h | 64 Expected<std::unique_ptr<Remark>> next() override; 78 Expected<std::unique_ptr<Remark>> parseRemark(yaml::Document &Remark); 80 Expected<Type> parseType(yaml::MappingNode &Node); 82 Expected<StringRef> parseKey(yaml::KeyValueNode &Node); 84 virtual Expected<StringRef> parseStr(yaml::KeyValueNode &Node); 86 Expected<unsigned> parseUnsigned(yaml::KeyValueNode &Node); 88 Expected<RemarkLocation> parseDebugLoc(yaml::KeyValueNode &Node); 90 Expected<Argument> parseArg(yaml::Node &Node); 93 Expected<std::unique_ptr<YAMLRemarkParser>> createYAMLParserFromMeta(
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Bitcode/ |
| H A D | BitcodeReader.h | 68 ErrorOr<T> expectedToErrorOrAndEmitErrors(LLVMContext &Ctx, Expected<T> Val) { in expectedToErrorOrAndEmitErrors() 123 LLVM_ABI friend Expected<BitcodeFileContents> 126 Expected<std::unique_ptr<Module>> 144 LLVM_ABI Expected<std::unique_ptr<Module>> 149 LLVM_ABI Expected<std::unique_ptr<Module>> 154 LLVM_ABI Expected<BitcodeLTOInfo> getLTOInfo(); 157 LLVM_ABI Expected<std::unique_ptr<ModuleSummaryIndex>> getSummary(); 176 LLVM_ABI Expected<BitcodeFileContents> 180 LLVM_ABI Expected<std::vector<BitcodeModule>> 187 LLVM_ABI Expected<std::unique_ptr<Module>> [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/orc/tests/unit/ |
| H A D | error_test.cpp | 175 Expected<int> A = 7; in TEST() 184 Expected<int &> B = A; in TEST() 195 EXPECT_DEATH({ Expected<int> A = 7; }, in TEST() 206 Expected<int> A = 7; in TEST() 219 Expected<int> A = 7; in TEST() 228 Expected<int> A = make_error<CustomError>(42); in TEST() 239 Expected<int> A = make_error<CustomError>(42); in TEST() 249 EXPECT_DEATH({ Expected<int> A = make_error<CustomError>(42); }, in TEST() 259 Expected<B *> A1(Expected<D *>(nullptr)); in TEST() 262 A1 = Expected<D *>(nullptr); in TEST() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Object/ |
| H A D | Archive.cpp | 55 Expected<StringRef> NameOrErr = ArMemHeader->getName(Size); in createMemberHeaderParseError() 117 Expected<StringRef> NameOrErr = getName(Size); in ArchiveMemberHeader() 154 Expected<StringRef> ArchiveMemberHeader::getRawName() const { in getRawName() 179 Expected<uint64_t> 197 Expected<uint64_t> 215 Expected<StringRef> BigArchiveMemberHeader::getRawName() const { in getRawName() 216 Expected<uint64_t> NameLenOrErr = getArchiveMemberDecField( in getRawName() 244 Expected<StringRef> ArchiveMemberHeader::getName(uint64_t Size) const { in getName() 258 Expected<StringRef> NameOrErr = getRawName(); in getName() 352 Expected<StringRef> BigArchiveMemberHeader::getName(uint64_t Size) const { in getName() [all …]
|
| H A D | IRObjectFile.cpp | 49 Expected<uint32_t> IRObjectFile::getSymbolFlags(DataRefImpl Symb) const { in getSymbolFlags() 72 Expected<MemoryBufferRef> 76 Expected<StringRef> Contents = Sec.getContents(); in findBitcodeInObject() 88 Expected<MemoryBufferRef> 98 Expected<std::unique_ptr<ObjectFile>> ObjFile = in findBitcodeInMemBuffer() 109 Expected<std::unique_ptr<IRObjectFile>> 111 Expected<MemoryBufferRef> BCOrErr = findBitcodeInMemBuffer(Object); in create() 115 Expected<std::vector<BitcodeModule>> BMsOrErr = in create() 122 Expected<std::unique_ptr<Module>> MOrErr = in create() 135 Expected<IRSymtabFile> object::readIRSymtab(MemoryBufferRef MBRef) { in readIRSymtab() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | MSVCErrorWorkarounds.h | 43 template <typename T> class MSVCPExpected : public Expected<T> { 46 : Expected<T>(make_error<StringError>("", inconvertibleErrorCode())) { in MSVCPExpected() 50 MSVCPExpected(MSVCPExpected &&Other) : Expected<T>(std::move(Other)) {} in MSVCPExpected() 53 Expected<T>::operator=(std::move(Other)); 57 MSVCPExpected(Error Err) : Expected<T>(std::move(Err)) {} in MSVCPExpected() 63 : Expected<T>(std::move(Val)) {} 67 Expected<OtherT> &&Other, 69 : Expected<T>(std::move(Other)) {} 73 Expected<OtherT> &&Other, 75 : Expected<T>(std::move(Other)) {}
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
| H A D | MemoryAccess.h | 34 unique_function<void(Expected<ReadUIntsResult<T>>)>; 38 unique_function<void(Expected<ReadPointersResult>)>; 42 unique_function<void(Expected<ReadBuffersResult>)>; 46 unique_function<void(Expected<ReadStringsResult>)>; 136 Expected<ReadUIntsResult<uint8_t>> readUInt8s(ArrayRef<ExecutorAddr> Rs) { in readUInt8s() 138 readUInt8sAsync(Rs, [&](Expected<ReadUIntsResult<uint8_t>> Result) { in readUInt8s() 144 Expected<ReadUIntsResult<uint16_t>> readUInt16s(ArrayRef<ExecutorAddr> Rs) { in readUInt16s() 146 readUInt16sAsync(Rs, [&](Expected<ReadUIntsResult<uint16_t>> Result) { in readUInt16s() 152 Expected<ReadUIntsResult<uint32_t>> readUInt32s(ArrayRef<ExecutorAddr> Rs) { in readUInt32s() 154 readUInt32sAsync(Rs, [&](Expected<ReadUIntsResult<uint32_t>> Result) { in readUInt32s() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Interpreter/ |
| H A D | Interpreter.h | 59 llvm::Expected<std::unique_ptr<CompilerInstance>> CreateCpp(); 67 llvm::Expected<std::unique_ptr<CompilerInstance>> CreateCudaHost(); 68 llvm::Expected<std::unique_ptr<CompilerInstance>> CreateCudaDevice(); 71 static llvm::Expected<std::unique_ptr<CompilerInstance>> 74 llvm::Expected<std::unique_ptr<CompilerInstance>> createCuda(bool device); 139 static llvm::Expected<std::unique_ptr<Interpreter>> 142 static llvm::Expected<std::unique_ptr<Interpreter>> 145 static llvm::Expected<std::unique_ptr<llvm::orc::LLJITBuilder>> 152 llvm::Expected<llvm::orc::LLJIT &> getExecutionEngine(); 154 llvm::Expected<PartialTranslationUnit &> Parse(llvm::StringRef Code); [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/ |
| H A D | PythonDataObjects.h | 318 llvm::Expected<PythonObject> CallMethod(const char *name, 330 llvm::Expected<PythonObject> Call(const T &... t) const { 339 llvm::Expected<PythonObject> GetAttribute(const llvm::Twine &name) const { 348 llvm::Expected<PythonObject> GetType() const { 357 llvm::Expected<bool> IsTrue() { 366 llvm::Expected<long long> AsLongLong() const; 368 llvm::Expected<unsigned long long> AsUnsignedLongLong() const; 371 llvm::Expected<unsigned long long> AsModuloUnsignedLongLong() const; 373 llvm::Expected<bool> IsInstance(const PythonObject &cls) { 388 template <typename T> llvm::Expected<T> As(llvm::Expected<PythonObject> &&obj) { [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Debuginfod/ |
| H A D | Debuginfod.h | 58 Expected<std::string> getDefaultDebuginfodCacheDirectory(); 71 Expected<std::string> getCachedOrDownloadSource(object::BuildIDRef ID, 79 Expected<std::string> getCachedOrDownloadExecutable(object::BuildIDRef ID); 86 Expected<std::string> getCachedOrDownloadDebuginfo(object::BuildIDRef ID); 90 Expected<std::string> getCachedOrDownloadArtifact(StringRef UniqueKey, 96 Expected<std::string> getCachedOrDownloadArtifact( 131 Expected<std::optional<std::string>> getDebugBinaryPath(object::BuildIDRef); 132 Expected<std::optional<std::string>> getBinaryPath(object::BuildIDRef); 136 Expected<bool> updateIfStale(); 151 Expected<std::string> findDebugBinaryPath(object::BuildIDRef); [all …]
|
| /freebsd/contrib/googletest/googletest/test/ |
| H A D | googletest-output-test-golden-lin.txt | 6 Expected: true 10 Expected equality of these values: 42 Expected equality of these values: 50 Expected equality of these values: 60 Expected equality of these values: 76 Expected equality of these values: 86 Expected equality of these values: 98 Expected: true 108 Expected: (3) >= (a[i]), actual: 3 vs 9 114 Expected: (3) >= (a[i]), actual: 3 vs 6 [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/ |
| H A D | PDBFile.h | 69 Expected<ArrayRef<uint8_t>> getBlockData(uint32_t BlockIndex, 88 Expected<std::unique_ptr<msf::MappedBlockStream>> 90 Expected<std::unique_ptr<msf::MappedBlockStream>> 99 Expected<InfoStream &> getPDBInfoStream(); 100 Expected<DbiStream &> getPDBDbiStream(); 101 Expected<GlobalsStream &> getPDBGlobalsStream(); 102 Expected<TpiStream &> getPDBTpiStream(); 103 Expected<TpiStream &> getPDBIpiStream(); 104 Expected<PublicsStream &> getPDBPublicsStream(); 105 Expected<SymbolStream &> getPDBSymbolStream(); [all …]
|
| /freebsd/contrib/googletest/googlemock/test/ |
| H A D | gmock_output_test_golden.txt | 24 Expected to be called twice, but has only 1 WillOnce(). 39 Expected arg #0: is equal to 0 41 Expected: to be called once 53 Expected arg #0: is equal to 0 55 Expected: to be called once 64 Expected: to be called once 72 Expected: to be called once 100 Expected: the expectation is active 102 Expected: to be called once 105 Expected arg #0: is equal to 0 [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/LowLevel/ |
| H A D | DWARFUnwindTable.cpp | 80 Expected<UnwindTable::RowContainer> 98 llvm::Expected<uint64_t> NewAddress = Inst.getOperandAsUnsigned(CFIP, 0); in parseRows() 124 llvm::Expected<uint64_t> Offset = Inst.getOperandAsUnsigned(CFIP, 0); in parseRows() 141 llvm::Expected<uint64_t> RegNum = Inst.getOperandAsUnsigned(CFIP, 0); in parseRows() 155 llvm::Expected<uint64_t> RegNum = Inst.getOperandAsUnsigned(CFIP, 0); in parseRows() 158 llvm::Expected<int64_t> Offset = Inst.getOperandAsSigned(CFIP, 1); in parseRows() 261 llvm::Expected<uint64_t> RegNum = Inst.getOperandAsUnsigned(CFIP, 0); in parseRows() 270 llvm::Expected<uint64_t> RegNum = Inst.getOperandAsUnsigned(CFIP, 0); in parseRows() 282 llvm::Expected<uint64_t> RegNum = Inst.getOperandAsUnsigned(CFIP, 0); in parseRows() 285 llvm::Expected<uint64_t> NewRegNum = Inst.getOperandAsUnsigned(CFIP, 1); in parseRows() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/ |
| H A D | TraceIntelPTBundleSaver.cpp | 70 static Expected<FileSpec> 97 static llvm::Expected<std::vector<JSONThread>> 137 static Expected<std::optional<FileSpec>> 156 Expected<std::vector<uint8_t>> compact_context_switch_trace = in WriteContextSwitchTrace() 177 static Expected<FileSpec> WriteIntelPTTrace(TraceIntelPT &trace_ipt, in WriteIntelPTTrace() 193 static llvm::Expected<std::optional<std::vector<JSONCpu>>> 206 Expected<std::optional<FileSpec>> context_switch_trace_path = in BuildCpusSection() 215 if (Expected<FileSpec> ipt_trace_path = in BuildCpusSection() 246 static llvm::Expected<std::vector<JSONModule>> 303 static llvm::Expected<JSONProcess> [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/orc/ |
| H A D | error.h | 39 template <typename T> friend class Expected; variable 185 template <typename T> class ORC_RT_NODISCARD Expected { 187 template <class OtherT> friend class Expected; variable 202 Expected(Error Err) : HasError(true), Unchecked(true) { in Expected() function 209 Expected(OtherT &&Val, 216 Expected(Expected &&Other) { moveConstruct(std::move(Other)); } in Expected() function 221 Expected( 222 Expected<OtherT> &&Other, 230 explicit Expected( 231 Expected<OtherT> &&Other, [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/FileCheck/ |
| H A D | FileCheckImpl.h | 92 LLVM_ABI_FOR_TEST Expected<std::string> getWildcardRegex() const; 97 LLVM_ABI_FOR_TEST Expected<std::string> getMatchingString(APInt Value) const; 120 LLVM_ABI_FOR_TEST Expected<APInt> exprAdd(const APInt &Lhs, const APInt &Rhs, 122 LLVM_ABI_FOR_TEST Expected<APInt> exprSub(const APInt &Lhs, const APInt &Rhs, 124 LLVM_ABI_FOR_TEST Expected<APInt> exprMul(const APInt &Lhs, const APInt &Rhs, 126 LLVM_ABI_FOR_TEST Expected<APInt> exprDiv(const APInt &Lhs, const APInt &Rhs, 128 Expected<APInt> exprMax(const APInt &Lhs, const APInt &Rhs, bool &Overflow); 129 Expected<APInt> exprMin(const APInt &Lhs, const APInt &Rhs, bool &Overflow); 145 virtual Expected<APInt> eval() const = 0; 151 virtual Expected<ExpressionFormat> [all …]
|