Home
last modified time | relevance | path

Searched refs:getValueOr (Results 1 – 25 of 34) sorted by relevance

12

/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/DWARF/
DDWARFFormValue.h162 return toString(V).getValueOr(Default); in toString()
184 return toUnsigned(V).getValueOr(Default); in toUnsigned()
206 return toReference(V).getValueOr(Default); in toReference()
227 return toSigned(V).getValueOr(Default); in toSigned()
248 return toAddress(V).getValueOr(Default); in toAddress()
270 return toSectionOffset(V).getValueOr(Default); in toSectionOffset()
/external/llvm/unittests/ADT/
DOptionalTest.cpp174 EXPECT_EQ(42, A.getValueOr(42)); in TEST_F()
177 EXPECT_EQ(5, A.getValueOr(42)); in TEST_F()
365 EXPECT_EQ(42, std::move(A).getValueOr(MoveOnly(42)).val); in TEST_F()
372 EXPECT_EQ(5, std::move(A).getValueOr(MoveOnly(42)).val); in TEST_F()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DOptionalTest.cpp175 EXPECT_EQ(42, A.getValueOr(42)); in TEST_F()
178 EXPECT_EQ(5, A.getValueOr(42)); in TEST_F()
366 EXPECT_EQ(42, std::move(A).getValueOr(MoveOnly(42)).val); in TEST_F()
373 EXPECT_EQ(5, std::move(A).getValueOr(MoveOnly(42)).val); in TEST_F()
/external/llvm/include/llvm/ADT/
DOptional.h132 LLVM_CONSTEXPR T getValueOr(U &&value) const LLVM_LVALUE_FUNCTION { in getValueOr() function
141 T getValueOr(U &&value) && { in getValueOr() function
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DNativeFormatting.cpp138 size_t W = std::min(kMaxWidth, Width.getValueOr(0u)); in write_hex()
166 size_t Prec = Precision.getValueOr(getDefaultPrecision(Style)); in write_double()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DNativeFormatting.cpp138 size_t W = std::min(kMaxWidth, Width.getValueOr(0u)); in write_hex()
166 size_t Prec = Precision.getValueOr(getDefaultPrecision(Style)); in write_double()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DMachineOptimizationRemarkEmitter.cpp57 if (OptDiag.getHotness().getValueOr(0) < in emit()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DOptional.h132 constexpr T getValueOr(U &&value) const LLVM_LVALUE_FUNCTION { in getValueOr() function
141 T getValueOr(U &&value) && { in getValueOr() function
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DOptimizationRemarkEmitter.cpp79 if (OptDiag.getHotness().getValueOr(0) < in emit()
DMemoryBuiltins.cpp211 Result.SndParam = Args.second.getValueOr(-1); in getAllocationSize()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DOptional.h190 constexpr T getValueOr(U &&value) const LLVM_LVALUE_FUNCTION {
199 T getValueOr(U &&value) && {
/external/llvm/lib/Transforms/Scalar/
DLoopDistribute.cpp697 if (Pred.getComplexity() > (IsForced.getValueOr(false) in processLoop()
755 bool Forced = isForced().getValueOr(false); in fail()
902 if (LDL.isForced().getValueOr(ProcessAllLoops)) in runOnFunction()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DLoopDistribute.cpp740 if (Pred.getComplexity() > (IsForced.getValueOr(false) in processLoop()
802 bool Forced = isForced().getValueOr(false); in fail()
935 if (LDL.isForced().getValueOr(EnableLoopDistribute)) in runImpl()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-rc/
DResourceFileWriter.cpp985 uint32_t CtlStyle = TypeInfo.Style | Ctl.Style.getValueOr(0); in writeSingleDialogControl()
986 uint32_t CtlExtStyle = Ctl.ExtStyle.getValueOr(0); in writeSingleDialogControl()
1000 } Prefix{ulittle32_t(Ctl.HelpID.getValueOr(0)), ulittle32_t(CtlExtStyle), in writeSingleDialogControl()
1056 uint32_t UsedStyle = ObjectData.Style.getValueOr(DefaultStyle); in writeDialogBody()
1258 RETURN_IF_ERROR(processString(Res->Bundle.Data[ID].getValueOr(StringRef()), in writeStringTableBundleBody()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-pdbutil/
DBytesOutputStyle.cpp93 uint32_t Max = R.Max.getValueOr(R.Min); in dump()
110 uint32_t Max = R.Max.getValueOr(File.getFileSize()); in dump()
Dllvm-pdbutil.cpp721 const auto &Info = YamlObj.PdbStream.getValueOr(DefaultInfoStream); in yamlToPdb()
731 const auto &Dbi = YamlObj.DbiStream.getValueOr(DefaultDbiStream); in yamlToPdb()
766 const auto &Tpi = YamlObj.TpiStream.getValueOr(DefaultTpiStream); in yamlToPdb()
774 const auto &Ipi = YamlObj.IpiStream.getValueOr(DefaultIpiStream); in yamlToPdb()
/external/clang/lib/Driver/
DMSVCToolChain.cpp678 MSVT = VersionTuple(MSVT.getMajor(), MSVT.getMinor().getValueOr(0), in ComputeEffectiveClangTriple()
679 MSVT.getSubminor().getValueOr(0)); in ComputeEffectiveClangTriple()
/external/llvm/lib/CodeGen/SelectionDAG/
DStatepointLowering.cpp841 SI.ID = SD.StatepointID.getValueOr(DefaultID); in LowerCallSiteWithDeoptBundleImpl()
842 SI.NumPatchBytes = SD.NumPatchBytes.getValueOr(0); in LowerCallSiteWithDeoptBundleImpl()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DStatepointLowering.cpp901 SI.ID = SD.StatepointID.getValueOr(DefaultID); in LowerCallSiteWithDeoptBundleImpl()
902 SI.NumPatchBytes = SD.NumPatchBytes.getValueOr(0); in LowerCallSiteWithDeoptBundleImpl()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/DebugInfo/DWARF/
DDWARFDebugInfoTest.cpp1427 EXPECT_EQ(SpecDieName, StringOpt.getValueOr(nullptr)); in TEST()
1432 EXPECT_EQ(SpecLinkageName, toString(LinkageNameOpt).getValueOr(nullptr)); in TEST()
1446 EXPECT_EQ(AbsDieName, StringOpt.getValueOr(nullptr)); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/dsymutil/
DDwarfLinker.cpp619 .getValueOr(UINT64_MAX) <= LowPc) in shouldKeepSubprogramDIE()
1513 .getValueOr(0); in cloneDIE()
1518 .getValueOr(0); in cloneDIE()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/
DMCDwarf.cpp372 LineStr->emitRef(MCOS, DwarfFile.Source.getValueOr(StringRef())); in emitOneV5FileEntry()
375 DwarfFile.Source.getValueOr(StringRef())); // Source and... in emitOneV5FileEntry()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DAliasAnalysis.h634 const MemoryLocation &Loc = OptLoc.getValueOr(MemoryLocation()); in getModRefInfo()
/external/llvm/lib/Analysis/
DMemoryBuiltins.cpp127 Result.SndParam = Args.second.getValueOr(-1); in getAllocationData()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DDebugInfoMetadata.cpp441 Source.getValueOr(nullptr)}; in getImpl()

12