| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | AnyTest.cpp | 26 EXPECT_FALSE(A.hasValue()); in TEST() 30 EXPECT_TRUE(B.hasValue()); in TEST() 34 EXPECT_TRUE(C.hasValue()); in TEST() 38 EXPECT_TRUE(D.hasValue()); in TEST() 43 EXPECT_TRUE(E.hasValue()); in TEST() 50 EXPECT_TRUE(B.hasValue()); in TEST() 51 EXPECT_TRUE(F.hasValue()); in TEST() 59 EXPECT_TRUE(G.hasValue()); in TEST() 65 EXPECT_TRUE(A.hasValue()); in TEST() 66 EXPECT_TRUE(F.hasValue()); in TEST() [all …]
|
| H A D | SmallVectorTest.cpp | 938 bool hasValue; member 939 MovedFrom() : hasValue(true) { in MovedFrom() 941 MovedFrom(MovedFrom&& m) : hasValue(m.hasValue) { in MovedFrom() 942 m.hasValue = false; in MovedFrom() 945 hasValue = m.hasValue; in operator =() 946 m.hasValue = false; in operator =() 956 EXPECT_TRUE(m.hasValue); in TEST()
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/Dynamic/ |
| H A D | VariantValueTest.cpp | 25 EXPECT_TRUE(Value.hasValue()); in TEST() 38 EXPECT_TRUE(Value.hasValue()); in TEST() 46 EXPECT_TRUE(Value.hasValue()); in TEST() 76 EXPECT_TRUE(Value.hasValue()); in TEST() 84 EXPECT_TRUE(Value.hasValue()); in TEST() 97 EXPECT_TRUE(Value.hasValue()); in TEST() 105 EXPECT_TRUE(Value.hasValue()); in TEST() 116 EXPECT_TRUE(Value.hasValue()); in TEST() 121 EXPECT_FALSE(Value.hasValue()); in TEST()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/OpenACC/IR/ |
| H A D | OpenACC.cpp | 246 if (async.hasValue() && failed(*async)) in parse() 257 if (numGangs.hasValue() && failed(*numGangs)) in parse() 263 if (numWorkers.hasValue() && failed(*numWorkers)) in parse() 269 if (vectorLength.hasValue() && failed(*vectorLength)) in parse() 365 {static_cast<int32_t>(async.hasValue() ? 1 : 0), in parse() 367 static_cast<int32_t>(numGangs.hasValue() ? 1 : 0), in parse() 368 static_cast<int32_t>(numWorkers.hasValue() ? 1 : 0), in parse() 534 if (gangNum.hasValue() && failed(*gangNum)) in parse() 540 if (gangStatic.hasValue() && failed(*gangStatic)) in parse() 554 if (worker.hasValue() && failed(*worker)) in parse() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | ProcessTest.cpp | 49 EXPECT_TRUE(val.hasValue()); in TEST() 56 EXPECT_FALSE(val.hasValue()); in TEST() 65 EXPECT_TRUE(val.hasValue()); in TEST() 72 EXPECT_TRUE(val.hasValue()); in TEST()
|
| H A D | Casting.cpp | 88 T3(const T1 *x) : hasValue(x != nullptr) {} in T3() 91 bool hasValue = false; member 98 T4() : hasValue(false) {} in T4() 99 T4(const T3 &x) : hasValue(true) {} in T4() 102 bool hasValue = false; member 107 static inline bool isPresent(const T3 &t) { return t.hasValue; } in isPresent() 245 EXPECT_TRUE(t3.hasValue); in TEST() 261 EXPECT_FALSE(t3.hasValue); in TEST() 266 EXPECT_FALSE(t4.hasValue); in TEST()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | FormatStringParsing.h | 85 bool hasValue() const { return Start != nullptr; } in hasValue() function 87 assert(hasValue()); in getValue()
|
| /llvm-project-15.0.7/bolt/unittests/Core/ |
| H A D | BinaryContext.cpp | 80 ASSERT_TRUE(BaseAddress.hasValue()); in TEST_P() 84 ASSERT_FALSE(BaseAddress.hasValue()); in TEST_P()
|
| /llvm-project-15.0.7/lldb/source/Utility/ |
| H A D | SelectHelper.cpp | 141 if (max_read_fd.hasValue()) { in Select() 145 if (max_write_fd.hasValue()) { in Select() 149 if (max_error_fd.hasValue()) { in Select()
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/ |
| H A D | SPIRVTypes.h | 290 uint32_t hasValue : 1; member 294 MemberDecorationInfo(uint32_t index, uint32_t hasValue, in MemberDecorationInfo() 296 : memberIndex(index), hasValue(hasValue), decoration(decoration), in MemberDecorationInfo()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | MemoryLocation.h | 156 bool hasValue() const { in hasValue() function 160 assert(hasValue() && "Getting value from an unknown LocationSize!"); in getValue() 171 bool isZero() const { return hasValue() && getValue() == 0; } in isZero()
|
| /llvm-project-15.0.7/mlir/test/mlir-tblgen/ |
| H A D | default-type-attr-print-parser.td | 33 // ATTR: if (parseResult.hasValue()) 60 // TYPE: if (parseResult.hasValue())
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ScalarEvolutionAliasAnalysis.cpp | 56 APInt ASizeInt(BitWidth, LocA.Size.hasValue() in alias() 59 APInt BSizeInt(BitWidth, LocB.Size.hasValue() in alias()
|
| H A D | BasicAliasAnalysis.cpp | 1102 if (!V1Size.hasValue() && !V2Size.hasValue()) { in aliasGEP() 1131 V2Size.hasValue() && DecompGEP1.Offset.sge(V2Size.getValue()) && in aliasGEP() 1138 V1Size.hasValue() && DecompGEP1.Offset.sle(-V1Size.getValue()) && in aliasGEP() 1189 if (!VLeftSize.hasValue()) in aliasGEP() 1197 if (VRightSize.hasValue() && Off.ule(INT32_MAX) && in aliasGEP() 1211 if (!V1Size.hasValue() || !V2Size.hasValue()) in aliasGEP() 1811 if (GEP.VarIndices.size() != 2 || !MaybeV1Size.hasValue() || in constantOffsetHeuristic() 1812 !MaybeV2Size.hasValue()) in constantOffsetHeuristic()
|
| /llvm-project-15.0.7/mlir/include/mlir/Pass/ |
| H A D | PassOptions.h | 97 bool hasValue() const { return optHasValue; } in hasValue() function 426 bool hasValue() const { return value.get(); } 430 assert(hasValue() && "invalid option value"); 443 if (!rhsOV.hasValue())
|
| /llvm-project-15.0.7/llvm/unittests/Analysis/ |
| H A D | TFUtilsTest.cpp | 63 EXPECT_TRUE(ER.hasValue()); in TEST() 78 EXPECT_TRUE(ER.hasValue()); in TEST() 103 EXPECT_FALSE(ER.hasValue()); in TEST()
|
| /llvm-project-15.0.7/libc/utils/LibcTableGenUtil/ |
| H A D | APIIndexer.cpp | 86 if (!StdHeader.hasValue() || Header == StdHeader) { in indexStandardSpecDef() 166 if (!StdHeader.hasValue() || in index()
|
| /llvm-project-15.0.7/clang/include/clang/ASTMatchers/Dynamic/ |
| H A D | VariantValue.h | 274 explicit operator bool() const { return hasValue(); } 275 bool hasValue() const { return Type != VT_Nothing; } in hasValue() function
|
| /llvm-project-15.0.7/mlir/lib/Dialect/DLTI/ |
| H A D | DLTI.cpp | 76 if (parsedType.hasValue() && failed(parsedType.getValue())) in parse() 78 if (!parsedType.hasValue()) { in parse() 80 if (!parsedString.hasValue() || failed(parsedString.getValue())) { in parse()
|
| /llvm-project-15.0.7/lldb/include/lldb/Core/ |
| H A D | RichManglingContext.h | 89 assert(parser.hasValue()); in get()
|
| /llvm-project-15.0.7/lldb/source/Plugins/Platform/MacOSX/objcxx/ |
| H A D | PlatformiOSSimulatorCoreSimulatorSupport.mm | 170 if (!m_model_identifier.hasValue()) { 176 if (m_model_identifier.hasValue()) 184 if (!m_os_version.hasValue()) { 193 if (m_os_version.hasValue()) 221 if (!m_dev_type.hasValue()) 229 if (!m_dev_runtime.hasValue())
|
| /llvm-project-15.0.7/lldb/source/Plugins/Platform/MacOSX/ |
| H A D | PlatformAppleSimulator.cpp | 107 if (m_device.hasValue() && m_device->operator bool()) { in GetStatus() 229 if (!m_core_simulator_framework_path.hasValue()) { in GetCoreSimulatorPath() 254 if (!m_device.hasValue()) { in GetSimulatorDevice() 262 if (m_device.hasValue()) in GetSimulatorDevice()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/PDL/IR/ |
| H A D | PDLTypes.cpp | 41 if (parseResult.hasValue()) in parsePDLType()
|
| /llvm-project-15.0.7/lldb/source/Plugins/Trace/intel-pt/ |
| H A D | ThreadDecoder.cpp | 42 if (!m_decoded_thread.hasValue()) { in Decode()
|
| /llvm-project-15.0.7/llvm/lib/Target/DirectX/ |
| H A D | DXILPointerType.cpp | 34 if (!TargetData.hasValue()) in get()
|