|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
gen/lib/Target/AArch64/AArch64GenGICombiner.inc 59 if (!First.hasValue() || !Last.hasValue())
59 if (!First.hasValue() || !Last.hasValue())
68 if (!I.hasValue())
include/llvm/ADT/Optional.h 258 explicit operator bool() const { return hasValue(); }
267 return hasValue() ? getValue() : std::forward<U>(value);
276 return hasValue() ? std::move(getValue()) : std::forward<U>(value);
285 return X.hasValue() == Y.hasValue();
285 return X.hasValue() == Y.hasValue();
297 return X.hasValue() < Y.hasValue();
297 return X.hasValue() < Y.hasValue();
340 return X.hasValue();
include/llvm/Analysis/LazyCallGraph.h 343 bool isPopulated() const { return Edges.hasValue(); }
include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h 600 if (Renderer.hasValue())
include/llvm/CodeGen/SelectionDAGAddressAnalysis.h 52 bool hasValidOffset() const { return Offset.hasValue(); }
include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h 248 if (!MaxLength.hasValue())
include/llvm/DebugInfo/CodeView/SymbolRecord.h 252 if (Current.hasValue())
include/llvm/DebugInfo/CodeView/TypeCollection.h 37 while (Next.hasValue()) {
include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h 37 this->ByteSize.HasByteSize = ByteSize.hasValue();
include/llvm/DebugInfo/GSYM/FunctionInfo.h 103 return OptLineTable.hasValue() || Inline.hasValue();
103 return OptLineTable.hasValue() || Inline.hasValue();
176 if (LHS.Inline.hasValue() != RHS.Inline.hasValue())
176 if (LHS.Inline.hasValue() != RHS.Inline.hasValue())
177 return RHS.Inline.hasValue();
include/llvm/ExecutionEngine/Orc/Speculation.h 95 if (!ImplSymbol.hasValue())
include/llvm/IR/DebugInfoMetadata.h 2462 bool isFragment() const { return getFragmentInfo().hasValue(); }
include/llvm/IR/IRBuilder.h 1105 if (Rounding.hasValue())
1110 assert(RoundingStr.hasValue() && "Garbage strict rounding mode!");
1121 if (Except.hasValue())
1126 assert(ExceptStr.hasValue() && "Garbage strict exception behavior!");
include/llvm/MC/MCDwarf.h 260 trackMD5Usage(Checksum.hasValue());
261 HasSource = Source.hasValue();
333 Header.trackMD5Usage(Checksum.hasValue());
334 Header.HasSource = Source.hasValue();
include/llvm/MC/MCSymbolWasm.h 74 if (ImportModule.hasValue()) {
82 if (ImportName.hasValue()) {
96 assert(GlobalType.hasValue());
102 assert(EventType.hasValue());
include/llvm/MC/MCSymbolXCOFF.h 27 assert((!StorageClass.hasValue() || StorageClass.getValue() == SC) &&
33 assert(StorageClass.hasValue() &&
include/llvm/Support/Alignment.h 142 Align valueOrOne() const { return hasValue() ? getValue() : Align(); }
153 ALIGN_CHECK_ISSET(Lhs);
209 ALIGN_CHECK_ISSET(A);
285 ALIGN_CHECK_ISSET(Lhs);
290 ALIGN_CHECK_ISSET(Lhs);
295 ALIGN_CHECK_ISSET(Lhs);
300 ALIGN_CHECK_ISSET(Lhs);
327 ALIGN_CHECK_ISSET(Rhs);
331 ALIGN_CHECK_ISSET(Rhs);
335 ALIGN_CHECK_ISSET(Rhs);
339 ALIGN_CHECK_ISSET(Rhs);
343 ALIGN_CHECK_ISSET(Rhs);
347 ALIGN_CHECK_ISSET(Rhs);
353 ALIGN_CHECK_ISSET(Lhs);
357 ALIGN_CHECK_ISSET(Lhs);
361 ALIGN_CHECK_ISSET(Lhs);
365 ALIGN_CHECK_ISSET(Lhs);
369 ALIGN_CHECK_ISSET(Lhs);
373 ALIGN_CHECK_ISSET(Lhs);
include/llvm/Support/BinaryStreamRef.h 52 if (Length.hasValue())
71 if (Result.Length.hasValue())
91 if (!Result.Length.hasValue())
include/llvm/Support/Error.h 1230 if (Line.hasValue())
include/llvm/Support/FormatProviders.h 316 if (!Precision.hasValue())
include/llvm/Support/YAMLTraits.h 905 assert(DefaultValue.hasValue() == false &&
909 const bool sameAsDefault = outputting() && !Val.hasValue();
910 if (!outputting() && !Val.hasValue())
912 if (Val.hasValue() &&
include/llvm/Transforms/IPO/Attributor.h 648 if (!SccSizeOpt.hasValue())
lib/Analysis/CFLAndersAliasAnalysis.cpp 834 assert(Iter->second.hasValue());
841 if (FunInfo.hasValue())
lib/Analysis/CFLGraph.h 399 if (IRelation.hasValue()) {
409 if (IAttr.hasValue())
lib/Analysis/CFLSteensAliasAnalysis.cpp 167 if (RetInfo.hasValue())
176 if (ParamInfo.hasValue())
252 assert(Iter->second.hasValue());
259 if (FunInfo.hasValue())
295 assert(MaybeInfo.hasValue());
299 if (!MaybeA.hasValue())
303 if (!MaybeB.hasValue())
lib/Analysis/LazyValueInfo.cpp 1046 if (!LHSRes.hasValue())
1071 if (!LHSRes.hasValue() || !RHSRes.hasValue())
1071 if (!LHSRes.hasValue() || !RHSRes.hasValue())
lib/Analysis/LoopCacheAnalysis.cpp 541 if ((HasTemporalReuse.hasValue() && *HasTemporalReuse) ||
542 (HasSpacialReuse.hasValue() && *HasSpacialReuse)) {
lib/Analysis/MemoryBuiltins.cpp 237 return getAllocationData(V, AnyAlloc, TLI, LookThroughBitCast).hasValue();
242 return getAllocationData(V, AnyAlloc, GetTLI, LookThroughBitCast).hasValue();
259 return getAllocationData(V, MallocLike, TLI, LookThroughBitCast).hasValue();
265 .hasValue();
272 return getAllocationData(V, CallocLike, TLI, LookThroughBitCast).hasValue();
280 LookThroughBitCast).hasValue();
287 return getAllocationData(V, AllocLike, TLI, LookThroughBitCast).hasValue();
294 return getAllocationData(V, ReallocLike, TLI, LookThroughBitCast).hasValue();
300 return getAllocationDataForFunction(F, ReallocLike, TLI).hasValue();
307 return getAllocationData(V, OpNewLike, TLI, LookThroughBitCast).hasValue();
314 return getAllocationData(V, StrDupLike, TLI, LookThroughBitCast).hasValue();
lib/Analysis/MemorySSA.cpp 710 if (N.hasValue() != O.N.hasValue())
710 if (N.hasValue() != O.N.hasValue())
712 return !N.hasValue() || *N == *O.N;
lib/Analysis/ScalarEvolution.cpp 4354 if (Res.hasValue()) {
4362 if (Res.hasValue())
5702 if (MDRange.hasValue())
5903 if (CastOp.hasValue())
7648 (!PostShiftOpCode.hasValue() || *PostShiftOpCode == OpCodeOut);
8496 if (X.hasValue() && Y.hasValue()) {
8496 if (X.hasValue() && Y.hasValue()) {
8502 if (!X.hasValue() && !Y.hasValue())
8502 if (!X.hasValue() && !Y.hasValue())
8504 return X.hasValue() ? *X : *Y;
8519 if (!X.hasValue())
8546 if (!T.hasValue())
8552 if (!X.hasValue())
8588 if (!T.hasValue())
8633 if (!SO.hasValue() || !UO.hasValue())
8633 if (!SO.hasValue() || !UO.hasValue())
lib/Analysis/StratifiedSets.h 343 bool has(const T &Elem) const { return get(Elem).hasValue(); }
346 if (get(Main).hasValue())
563 if (!MaybeVal.hasValue())
lib/Analysis/ValueTracking.cpp 961 if (!ShifterOperandIsNonZero.hasValue())
lib/Bitcode/Reader/BitcodeAnalyzer.cpp 736 bool DumpRecords = O.hasValue();
899 CheckHash.hasValue()) {
lib/CodeGen/ModuloSchedule.cpp 871 if (!StaticallyGreater.hasValue()) {
1429 if (IllegalPhiDefault.hasValue()) {
1451 if (InitReg.hasValue()) {
1467 if (!InitReg.hasValue())
1484 if (InitReg.hasValue())
1487 .addReg(InitReg.hasValue() ? *InitReg : undef(RC))
1491 if (!InitReg.hasValue())
1778 if (!StaticallyGreater.hasValue()) {
lib/CodeGen/SelectionDAG/DAGCombiner.cpp 6576 if (!IsBigEndian.hasValue())
6733 if (!IsBigEndian.hasValue())
20563 MUC0.NumBytes.hasValue() && MUC1.NumBytes.hasValue() &&
20563 MUC0.NumBytes.hasValue() && MUC1.NumBytes.hasValue() &&
lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp 97 if (NumBytes0.hasValue() && NumBytes1.hasValue() &&
97 if (NumBytes0.hasValue() && NumBytes1.hasValue() &&
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp 309 if (AssertOp.hasValue())
363 const bool IsABIRegCopy = CallConv.hasValue();
665 const bool IsABIRegCopy = CallConv.hasValue();
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h 846 return CallConv.hasValue();
lib/CodeGen/SelectionDAG/StatepointLowering.cpp 176 if (!SpillSlot.hasValue())
179 if (MergedResult.hasValue() && *MergedResult != *SpillSlot)
241 if (!Index.hasValue())
492 if (Opt.hasValue()) {
499 if (Opt.hasValue()) {
lib/DebugInfo/CodeView/CodeViewRecordIO.cpp 71 if (ThisMin.hasValue())
72 Min = (Min.hasValue()) ? std::min(*Min, *ThisMin) : *ThisMin;
74 assert(Min.hasValue() && "Every field must have a maximum length!");
lib/DebugInfo/CodeView/ContinuationRecordBuilder.cpp 52 assert(!Kind.hasValue());
79 assert(Kind.hasValue());
161 if (RefersTo.hasValue()) {
lib/DebugInfo/CodeView/SymbolSerializer.cpp 27 assert(!CurrentSymbol.hasValue() && "Already in a symbol mapping!");
42 assert(CurrentSymbol.hasValue() && "Not in a symbol mapping!");
lib/DebugInfo/CodeView/TypeRecordMapping.cpp 188 assert(!TypeKind.hasValue() && "Already in a type mapping!");
189 assert(!MemberKind.hasValue() && "Already in a member mapping!");
220 assert(TypeKind.hasValue() && "Not in a type mapping!");
221 assert(!MemberKind.hasValue() && "Still in a member mapping!");
230 assert(TypeKind.hasValue() && "Not in a type mapping!");
231 assert(!MemberKind.hasValue() && "Already in a member mapping!");
256 assert(TypeKind.hasValue() && "Not in a type mapping!");
257 assert(MemberKind.hasValue() && "Not in a member mapping!");
lib/DebugInfo/CodeView/TypeStreamMerger.cpp 487 if (PCHSignature.hasValue())
lib/DebugInfo/DWARF/DWARFContext.cpp 115 return R.hasValue();
lib/DebugInfo/DWARF/DWARFDebugFrame.cpp 454 if (AugmentationLength.hasValue()) {
lib/DebugInfo/DWARF/DWARFFormValue.cpp 577 if (DbgStr.hasValue()) {
lib/DebugInfo/GSYM/FunctionInfo.cpp 108 if (OptLineTable.hasValue()) {
126 if (Inline.hasValue()) {
lib/DebugInfo/PDB/Native/DbiStreamBuilder.cpp 78 if (!NewFpoData.hasValue())
292 if (NewFpoData.hasValue()) {
313 if (!S.hasValue())
432 if (Stream.hasValue())
439 if (!Stream.hasValue())
lib/DebugInfo/PDB/Native/NativeTypeEnum.cpp 141 if (Modifiers.hasValue())
lib/DebugInfo/PDB/Native/NativeTypeUDT.cpp 47 if (Modifiers.hasValue())
lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp 353 H->Signature = Sig.hasValue() ? *Sig : time(nullptr);
lib/ExecutionEngine/Orc/Speculation.cpp 91 if (IRNames.hasValue()) {
lib/IR/Attributes.cpp 61 assert((!NumElemsArg.hasValue() ||
452 if (NumElems.hasValue()) {
lib/IR/ConstantFold.cpp 550 !cast<GEPOperator>(CE)->getInRangeIndex().hasValue() &&
lib/IR/DebugInfoMetadata.cpp 1118 unsigned DropUntilStackValue = FI.hasValue() ? 3 : 0;
lib/IR/Verifier.cpp 4907 Assert(FPI.getExceptionBehavior().hasValue(),
4911 Assert(FPI.getRoundingMode().hasValue(),
5098 bool HasSource = F.getSource().hasValue();
lib/LTO/LTO.cpp 594 if (EnableSplitLTOUnit.hasValue()) {
lib/MC/MCDwarf.cpp 571 trackMD5Usage(Checksum.hasValue());
634 trackMD5Usage(Checksum.hasValue());
lib/MC/MCObjectStreamer.cpp 631 if (!MaybeKind.hasValue())
lib/MC/MCParser/WasmAsmParser.cpp 128 if (!Kind.hasValue())
lib/MC/MCSchedule.cpp 101 if (Throughput.hasValue())
145 if (Throughput.hasValue())
lib/ObjectYAML/COFFEmitter.cpp 49 bool isPE() const { return Obj.OptionalHeader.hasValue(); }
248 if (S.DebugH.hasValue() && S.SectionData.binary_size() == 0)
461 if (!DD.hasValue()) {
lib/ObjectYAML/ELFYAML.cpp 1001 (!Section.ShOffset.hasValue() && !Section.ShSize.hasValue()));
1001 (!Section.ShOffset.hasValue() && !Section.ShSize.hasValue()));
lib/Remarks/RemarkParser.cpp 122 bool hasError() const { return Err.hasValue(); }
lib/Remarks/YAMLRemarkSerializer.cpp 61 assert(Serializer->StrTab.hasValue() &&
86 assert(Serializer->StrTab.hasValue() &&
141 assert(Serializer->StrTab.hasValue() &&
lib/Support/FormatVariadic.cpp 133 if (RI.hasValue())
lib/Support/Process.cpp 41 if (!OptPath.hasValue())
lib/Support/VirtualFileSystem.cpp 1964 if (IsCaseSensitive.hasValue())
1967 if (UseExternalNames.hasValue())
1971 if (IsOverlayRelative.hasValue()) {
lib/Support/raw_ostream.cpp 411 if (FB.FirstByteOffset.hasValue()) {
431 if (FB.FirstByteOffset.hasValue()) {
lib/Target/AArch64/AArch64InstructionSelector.cpp 3154 unsigned Opc = OpcTable[Is32Bit][ImmFns.hasValue()];
3178 unsigned Opc = OpcTable[Is32Bit][ImmFns.hasValue()];
3208 bool IsImmForm = ValAndVReg.hasValue() &&
4427 if (selectAddrModeUnscaled(Root, Size).hasValue())
lib/Target/AArch64/AArch64TargetMachine.cpp 227 if (!RM.hasValue() || *RM == Reloc::DynamicNoPIC)
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp 2182 return parseVectorKind(Suffix, VectorKind).hasValue();
lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp 1969 if (!Offset.hasValue())
2071 Register SOffset = FI.hasValue() ? Info->getStackPtrOffsetReg()
2078 if (FI.hasValue())
lib/Target/AMDGPU/SIFrameLowering.cpp 719 if (!Reg.FI.hasValue())
878 if (!Reg.FI.hasValue())
lib/Target/ARC/ARCTargetMachine.cpp 24 if (!RM.hasValue())
lib/Target/ARM/ARMTargetMachine.cpp 190 if (!RM.hasValue())
lib/Target/AVR/AVRTargetMachine.cpp 40 return RM.hasValue() ? *RM : Reloc::Static;
lib/Target/BPF/BPFTargetMachine.cpp 51 if (!RM.hasValue())
lib/Target/Hexagon/HexagonFrameLowering.cpp 874 if (At.hasValue())
lib/Target/Hexagon/HexagonTargetMachine.cpp 178 if (!RM.hasValue())
lib/Target/Lanai/LanaiTargetMachine.cpp 51 if (!RM.hasValue())
lib/Target/MSP430/MSP430TargetMachine.cpp 30 if (!RM.hasValue())
lib/Target/Mips/MipsTargetMachine.cpp 100 if (!RM.hasValue() || JIT)
lib/Target/Mips/MipsTargetStreamer.h 182 assert(ABI.hasValue() && "ABI hasn't been set!");
lib/Target/NVPTX/NVPTXISelLowering.cpp 1872 if (ProxyRegTruncates[i].hasValue()) {
lib/Target/PowerPC/PPCTargetMachine.cpp 227 if (RM.hasValue())
lib/Target/RISCV/RISCVTargetMachine.cpp 52 if (!RM.hasValue())
lib/Target/Sparc/SparcTargetMachine.cpp 58 if (!RM.hasValue())
lib/Target/SystemZ/SystemZTargetMachine.cpp 97 if (!RM.hasValue() || *RM == Reloc::DynamicNoPIC)
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp 423 if (NEltArg.hasValue())
lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp 88 if (!RM.hasValue()) {
lib/Target/X86/X86TargetMachine.cpp 162 if (!RM.hasValue()) {
lib/Target/XCore/XCoreTargetMachine.cpp 29 if (!RM.hasValue())
lib/ToolDrivers/llvm-lib/LibDriver.cpp 83 if (!EnvOpt.hasValue())
lib/Transforms/IPO/Attributor.cpp 558 if (T.hasValue())
569 else if (T.hasValue())
636 if (T.hasValue())
647 else if (T.hasValue())
973 if (!UniqueRV.hasValue() || !UniqueRV.getValue())
1037 if (UniqueRV.hasValue() && UniqueRV != &RV &&
1044 if (!UniqueRV.hasValue() || !isa<UndefValue>(RV))
3342 if (!QueryingValueSimplified.hasValue())
3354 if (AccumulatedSimplifiedValue.hasValue())
3369 if (!SimplifiedAssociatedValue.hasValue() ||
3400 bool HasValueBefore = SimplifiedAssociatedValue.hasValue();
3414 return HasValueBefore == SimplifiedAssociatedValue.hasValue()
3430 bool HasValueBefore = SimplifiedAssociatedValue.hasValue();
3440 return HasValueBefore == SimplifiedAssociatedValue.hasValue()
3464 bool HasValueBefore = SimplifiedAssociatedValue.hasValue();
3486 return HasValueBefore == SimplifiedAssociatedValue.hasValue()
lib/Transforms/IPO/Inliner.cpp 656 if (!OIC.hasValue()) {
1053 if (!OIC.hasValue()) {
lib/Transforms/InstCombine/InstCombinePHI.cpp 577 if ((LoadAlignment.hasValue()) != (LI->getAlignment() != 0))
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp 1398 if (!MaybeSR.hasValue()) {
1416 Increasing ? SR.LowLimit.hasValue() : SR.HighLimit.hasValue();
1416 Increasing ? SR.LowLimit.hasValue() : SR.HighLimit.hasValue();
1418 Increasing ? SR.HighLimit.hasValue() : SR.LowLimit.hasValue();
1418 Increasing ? SR.HighLimit.hasValue() : SR.LowLimit.hasValue();
1697 if (!R1.hasValue())
1726 if (!R1.hasValue())
1824 if (!MaybeLoopStructure.hasValue()) {
1848 if (Result.hasValue()) {
1851 if (MaybeSafeIterRange.hasValue()) {
1861 if (!SafeIterRange.hasValue())
lib/Transforms/Scalar/InferAddressSpaces.cpp 665 if (!NewAS.hasValue())
lib/Transforms/Scalar/LoopDistribute.cpp 604 if (PartitionID.hasValue()) {
lib/Transforms/Scalar/LoopInstSimplify.cpp 205 MSSAU.hasValue() ? MSSAU.getPointer() : nullptr);
232 MSSAU.hasValue() ? MSSAU.getPointer() : nullptr))
lib/Transforms/Scalar/LoopRotation.cpp 48 MSSAU.hasValue() ? MSSAU.getPointer() : nullptr,
106 MSSAU.hasValue() ? MSSAU.getPointer() : nullptr, SQ,
lib/Transforms/Scalar/LoopSimplifyCFG.cpp 697 MSSAU.hasValue() ? MSSAU.getPointer() : nullptr,
734 *L, DT, LI, SE, MSSAU.hasValue() ? MSSAU.getPointer() : nullptr,
lib/Transforms/Scalar/LoopUnrollAndJamPass.cpp 369 if (NewInnerEpilogueLoopID.hasValue())
397 if (NewOuterEpilogueLoopID.hasValue())
404 if (NewInnerLoopID.hasValue())
413 if (NewOuterLoopID.hasValue()) {
lib/Transforms/Scalar/LoopUnrollPass.cpp 249 if (UserThreshold.hasValue()) {
253 if (UserCount.hasValue())
255 if (UserAllowPartial.hasValue())
257 if (UserRuntime.hasValue())
259 if (UserUpperBound.hasValue())
261 if (UserAllowPeeling.hasValue())
263 if (UserAllowProfileBasedPeeling.hasValue())
265 if (UserFullUnrollMaxCount.hasValue())
1146 if (RemainderLoopID.hasValue())
1154 if (NewLoopID.hasValue()) {
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp 291 if (!DeoptBundle.hasValue()) {
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp 2877 &AR.SE, MSSAU.hasValue() ? MSSAU.getPointer() : nullptr))
2964 MSSAU.hasValue() ? MSSAU.getPointer() : nullptr);
lib/Transforms/Utils/CodeExtractor.cpp 1519 if (Count.hasValue())
lib/Transforms/Utils/InlineFunction.cpp 1489 std::min(CallSiteCount.hasValue() ? CallSiteCount.getValue() : 0,
lib/Transforms/Utils/LoopUnrollRuntime.cpp 409 if (NewLoopID.hasValue()) {
lib/Transforms/Utils/LoopUtils.cpp 397 if (Count.hasValue())
418 if (Count.hasValue())
lib/Transforms/Vectorize/LoopVectorize.cpp 3082 if (VectorizedLoopID.hasValue()) {
7787 if (RemainderLoopID.hasValue()) {
lib/Transforms/Vectorize/SLPVectorizer.cpp 1484 if (result.hasValue()) {
2940 if (ShuffleKind.hasValue()) {
tools/clang/include/clang/AST/ASTContext.h 2338 if (SubTnullability.hasValue() == SuperTnullability.hasValue()) {
2338 if (SubTnullability.hasValue() == SuperTnullability.hasValue()) {
tools/clang/include/clang/AST/Type.h 5472 ID.AddBoolean(NumExpansions.hasValue());
tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h 178 return Value->getTypedMatcher(TypedMatcherOps<T>()).hasValue();
tools/clang/include/clang/Analysis/PathDiagnostic.h 509 if (IsPrunable.hasValue() && !override)
516 return IsPrunable.hasValue() ? IsPrunable.getValue() : false;
tools/clang/include/clang/Lex/Preprocessor.h 469 bool reachedEOFWhileSkipping() const { return SkipInfo.hasValue(); }
tools/clang/include/clang/Sema/Sema.h10825 operator bool() const { return ImmediateDiag.hasValue(); }
10830 if (Diag.ImmediateDiag.hasValue())
10832 else if (Diag.PartialDiagId.hasValue())
tools/clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h 412 assert(K.hasValue() && "User mode is invalid.");
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h 405 getState(), {getOriginExpr(), Index}, getLocationContext()).hasValue();
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h 57 return Val.hasValue() && Val.getValue();
62 return Val.hasValue() && !Val.getValue();
67 return Val.hasValue();
73 return !Val.hasValue();
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConstraintManager.h 131 if (!isSat.hasValue() || !isSat.getValue())
148 if (!isSat.hasValue() || isNotSat.getValue())
343 if (!res.hasValue())
tools/clang/lib/ARCMigrate/Transforms.cpp 27 if (!EnableCFBridgeFns.hasValue())
tools/clang/lib/AST/ExprCXX.cpp 186 CXXNewExprBits.IsArray = ArraySize.hasValue();
265 bool IsArray = ArraySize.hasValue();
1762 /*ValueDependent=*/!IsSatisfied.hasValue(),
tools/clang/lib/AST/Interp/ByteCodeExprGen.h 288 if (!Idx.hasValue()) {
297 if (!Idx.hasValue())
tools/clang/lib/ASTMatchers/ASTMatchFinder.cpp 316 const bool EnableCheckProfiling = Options.CheckProfiling.hasValue();
326 const bool EnableCheckProfiling = Options.CheckProfiling.hasValue();
549 const bool EnableCheckProfiling = Options.CheckProfiling.hasValue();
571 const bool EnableCheckProfiling = Options.CheckProfiling.hasValue();
tools/clang/lib/ASTMatchers/Dynamic/Parser.cpp 358 if (Result.hasValue()) {
360 if (Bound.hasValue()) {
674 if (!Result.hasValue()) {
tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp 681 if (Result.hasValue()) {
683 if (Bound.hasValue()) {
tools/clang/lib/Analysis/BodyFarm.cpp 669 if (Val.hasValue())
813 if (Val.hasValue())
tools/clang/lib/Analysis/PathDiagnostic.cpp 321 if (b.hasValue())
383 assert(b.hasValue());
tools/clang/lib/Analysis/ReachableCode.cpp 348 if (!TreatAllSuccessorsAsReachable.hasValue()) {
tools/clang/lib/Analysis/UninitializedValues.cpp 150 assert(idx.hasValue());
211 assert(idx.hasValue());
tools/clang/lib/CodeGen/BackendUtil.cpp 1047 if (PGOOpt.hasValue()) {
tools/clang/lib/CodeGen/CGExprScalar.cpp 169 return getUnwidenedIntegerType(Ctx, E).hasValue();
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp 2144 if (I->getSecond().SecondaryGlobalRecord.hasValue()) {
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp 63 if (!CapturedRegion.hasValue())
tools/clang/lib/CodeGen/CodeGenFunction.h 1351 if (!Count.hasValue())
tools/clang/lib/CodeGen/CodeGenPGO.cpp 1053 assert(CondCount.hasValue() && "missing expected loop condition count");
tools/clang/lib/CodeGen/CoverageMappingGen.cpp 65 bool hasStartLoc() const { return LocStart.hasValue(); }
74 bool hasEndLoc() const { return LocEnd.hasValue(); }
630 if (!DeferredRegion.hasValue() &&
tools/clang/lib/DirectoryWatcher/DirectoryScanner.cpp 34 if (!status.hasValue())
tools/clang/lib/Driver/ToolChains/AVR.cpp 65 if (!FamilyName.hasValue()) {
73 } else if (!AVRLibcRoot.hasValue()) {
tools/clang/lib/Driver/ToolChains/Arch/RISCV.cpp 367 if (MArch.hasValue() && !getArchFeatures(D, *MArch, Features, Args))
tools/clang/lib/Driver/ToolChains/Gnu.cpp 1868 if (BiarchSibling.hasValue()) {
tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp 728 if (!UpperU.hasValue() && !UpperL.hasValue())
728 if (!UpperU.hasValue() && !UpperL.hasValue())
730 else if (UpperU.hasValue() && !UpperL.hasValue())
730 else if (UpperU.hasValue() && !UpperL.hasValue())
732 else if (UpperL.hasValue() && !UpperU.hasValue())
732 else if (UpperL.hasValue() && !UpperU.hasValue())
tools/clang/lib/Frontend/CompilerInvocation.cpp 547 if (RM.hasValue())
tools/clang/lib/Frontend/InitPreprocessor.cpp 667 if (tuple.getMinor().hasValue())
671 if (tuple.getSubminor().hasValue())
tools/clang/lib/Lex/MacroInfo.cpp 185 !isPublic.hasValue() || isPublic.getValue());
193 if (!isPublic.hasValue())
198 !isPublic.hasValue() || isPublic.getValue());
tools/clang/lib/Lex/PPDirectives.cpp 1822 assert(!File.hasValue() && "expected missing file");
tools/clang/lib/Lex/PPMacroExpansion.cpp 1226 return File.hasValue();
1320 if (Result.hasValue())
1334 if (Result.hasValue()) {
1350 if (Result.hasValue())
tools/clang/lib/Lex/PreprocessingRecord.cpp 116 if (IsInFile.hasValue())
tools/clang/lib/Lex/TokenLexer.cpp 298 if (!CalledWithVariadicArguments.hasValue()) {
tools/clang/lib/Parse/ParseOpenMP.cpp 1046 if (DeclVarData.hasValue())
1144 if (DevTypeData.hasValue()) {
tools/clang/lib/Sema/SemaCUDA.cpp 323 if (!InferredTarget.hasValue()) {
367 if (!InferredTarget.hasValue()) {
390 if (InferredTarget.hasValue()) {
tools/clang/lib/Sema/SemaChecking.cpp 1027 if (DiagSelect.hasValue()) {
tools/clang/lib/Sema/SemaDecl.cpp17668 if (DevTy.hasValue()) {
17685 if (DevTy.hasValue()) {
tools/clang/lib/Sema/SemaDeclAttr.cpp 2411 if (Version.getMinor().hasValue()) {
2412 if (Version.getSubminor().hasValue())
tools/clang/lib/Sema/SemaDeclObjC.cpp 4426 if (nullability.hasValue() == prevNullability.hasValue()) {
4426 if (nullability.hasValue() == prevNullability.hasValue()) {
tools/clang/lib/Sema/SemaExprCXX.cpp 2051 AllocType, ArraySize.hasValue(), PassAlignment, PlacementArgs,
tools/clang/lib/Sema/SemaOpenMP.cpp 639 return Top->OrderedRegion.hasValue();
645 if (Top->OrderedRegion.hasValue())
653 return Parent->OrderedRegion.hasValue();
660 if (Parent->OrderedRegion.hasValue())
5401 bool doesInitDependOnLC() const { return InitDependOnLC.hasValue(); }
5403 bool doesCondDependOnLC() const { return CondDependOnLC.hasValue(); }
5509 if (!TestIsLessOp.hasValue())
6215 bool LBNonRect = TestIsLessOp.getValue() ? InitDependOnLC.hasValue()
6216 : CondDependOnLC.hasValue();
6217 bool UBNonRect = TestIsLessOp.getValue() ? CondDependOnLC.hasValue()
6218 : InitDependOnLC.hasValue();
16226 if (DevTy.hasValue() && *DevTy != DT) {
16272 if (MapTy.hasValue())
16318 if (LangOpts.OpenMPIsDevice && Res.hasValue() && IdLoc.isValid() &&
16321 if (!LangOpts.OpenMPIsDevice && Res.hasValue() && IdLoc.isValid() &&
tools/clang/lib/Sema/SemaTemplateDeduction.cpp 828 bool hasFixedArity() { return FixedNumExpansions.hasValue(); }
tools/clang/lib/Serialization/ASTWriter.cpp 2137 << WritingModule->getFullModuleName() << U.Size.hasValue()
2508 if (SkipInfo.hasValue()) {
tools/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp 771 if (!errorNode.hasValue())
tools/clang/lib/StaticAnalyzer/Checkers/GTestChecker.cpp 263 if (!FieldLoc.hasValue())
tools/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp 1008 if (!Point.hasValue())
tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp 987 if (!KernelZeroFlagVal.hasValue()) {
1086 if (MaybeState.hasValue())
1097 if (MaybeState.hasValue())
2055 if (!CheckKind.hasValue())
2185 if (!CheckKind.hasValue())
2241 if (!CheckKind.hasValue())
2279 if (!CheckKind.hasValue())
2307 if (!CheckKind.hasValue())
2335 if (!CheckKind.hasValue())
2363 if (!CheckKind.hasValue())
2571 if (!CheckKind.hasValue())
3367 if (!CheckKind.hasValue())
3373 if (CheckKind.hasValue())
tools/clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp 216 if (!Val_O_CREAT.hasValue()) {
tools/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp 80 assert(K.hasValue() && "User mode is invalid.");
92 assert(K.hasValue() && "IPA Mode is invalid.");
112 assert(K.hasValue() && "Invalid c++ member function inlining mode.");
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp 1876 if (!getLengthOnSingleLine(SM, EdgeRange).hasValue())
2292 return getInterestingnessKind(V).hasValue();
2296 return getInterestingnessKind(sym).hasValue();
2300 return getInterestingnessKind(R).hasValue();
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp 235 return B->getInterestingnessKind(*V).hasValue();
2519 if (shouldPrune.hasValue())
2647 if (IsAssuming || !IntValue.hasValue()) {
2849 if (!isSat.hasValue())
tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp 1278 if (!Val.hasValue()) {
1426 E.getAs<CFGBaseDtor>().hasValue(), State,
tools/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp 938 if (MayInline.hasValue()) {
960 assert(!MayInline.hasValue() || MayInline.getValue());
tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp 2265 for (; Size.hasValue() ? i < Size.getValue() : true ; ++i, ++VI) {
2284 if (!Size.hasValue() || i < Size.getValue())
tools/clang/lib/Tooling/Core/Replacement.cpp 182 if (NewReplacement.hasValue())
184 if (ExistingReplacement.hasValue())
tools/clang/lib/Tooling/Syntax/Tokens.cpp 471 tryConsumeSpelledUntil(File, EndOffset + 1, SpelledIndex).hasValue();
tools/clang/tools/driver/driver.cpp 401 if (OptCL.hasValue()) {
410 if (Opt_CL_.hasValue()) {
tools/clang/tools/extra/clang-tidy/ClangTidyProfiling.cpp 58 assert(Storage.hasValue() && "We should have a filename.");
85 if (!Storage.hasValue())
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp 800 while (It != PP->macro_end() && !AreSafeFunctionsWanted.hasValue()) {
813 if (AreSafeFunctionsWanted.hasValue())
tools/clang/tools/extra/clangd/ClangdLSPServer.cpp 506 if (!CCOpts.BundleOverloads.hasValue())
621 if (Params.wantDiagnostics.hasValue())
tools/clang/tools/extra/clangd/ClangdServer.cpp 226 if (SpecFuzzyFind && SpecFuzzyFind->NewReq.hasValue()) {
tools/clang/tools/extra/clangd/CodeComplete.cpp 337 bool ShouldInsert = C.headerToInsertIfAllowed(Opts).hasValue();
356 return !I.Insertion.hasValue();
743 if (Result.Declaration && !Context.getCXXScopeSpecifier().hasValue() &&
1249 if (Opts.Index && SpecFuzzyFind && SpecFuzzyFind->CachedReq.hasValue()) {
tools/clang/tools/extra/clangd/FormattedString.cpp 153 if (LastWasBlock.hasValue() && (IsBlock || *LastWasBlock))
tools/clang/tools/extra/clangd/IncludeFixer.cpp 385 assert(LastUnresolvedName.hasValue());
tools/clang/tools/extra/clangd/Protocol.cpp 579 if (P.ID.hasValue())
755 if (H.range.hasValue())
850 assert((PI.labelOffsets.hasValue() || !PI.labelString.empty()) &&
tools/clang/tools/extra/clangd/SemanticSelection.cpp 52 if (!SR.hasValue() || SM.getFileID(SR->getBegin()) != SM.getMainFileID()) {
tools/clang/tools/extra/clangd/TUScheduler.cpp 574 [](const Request &R) { return R.UpdateType.hasValue(); });
tools/clang/tools/extra/clangd/index/YAMLSerialization.cpp 313 if (IO.mapTag("!Symbol", Variant.Symbol.hasValue())) {
317 } else if (IO.mapTag("!Refs", Variant.Refs.hasValue())) {
321 } else if (IO.mapTag("!Relations", Variant.Relation.hasValue())) {
tools/clang/tools/extra/clangd/refactor/tweaks/DumpAST.cpp 40 return Node.hasValue();
tools/clang/tools/extra/clangd/unittests/FSTests.cpp 32 EXPECT_TRUE(StatCache.lookup(testPath("x")).hasValue());
33 EXPECT_TRUE(StatCache.lookup(testPath("y")).hasValue());
35 EXPECT_FALSE(StatCache.lookup(testPath("main")).hasValue());
tools/clang/tools/extra/clangd/unittests/HeaderSourceSwitchTests.cpp 33 EXPECT_TRUE(PathResult.hasValue());
37 EXPECT_TRUE(PathResult.hasValue());
48 EXPECT_TRUE(PathResult.hasValue());
57 EXPECT_TRUE(PathResult.hasValue());
67 EXPECT_TRUE(PathResult.hasValue());
73 EXPECT_FALSE(PathResult.hasValue());
tools/clang/tools/extra/clangd/unittests/HeadersTests.cpp 263 EXPECT_TRUE(Edit.hasValue());
tools/clang/tools/extra/clangd/unittests/Matchers.h 171 if (!optional.hasValue())
tools/clang/tools/extra/clangd/unittests/SymbolCollectorTests.cpp 124 assert(AST.hasValue());
tools/clang/tools/extra/clangd/unittests/SyncAPI.cpp 29 assert(!Target.hasValue());
52 assert(!Target->hasValue());
tools/clang/tools/extra/clangd/unittests/TestTU.cpp 74 if (!AST.hasValue()) {
tools/clang/tools/extra/unittests/clang-doc/ClangDocTest.cpp 98 EXPECT_EQ(Expected->DefLoc.hasValue(), Actual->DefLoc.hasValue());
98 EXPECT_EQ(Expected->DefLoc.hasValue(), Actual->DefLoc.hasValue());
99 if (Expected->DefLoc.hasValue() && Actual->DefLoc.hasValue()) {
99 if (Expected->DefLoc.hasValue() && Actual->DefLoc.hasValue()) {
tools/clang/tools/extra/unittests/clang-tidy/ClangTidyOptionsTest.cpp 92 ASSERT_TRUE(Options.ExtraArgs.hasValue());
95 ASSERT_TRUE(Options.ExtraArgsBefore.hasValue());
tools/clang/tools/extra/unittests/clang-tidy/LLVMModuleTest.cpp 19 if (Errors.size() != (size_t)ExpectedWarning.hasValue())
41 if (Errors.size() != (size_t)ExpectedWarning.hasValue())
tools/clang/tools/extra/unittests/clang-tidy/NamespaceAliaserTest.cpp 37 if (Hint.hasValue())
tools/clang/tools/extra/unittests/clang-tidy/UsingInserterTest.cpp 40 if (Hint.hasValue())
tools/clang/tools/libclang/CIndex.cpp 533 if (!V.hasValue())
633 if (!V.hasValue())
667 if (!V.hasValue())
1058 if (!V.hasValue())
7821 if (Minor.hasValue())
7827 if (Subminor.hasValue())
tools/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp 140 EXPECT_TRUE(Result.hasValue());
244 &Error).hasValue());
tools/clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp 186 ResultIsReady.wait(L, [this]() { return result().hasValue(); });
250 EXPECT_TRUE(TestConsumer.result().hasValue());
251 if (TestConsumer.result().hasValue()) {
254 if ((TestConsumer.result().hasValue() && !TestConsumer.result().getValue()) ||
255 !TestConsumer.result().hasValue())
tools/clang/unittests/Lex/LexerTest.cpp 550 ASSERT_TRUE(T.hasValue());
tools/clang/unittests/Tooling/RefactoringTest.cpp 121 if (ExpectedExisting.hasValue())
124 if (RE.getExistingReplacement().hasValue())
130 if (ExpectedNew.hasValue())
132 if (RE.getNewReplacement().hasValue())
tools/clang/unittests/Tooling/SourceCodeTest.cpp 168 EXPECT_FALSE(getRangeForEdit(Range, *Context).hasValue());
tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp 346 if (!V.second.hasValue()) {
tools/dsymutil/DwarfLinker.cpp 687 assert(LowPc.hasValue() && "low_pc attribute is not an address.");
tools/lld/COFF/Driver.cpp 496 if (!envOpt.hasValue())
tools/lld/COFF/PDB.cpp 523 if (f->pchSignature.hasValue() &&
tools/lld/ELF/Driver.cpp 193 if (!buffer.hasValue())
tools/lld/ELF/LinkerScript.cpp 1141 if (!phdrsCommands[id].flags.hasValue())
tools/lld/ELF/SyntheticSections.cpp 722 if (!f.mipsGotIndex.hasValue()) {
1011 if (!f || !f->mipsGotIndex.hasValue() || *f->mipsGotIndex == 0)
tools/lld/lib/Core/File.cpp 23 if (!_lastError.hasValue())
tools/lld/wasm/Driver.cpp 220 if (!buffer.hasValue())
tools/lld/wasm/InputChunks.h 145 bool hasFunctionIndex() const { return functionIndex.hasValue(); }
151 bool hasTableIndex() const { return tableIndex.hasValue(); }
tools/lld/wasm/InputEvent.h 38 bool hasEventIndex() const { return eventIndex.hasValue(); }
tools/lld/wasm/InputGlobal.h 32 bool hasGlobalIndex() const { return globalIndex.hasValue(); }
tools/lld/wasm/Writer.cpp 379 bool inferFeatures = !config->features.hasValue();
tools/lldb/source/Breakpoint/BreakpointID.cpp 41 return BreakpointID::ParseCanonicalReference(str).hasValue();
tools/lldb/source/Breakpoint/BreakpointIDList.cpp 55 if (!bp_id.hasValue())
79 if (!bp_id.hasValue())
92 if (bp_id.hasValue())
167 if (bp_id.hasValue())
197 if (!start_bp.hasValue() ||
206 if (!end_bp.hasValue() ||
tools/lldb/source/Commands/CommandObjectFrame.cpp 152 if (m_options.address.hasValue()) {
153 if (m_options.reg.hasValue() || m_options.offset.hasValue()) {
153 if (m_options.reg.hasValue() || m_options.offset.hasValue()) {
160 } else if (m_options.reg.hasValue()) {
312 if (m_options.relative_frame_offset.hasValue()) {
tools/lldb/source/Core/DumpDataExtractor.cpp 114 if (apint.hasValue()) {
580 if (apint.hasValue()) {
tools/lldb/source/Core/ValueObject.cpp 1098 if (m_validation_result.hasValue())
tools/lldb/source/Core/ValueObjectChild.cpp 92 if (m_can_update_with_invalid_exe_ctx.hasValue())
tools/lldb/source/Interpreter/CommandInterpreter.cpp 181 exited = m_quit_exit_code.hasValue();
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp 796 if (m_user_expression_start_pos.hasValue())
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp 303 if (!m_Foundation_major.hasValue()) {
tools/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp 5829 if (!m_sdk_versions.hasValue()) {
5858 if (!m_sdk_versions.hasValue()) {
5895 if (!m_sdk_versions.hasValue())
tools/lldb/source/Plugins/Process/POSIX/NativeProcessELF.cpp 31 if (!m_shared_library_info_addr.hasValue()) {
tools/lldb/source/Plugins/Process/minidump/MinidumpParser.cpp 251 if (proc_status.hasValue()) {
tools/lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.cpp 342 size.hasValue(), /*contains_linker_annotations*/ false, /*flags*/ 0);
369 assert(record.hasValue());
505 assert(init_record.hasValue() && init_record->Size.hasValue() &&
505 assert(init_record.hasValue() && init_record->Size.hasValue() &&
524 if (!record.hasValue())
526 if (record->Size.hasValue())
548 assert(record.hasValue() &&
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp 1189 if (!parent.hasValue()) {
tools/lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp 63 vtable_idx.hasValue(), udt_cvt.kind() == LF_CLASS);
tools/lldb/source/Target/UnixSignals.cpp 310 if (should_suppress.hasValue() &&
314 if (should_stop.hasValue() && signal_stop != should_stop.getValue())
317 if (should_notify.hasValue() && signal_notify != should_notify.getValue())
tools/lldb/source/Utility/SelectHelper.cpp 87 if (!vold.hasValue())
126 if (!max_fd.hasValue()) {
164 if (max_read_fd.hasValue()) {
168 if (max_write_fd.hasValue()) {
172 if (max_error_fd.hasValue()) {
198 if (m_end_time.hasValue()) {
tools/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp 193 ASSERT_TRUE(result.hasValue());
218 ASSERT_TRUE(result.hasValue());
tools/lldb/unittests/Process/minidump/MinidumpParserTest.cpp 187 ASSERT_TRUE(proc_status.hasValue());
222 ASSERT_TRUE(pid.hasValue());
264 ASSERT_TRUE(range.hasValue()) << "There is no range containing this address";
325 EXPECT_FALSE(parser->FindMemoryRange(0x00).hasValue());
326 EXPECT_FALSE(parser->FindMemoryRange(0x2a).hasValue());
329 EXPECT_FALSE(parser->FindMemoryRange(0x40000 + 4096).hasValue());
332 EXPECT_FALSE(parser->FindMemoryRange(0x7ffe0000 + 4096).hasValue());
523 ASSERT_TRUE(pid.hasValue());
530 ASSERT_TRUE(pid.hasValue());
538 ASSERT_TRUE(pid.hasValue());
tools/lldb/unittests/tools/lldb-server/tests/TestClient.cpp 248 assert(m_process_info.hasValue());
tools/llvm-cov/SourceCoverageViewHTML.cpp 559 if (Color.hasValue())
564 if (Color.hasValue() && Segments.empty())
tools/llvm-dwarfdump/Statistics.cpp 247 HasLoc = FormValue.hasValue();
tools/llvm-elfabi/ELFObjHandler.cpp 130 if (Dyn.SONameOffset.hasValue() && *Dyn.SONameOffset >= Dyn.StrSize) {
187 if (Dyn.GnuHash.hasValue()) {
196 if (Dyn.ElfHash.hasValue()) {
328 if (DynEnt.SONameOffset.hasValue()) {
tools/llvm-exegesis/lib/Clustering.cpp 332 if (NumOpcodes.hasValue())
335 if (!NumOpcodes.hasValue())
tools/llvm-mca/Views/InstructionInfoView.cpp 71 if (RThroughput.hasValue()) {
tools/llvm-objcopy/ELF/ELFObjcopy.cpp 622 if (SR.NewFlags.hasValue())
tools/llvm-objdump/llvm-objdump.cpp 1997 if (!FaultMapSection.hasValue()) {
tools/llvm-pdbutil/BytesOutputStyle.cpp 90 if (opts::bytes::DumpBlockRange.hasValue()) {
107 if (opts::bytes::DumpByteRange.hasValue()) {
tools/llvm-pdbutil/InputFile.cpp 481 assert(SectionIter.hasValue());
507 assert(SectionIter.hasValue());
tools/llvm-pdbutil/LinePrinter.h 119 if (Scope.hasValue()) {
tools/llvm-pdbutil/llvm-pdbutil.cpp 763 if (YamlObj.Headers.hasValue())
778 if (YamlObj.StringTable.hasValue()) {
813 if (MI.Modi.hasValue()) {
tools/polly/lib/Exchange/JSONExporter.cpp 290 assert(Schedule.hasValue() &&
tools/polly/lib/Transform/ScheduleOptimizer.cpp 928 if (TTI->getCacheSize(L1DCache).hasValue())
934 if (TTI->getCacheSize(L2DCache).hasValue())
940 if (TTI->getCacheAssociativity(L1DCache).hasValue())
948 if (TTI->getCacheAssociativity(L2DCache).hasValue())
unittests/ADT/APIntTest.cpp 2694 if (S.hasValue())
2775 if (!Bit.hasValue())
unittests/ADT/OptionalTest.cpp 226 EXPECT_TRUE(A.hasValue());
232 EXPECT_TRUE(A.hasValue());
unittests/ADT/StatisticTest.cpp 94 EXPECT_EQ(S1.hasValue(), true);
95 EXPECT_EQ(S2.hasValue(), false);
110 EXPECT_EQ(S1.hasValue(), true);
111 EXPECT_EQ(S2.hasValue(), true);
137 EXPECT_EQ(S1.hasValue(), false);
138 EXPECT_EQ(S2.hasValue(), false);
155 EXPECT_EQ(S1.hasValue(), true);
156 EXPECT_EQ(S2.hasValue(), true);
unittests/Analysis/VectorFunctionABITest.cpp 18 EXPECT_FALSE(VFABI::tryDemangleForVFABI("").hasValue());
19 EXPECT_FALSE(VFABI::tryDemangleForVFABI("_ZGV").hasValue());
20 EXPECT_FALSE(VFABI::tryDemangleForVFABI("_ZGVn").hasValue());
21 EXPECT_FALSE(VFABI::tryDemangleForVFABI("_ZGVnN").hasValue());
22 EXPECT_FALSE(VFABI::tryDemangleForVFABI("_ZGVnN2").hasValue());
23 EXPECT_FALSE(VFABI::tryDemangleForVFABI("_ZGVnN2v").hasValue());
24 EXPECT_FALSE(VFABI::tryDemangleForVFABI("_ZGVnN2v_").hasValue());
26 EXPECT_FALSE(VFABI::tryDemangleForVFABI("_ZGVnN2_foo").hasValue());
28 EXPECT_FALSE(VFABI::tryDemangleForVFABI("_ZVnN2v_foo").hasValue());
30 EXPECT_FALSE(VFABI::tryDemangleForVFABI("_ZGVN2v_foo").hasValue());
32 EXPECT_FALSE(VFABI::tryDemangleForVFABI("_ZGVn2v_foo").hasValue());
34 EXPECT_FALSE(VFABI::tryDemangleForVFABI("_ZGVnNv_foo").hasValue());
36 EXPECT_FALSE(VFABI::tryDemangleForVFABI("_ZGVnN2v_").hasValue());
38 EXPECT_FALSE(VFABI::tryDemangleForVFABI("_ZGVnN2vfoo").hasValue());
40 EXPECT_FALSE(VFABI::tryDemangleForVFABI("_ZGVnN2v_foo()").hasValue());
42 EXPECT_FALSE(VFABI::tryDemangleForVFABI("_ZGVnN2v_foo(bar").hasValue());
48 EXPECT_TRUE(OptVFS.hasValue());
67 EXPECT_TRUE(A.hasValue());
68 EXPECT_TRUE(B.hasValue());
69 EXPECT_TRUE(C.hasValue());
99 if (OptInfo.hasValue()) {
unittests/BinaryFormat/DwarfTest.cpp 150 EXPECT_TRUE(RefSize.hasValue());
151 EXPECT_TRUE(AddrSize.hasValue());
158 EXPECT_TRUE(RefSize.hasValue());
159 EXPECT_TRUE(AddrSize.hasValue());
165 EXPECT_TRUE(RefSize.hasValue());
170 EXPECT_TRUE(RefSize.hasValue());
175 EXPECT_TRUE(RefSize.hasValue());
181 EXPECT_TRUE(RefSize.hasValue());
186 EXPECT_TRUE(RefSize.hasValue());
191 EXPECT_TRUE(RefSize.hasValue());
unittests/CodeGen/GlobalISel/ConstantFoldingTest.cpp 86 EXPECT_TRUE(FoldGAddInt.hasValue());
91 EXPECT_TRUE(FoldGAddMix.hasValue());
98 EXPECT_TRUE(FoldGAndInt.hasValue());
103 EXPECT_TRUE(FoldGAndMix.hasValue());
110 EXPECT_TRUE(FoldGAShrInt.hasValue());
115 EXPECT_TRUE(FoldGAShrMix.hasValue());
122 EXPECT_TRUE(FoldGLShrInt.hasValue());
127 EXPECT_TRUE(FoldGLShrMix.hasValue());
134 EXPECT_TRUE(FoldGMulInt.hasValue());
139 EXPECT_TRUE(FoldGMulMix.hasValue());
146 EXPECT_TRUE(FoldGOrInt.hasValue());
151 EXPECT_TRUE(FoldGOrMix.hasValue());
158 EXPECT_TRUE(FoldGShlInt.hasValue());
163 EXPECT_TRUE(FoldGShlMix.hasValue());
170 EXPECT_TRUE(FoldGSubInt.hasValue());
175 EXPECT_TRUE(FoldGSubMix.hasValue());
182 EXPECT_TRUE(FoldGXorInt.hasValue());
187 EXPECT_TRUE(FoldGXorMix.hasValue());
194 EXPECT_TRUE(FoldGUdivInt.hasValue());
199 EXPECT_TRUE(FoldGUdivMix.hasValue());
206 EXPECT_TRUE(FoldGSdivInt.hasValue());
211 EXPECT_TRUE(FoldGSdivMix.hasValue());
218 EXPECT_TRUE(FoldGUremInt.hasValue());
223 EXPECT_TRUE(FoldGUremMix.hasValue());
230 EXPECT_TRUE(FoldGSremInt.hasValue());
235 EXPECT_TRUE(FoldGSremMix.hasValue());
unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp 253 EXPECT_TRUE(BlockDataOpt.hasValue());
261 EXPECT_TRUE(BlockDataOpt.hasValue());
269 EXPECT_TRUE(BlockDataOpt.hasValue());
277 EXPECT_TRUE(BlockDataOpt.hasValue());
287 EXPECT_TRUE(BlockDataOpt.hasValue());
1564 EXPECT_FALSE(toString(FormValOpt1).hasValue());
1565 EXPECT_FALSE(toUnsigned(FormValOpt1).hasValue());
1566 EXPECT_FALSE(toReference(FormValOpt1).hasValue());
1567 EXPECT_FALSE(toSigned(FormValOpt1).hasValue());
1568 EXPECT_FALSE(toAddress(FormValOpt1).hasValue());
1569 EXPECT_FALSE(toSectionOffset(FormValOpt1).hasValue());
1570 EXPECT_FALSE(toBlock(FormValOpt1).hasValue());
1583 EXPECT_FALSE(toString(FormValOpt2).hasValue());
1584 EXPECT_FALSE(toUnsigned(FormValOpt2).hasValue());
1585 EXPECT_FALSE(toReference(FormValOpt2).hasValue());
1586 EXPECT_FALSE(toSigned(FormValOpt2).hasValue());
1587 EXPECT_TRUE(toAddress(FormValOpt2).hasValue());
1588 EXPECT_FALSE(toSectionOffset(FormValOpt2).hasValue());
1589 EXPECT_FALSE(toBlock(FormValOpt2).hasValue());
1602 EXPECT_FALSE(toString(FormValOpt3).hasValue());
1603 EXPECT_TRUE(toUnsigned(FormValOpt3).hasValue());
1604 EXPECT_FALSE(toReference(FormValOpt3).hasValue());
1605 EXPECT_TRUE(toSigned(FormValOpt3).hasValue());
1606 EXPECT_FALSE(toAddress(FormValOpt3).hasValue());
1607 EXPECT_FALSE(toSectionOffset(FormValOpt3).hasValue());
1608 EXPECT_FALSE(toBlock(FormValOpt3).hasValue());
1621 EXPECT_FALSE(toString(FormValOpt4).hasValue());
1622 EXPECT_FALSE(toUnsigned(FormValOpt4).hasValue());
1623 EXPECT_TRUE(toReference(FormValOpt4).hasValue());
1624 EXPECT_FALSE(toSigned(FormValOpt4).hasValue());
1625 EXPECT_FALSE(toAddress(FormValOpt4).hasValue());
1626 EXPECT_FALSE(toSectionOffset(FormValOpt4).hasValue());
1627 EXPECT_FALSE(toBlock(FormValOpt4).hasValue());
1640 EXPECT_FALSE(toString(FormValOpt5).hasValue());
1641 EXPECT_TRUE(toUnsigned(FormValOpt5).hasValue());
1642 EXPECT_FALSE(toReference(FormValOpt5).hasValue());
1643 EXPECT_TRUE(toSigned(FormValOpt5).hasValue());
1644 EXPECT_FALSE(toAddress(FormValOpt5).hasValue());
1645 EXPECT_FALSE(toSectionOffset(FormValOpt5).hasValue());
1646 EXPECT_FALSE(toBlock(FormValOpt5).hasValue());
1660 EXPECT_FALSE(toString(FormValOpt6).hasValue());
1661 EXPECT_FALSE(toUnsigned(FormValOpt6).hasValue());
1662 EXPECT_FALSE(toReference(FormValOpt6).hasValue());
1663 EXPECT_FALSE(toSigned(FormValOpt6).hasValue());
1664 EXPECT_FALSE(toAddress(FormValOpt6).hasValue());
1665 EXPECT_FALSE(toSectionOffset(FormValOpt6).hasValue());
1667 EXPECT_TRUE(BlockOpt.hasValue());
1721 EXPECT_FALSE(FuncDie.find(ArrayRef<dwarf::Attribute>()).hasValue());
1725 EXPECT_FALSE(FuncDie.find({DW_AT_low_pc, DW_AT_entry_pc}).hasValue());
1732 EXPECT_FALSE(FuncDie.find(Attrs).hasValue());
1738 EXPECT_TRUE(NameOpt.hasValue());
unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp 90 EXPECT_EQ(TooBig.getAsSignedConstant().hasValue(), false);
unittests/IR/InstructionsTest.cpp 562 EXPECT_TRUE(Clone->getOperandBundle("after").hasValue());
594 EXPECT_TRUE(Clone->getOperandBundle("after").hasValue());
unittests/Support/AlignmentTest.cpp 59 EXPECT_FALSE(MaybeAlign().hasValue());
71 EXPECT_TRUE(MaybeAlign(1).hasValue());
73 EXPECT_FALSE(MaybeAlign(0).hasValue());
75 EXPECT_FALSE(MaybeAlign().hasValue());
unittests/TextAPI/ELFYAMLTest.cpp 48 EXPECT_FALSE(Stub->SoName.hasValue());
73 EXPECT_TRUE(Stub->SoName.hasValue());
84 EXPECT_FALSE(SymBar.Warning.hasValue());
92 EXPECT_FALSE(SymBaz.Warning.hasValue());
100 EXPECT_TRUE(SymFoo.Warning.hasValue());
109 EXPECT_FALSE(SymNor.Warning.hasValue());
117 EXPECT_TRUE(SymNot.Warning.hasValue());
utils/TableGen/GlobalISelEmitter.cpp 448 : LabelID(LabelID_.hasValue() ? LabelID_.getValue() : ~0u),
452 assert((!LabelID_.hasValue() || LabelID != ~0u) &&
2686 Table << MatchTable::Opcode(SubOperand.hasValue() ? "GIR_ComplexSubOperandRenderer"
2691 if (SubOperand.hasValue())
3854 if (!MaybeInsnOperand.hasValue()) {
3934 if (SubOperand.hasValue()) {
4259 if (SrcRCDstRCPair.hasValue()) {