Home
last modified time | relevance | path

Searched refs:value_or (Results 1 – 25 of 231) sorted by relevance

12345678910

/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DXCOFFEmitter.cpp531 W.write<uint16_t>(AuxSym.TypeChkSectNum.value_or(0)); in writeAuxSymbol()
543 W.write<uint32_t>(AuxSym.StabInfoIndex.value_or(0)); in writeAuxSymbol()
544 W.write<uint16_t>(AuxSym.StabSectNum.value_or(0)); in writeAuxSymbol()
551 W.write<uint32_t>(AuxSym.SizeOfFunction.value_or(0)); in writeAuxSymbol()
559 W.write<uint64_t>(AuxSym.PtrToLineNum.value_or(0)); in writeAuxSymbol()
567 W.write<uint32_t>(AuxSym.PtrToLineNum.value_or(0)); in writeAuxSymbol()
593 W.write<uint32_t>(AuxSym.LineNum.value_or(0)); in writeAuxSymbol()
598 W.write<uint16_t>(AuxSym.LineNumHi.value_or(0)); in writeAuxSymbol()
599 W.write<uint16_t>(AuxSym.LineNumLo.value_or(0)); in writeAuxSymbol()
620 W.write<uint32_t>(AuxSym.SectionLength.value_or(0)); in writeAuxSymbol()
[all …]
H A DELFEmitter.cpp417 if (!SecHdrTable || !SecHdrTable->NoHeaders.value_or(false)) in ELFState()
775 if (S->NoHeaders.value_or(false)) in initSectionHeaders()
962 Symbol.st_value = Sym.Value.value_or(yaml::Hex64(0)); in toELFSymbols()
964 Symbol.st_size = Sym.Size.value_or(yaml::Hex64(0)); in toELFSymbols()
1435 E.NumBlocks.value_or(E.BBEntries ? E.BBEntries->size() : 0); in writeSectionContent()
1586 VerDef.vd_version = E.Version.value_or(1); in writeSectionContent()
1587 VerDef.vd_flags = E.Flags.value_or(0); in writeSectionContent()
1588 VerDef.vd_ndx = E.VersionNdx.value_or(0); in writeSectionContent()
1589 VerDef.vd_hash = E.Hash.value_or(0); in writeSectionContent()
1898 if (SectionHeaders.NoHeaders.value_or(false)) in buildSectionIndex()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Basic/Targets/
H A DOSTargets.cpp75 Str[2] = '0' + std::min(OsVersion.getMinor().value_or(0), 9U); in getDarwinDefines()
80 Str[1] = '0' + (OsVersion.getMinor().value_or(0) / 10); in getDarwinDefines()
81 Str[2] = '0' + (OsVersion.getMinor().value_or(0) % 10); in getDarwinDefines()
82 Str[3] = '0' + (OsVersion.getSubminor().value_or(0) / 10); in getDarwinDefines()
83 Str[4] = '0' + (OsVersion.getSubminor().value_or(0) % 10); in getDarwinDefines()
89 Str[2] = '0' + (OsVersion.getMinor().value_or(0) / 10); in getDarwinDefines()
90 Str[3] = '0' + (OsVersion.getMinor().value_or(0) % 10); in getDarwinDefines()
91 Str[4] = '0' + (OsVersion.getSubminor().value_or(0) / 10); in getDarwinDefines()
92 Str[5] = '0' + (OsVersion.getSubminor().value_or(0) % 10); in getDarwinDefines()
104 assert(OsVersion.getMinor().value_or(0) < 100 && in getDarwinDefines()
[all …]
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/Instruction/RISCV/
H A DEmulateInstructionRISCV.cpp236 .value_or(false); in Load()
248 .value_or(false); in Store()
279 .value_or(false); in AtomicSwap()
296 .value_or(false); in AtomicADD()
313 .value_or(false); in AtomicBitOperate()
330 .value_or(false); in AtomicCmp()
673 .value_or(false); in operator ()()
681 .value_or(false); in operator ()()
691 .value_or(false); in operator ()()
703 .value_or(false); in operator ()()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DVectorBuilder.cpp71 std::min<size_t>(MaskPosOpt.value_or(NumInstParams), in createVectorInstruction()
72 VLenPosOpt.value_or(NumInstParams)) >= NumInstParams; in createVectorInstruction()
83 if ((MaskPosOpt && MaskPosOpt.value_or(NumVPParams) == VPParamIdx) || in createVectorInstruction()
84 (VLenPosOpt && VLenPosOpt.value_or(NumVPParams) == VPParamIdx)) in createVectorInstruction()
H A DLLVMRemarkStreamer.cpp99 if (RemarksWithHotness || RemarksHotnessThreshold.value_or(1)) in setupLLVMOptimizationRemarks()
146 if (RemarksWithHotness || RemarksHotnessThreshold.value_or(1)) in setupLLVMOptimizationRemarks()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Testing/Annotations/
H A DAnnotations.cpp38 {Code.size(), size_t(-1), Name.value_or(""), Payload.value_or("")}); in Annotations()
39 Points[Name.value_or("")].push_back(All.size() - 1); in Annotations()
46 {Code.size(), size_t(-1), Name.value_or(""), Payload.value_or("")}); in Annotations()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFFormValue.h242 return toUnsigned(V).value_or(Default); in toUnsigned()
265 return toReference(V).value_or(Default); in toReference()
287 return toSigned(V).value_or(Default); in toSigned()
317 return toAddress(V).value_or(Default); in toAddress()
340 return toSectionOffset(V).value_or(Default); in toSectionOffset()
/freebsd-14.2/contrib/llvm-project/lldb/source/Core/
H A DAddressResolverFileLine.cpp61 m_src_location_spec.GetLine().value_or(0)); in SearchCallback()
75 m_src_location_spec.GetLine().value_or(0)); in GetDescription()
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/ObjectFile/JSON/
H A DObjectFileJSON.cpp83 Type type = header.type.value_or(eTypeDebugInfo); in CreateInstance()
186 section.type.value_or(eSectionTypeCode), 0, section.size.value_or(0), 0, in CreateSections()
187 section.size.value_or(0), /*log2align*/ 0, /*flags*/ 0); in CreateSections()
/freebsd-14.2/contrib/llvm-project/lldb/source/Utility/
H A DProcessInfo.cpp154 resolver.GetUserName(GetUserID()).value_or("")); in Dump()
158 resolver.GetGroupName(GetGroupID()).value_or("")); in Dump()
162 resolver.GetUserName(GetEffectiveUserID()).value_or("")); in Dump()
166 resolver.GetGroupName(GetEffectiveGroupID()).value_or("")); in Dump()
/freebsd-14.2/contrib/llvm-project/lldb/source/Breakpoint/
H A DBreakpointResolverFileLine.cpp106 m_location_spec.GetLine().value_or(0)); in SerializeToStructuredData()
109 m_location_spec.GetColumn().value_or(LLDB_INVALID_COLUMN_NUMBER)); in SerializeToStructuredData()
289 const uint32_t line = m_location_spec.GetLine().value_or(0); in SearchCallback()
324 m_location_spec.GetLine().value_or(0)); in GetDescription()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/APINotes/
H A DTypes.h85 SwiftPrivate = Private.value_or(0); in setSwiftPrivate()
242 SwiftImportAsNonGeneric = Value.value_or(false); in setSwiftImportAsNonGeneric()
251 SwiftObjCMembers = Value.value_or(false); in setSwiftObjCMembers()
369 SwiftImportAsAccessors = Value.value_or(false); in setSwiftImportAsAccessors()
433 NoEscape = Value.value_or(false); in setNoEscape()
672 IsFlagEnum = Value.value_or(false); in setFlagEnum()
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDIERef.h35 : m_die_offset(die_offset), m_file_index(file_index.value_or(0)), in DIERef()
54 return lldb::user_id_t(file_index().value_or(0)) << k_die_offset_bit_size | in get_id()
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/Instruction/ARM/
H A DEmulationStateARM.cpp269 uint64_t reg_value = value_sp->GetValueAs<uint64_t>().value_or(0); in LoadRegistersStateFromDictionary()
298 start_address = value_sp->GetValueAs<uint64_t>().value_or(0); in LoadStateFromDictionary()
312 uint64_t value = value_sp->GetValueAs<uint64_t>().value_or(0); in LoadStateFromDictionary()
333 value_sp->GetValueAs<uint64_t>().value_or(0)); in LoadStateFromDictionary()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DDescriptor.cpp233 MDSize(MD.value_or(0)), AllocSize(align(Size + MDSize)), IsConst(IsConst), in Descriptor()
245 MDSize(MD.value_or(0)), in Descriptor()
269 Size(ElemSize * NumElems), MDSize(MD.value_or(0)), in Descriptor()
292 Size(ElemSize), MDSize(MD.value_or(0)), AllocSize(Size + MDSize), in Descriptor()
300 : Source(D), ElemSize(1), Size(ElemSize), MDSize(MD.value_or(0)), in Descriptor()
/freebsd-14.2/contrib/llvm-project/lldb/source/Expression/
H A DMaterializer.cpp81 m_persistent_variable_sp->GetByteSize().value_or(0), 8, in MakeAllocation()
120 m_persistent_variable_sp->GetByteSize().value_or(0), in MakeAllocation()
249 m_persistent_variable_sp->GetByteSize().value_or(0)); in Dematerialize()
295 .value_or(0)); in Dematerialize()
304 m_persistent_variable_sp->GetByteSize().value_or(0), in Dematerialize()
386 DataBufferHeap data(m_persistent_variable_sp->GetByteSize().value_or(0), in DumpToLog()
390 m_persistent_variable_sp->GetByteSize().value_or(0), in DumpToLog()
541 GetName().AsCString(), GetByteSize(scope).value_or(0), in Materialize()
635 valobj_sp->GetByteSize().value_or(0), extract_error); in Dematerialize()
1077 const size_t pvar_byte_size = ret->GetByteSize().value_or(0); in Dematerialize()
/freebsd-14.2/contrib/llvm-project/lldb/source/Interpreter/
H A DOptionValueArgs.cpp19 args.AppendArgument(value->GetValueAs<llvm::StringRef>().value_or("")); in GetArgs()
/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DCVSymbolVisitor.cpp93 uint32_t ParentRecurseDepth = Filter.ParentRecursiveDepth.value_or(0); in visitSymbolStreamFiltered()
94 uint32_t ChildrenRecurseDepth = Filter.ChildRecursiveDepth.value_or(0); in visitSymbolStreamFiltered()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DProfileSummaryInfo.cpp193 return HotCountThreshold.value_or(UINT64_MAX); in getOrCompHotCountThreshold()
197 return ColdCountThreshold.value_or(0); in getOrCompColdCountThreshold()
/freebsd-14.2/contrib/llvm-project/lld/MachO/
H A DConfig.h50 (version.getMinor().value_or(0) << 010) | in encodeVersion()
51 version.getSubminor().value_or(0)); in encodeVersion()
/freebsd-14.2/contrib/llvm-project/lldb/source/API/
H A DSBPlatform.cpp431 std::string s = platform_sp->GetOSBuildString().value_or(""); in GetOSBuild()
446 std::string s = platform_sp->GetOSKernelDescription().value_or(""); in GetOSDescription()
480 return version.getMinor().value_or(UINT32_MAX); in GetOSMinorVersion()
489 return version.getSubminor().value_or(UINT32_MAX); in GetOSUpdateVersion()
/freebsd-14.2/contrib/llvm-project/lldb/source/Symbol/
H A DSymbol.cpp117 const uint64_t size = symbol.size.value_or(0); in FromJSON()
130 return Symbol(symbol.id.value_or(0), Mangled(symbol.name), in FromJSON()
131 symbol.type.value_or(eSymbolTypeAny), external, is_debug, in FromJSON()
143 return Symbol(symbol.id.value_or(0), Mangled(symbol.name), in FromJSON()
144 symbol.type.value_or(eSymbolTypeAny), external, is_debug, in FromJSON()
/freebsd-14.2/contrib/llvm-project/llvm/lib/MC/
H A DMCStreamer.cpp1402 LinkedTargetVersion.getMinor().value_or(0), in emitVersionForTarget()
1403 LinkedTargetVersion.getSubminor().value_or(0), SDKVersion); in emitVersionForTarget()
1408 LinkedTargetVersion.getMinor().value_or(0), in emitVersionForTarget()
1409 LinkedTargetVersion.getSubminor().value_or(0), SDKVersion); in emitVersionForTarget()
1420 TVLinkedTargetVersion.getMinor().value_or(0), in emitVersionForTarget()
1421 TVLinkedTargetVersion.getSubminor().value_or(0), in emitVersionForTarget()
1431 LinkedTargetVersion.getMinor().value_or(0), in emitVersionForTarget()
1432 LinkedTargetVersion.getSubminor().value_or(0), SDKVersion); in emitVersionForTarget()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopDistribute.cpp773 if (Pred.getComplexity() > (IsForced.value_or(false) in processLoop()
779 if (!IsForced.value_or(false) && hasDisableAllTransformsHint(L)) in processLoop()
854 bool Forced = isForced().value_or(false); in fail()
987 if (LDL.isForced().value_or(EnableLoopDistribute)) in runImpl()

12345678910