| /llvm-project/flang/unittests/Evaluate/ |
| H A D | logical.cpp | 13 TEST(!Value{}.IsTrue()); in testKind() 14 TEST(!Value{false}.IsTrue()); in testKind() 15 TEST(Value{true}.IsTrue()); in testKind() 16 TEST(Value{false}.NOT().IsTrue()); in testKind() 17 TEST(!Value{true}.NOT().IsTrue()); in testKind() 18 TEST(!Value{false}.AND(Value{false}).IsTrue()); in testKind() 19 TEST(!Value{false}.AND(Value{true}).IsTrue()); in testKind() 20 TEST(!Value{true}.AND(Value{false}).IsTrue()); in testKind() 21 TEST(Value{true}.AND(Value{true}).IsTrue()); in testKind() 22 TEST(!Value{false}.OR(Value{false}).IsTrue()); in testKind() [all …]
|
| /llvm-project/flang/include/flang/Evaluate/ |
| H A D | logical.h | 28 constexpr Logical(Logical<B, C> x) : word_{Represent(x.IsTrue())} {} in Logical() 34 word_ = Represent(x.IsTrue()); 49 return !IsTrue() && that.IsTrue(); 53 return !IsTrue(); 57 return IsTrue() == that.IsTrue(); 61 return IsTrue() != that.IsTrue(); 65 return IsTrue(); 69 return IsTrue() && !that.IsTrue(); 72 constexpr bool IsTrue() const { in IsTrue() function
|
| /llvm-project/flang/lib/Evaluate/ |
| H A D | fold-reduction.h | 70 if (x.IsTrue()) { in FoldDotProduct() 169 std::vector<Scalar<LogicalResult>>(n, scalarMask->IsTrue()); 213 if (mask.At(maskAt).IsTrue()) { in DoReduction() 227 if (mask.At(maskAt).IsTrue()) { in DoReduction() 267 if (folded->IsTrue()) {
|
| H A D | fold-integer.cpp | 328 if (mask_.At(at).IsTrue()) { in Test() 406 back = backConst->GetScalarValue().value().IsTrue(); in Test() 452 if ((!mask || mask->At(maskAt).IsTrue()) && in IsHit() 479 if ((!mask || mask->At(maskAt).IsTrue()) && in IsHit() 529 result = GetScalarConstantValue<LogicalResult>(folded).value().IsTrue(); in FoldLocation() 1114 str, other, back.IsTrue()) in FoldIntrinsicFunction() 1117 str, other, back.IsTrue()) in FoldIntrinsicFunction() 1119 str, other, back.IsTrue())); in FoldIntrinsicFunction()
|
| H A D | fold-logical.cpp | 981 return Expr<Ty>{Constant<Ty>{!value->IsTrue()}}; in FoldOperation() 999 bool xt{folded->first.IsTrue()}, yt{folded->second.IsTrue()}, result{};
|
| H A D | fold-implementation.h | 830 return predicate.IsTrue() ? ifTrue : ifFalse; in PACK() 851 if (mask->At(maskAt).IsTrue()) { in PACK() 860 if (mask->At(maskAt).IsTrue()) { in PACK() 879 if (mask->At(maskAt).IsTrue()) { in RESHAPE() 1066 if (mask->At(maskAt).IsTrue()) { in TRANSFER() 1081 if (mask->At(maskAt).IsTrue()) { in FoldMINorMAX() 1862 return Expr<TO>{value->IsTrue()}; in OperandsAreConstants()
|
| H A D | formatting.cpp | 85 } else if (value.IsTrue()) { in AsFortran()
|
| /llvm-project/third-party/unittest/googlemock/include/gmock/ |
| H A D | gmock-more-matchers.h | 101 MATCHER(IsTrue, negation ? "is false" : "is true") {
|
| /llvm-project/clang/test/SemaTemplate/ |
| H A D | concepts.cpp | 978 template <typename T, bool IsTrue> 979 concept Test = IsTrue; // expected-note 2{{because 'false' evaluated to false}} 981 template <typename T, bool IsTrue> 984 requires Test<decltype(t), IsTrue> // expected-note 2{{because 'Test<decltype(t), false>' evaluated to false}}
|
| /llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonConstPropagation.cpp | 1127 bool IsTrue = true, IsFalse = true; in evaluateCMPrr() local 1134 IsTrue &= Res; in evaluateCMPrr() 1137 assert(!IsTrue || !IsFalse); in evaluateCMPrr() 1138 // The actual logical value of the comparison is same as IsTrue. in evaluateCMPrr() 1139 Result = IsTrue; in evaluateCMPrr() 1141 return IsTrue || IsFalse; in evaluateCMPrr() 1154 bool IsTrue = true, IsFalse = true; in evaluateCMPri() local 1161 IsTrue &= Res; in evaluateCMPri() 1164 assert(!IsTrue || !IsFalse); in evaluateCMPri() 1165 // The actual logical value of the comparison is same as IsTrue in evaluateCMPri() 1182 bool IsTrue = true, IsFalse = true; evaluateCMPrp() local [all...] |
| H A D | HexagonISelLoweringHVX.cpp | 1089 auto IsTrue = [] (SDValue V) { in buildHvxVectorPred() local 1107 AllT &= IsTrue(V); in buildHvxVectorPred() 1127 AllT &= IsTrue(F); in buildHvxVectorPred()
|
| /llvm-project/flang/lib/Lower/ |
| H A D | ConvertConstant.cpp | 66 return builder.getIntegerAttr(type, value.IsTrue()); in convertToAttribute() 246 return builder.createBool(loc, value.IsTrue()); in genScalarLit()
|
| /llvm-project/third-party/unittest/googletest/include/gtest/internal/ |
| H A D | gtest-port.h | 931 GTEST_API_ bool IsTrue(bool condition); 1080 if (::testing::internal::IsTrue(condition)) \
|
| /llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/ |
| H A D | PythonDataObjects.h | 357 llvm::Expected<bool> IsTrue() {
|
| H A D | PythonDataObjects.cpp | 41 return obj.get().IsTrue(); in As()
|
| /llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | ConstraintElimination.cpp | 1435 auto ReplaceCmpWithConstant = [&](CmpInst *Cmp, bool IsTrue) { in checkAndReplaceMinMax() 1438 CmpInst::makeCmpResultType(Cmp->getType()), IsTrue); in removeEntryFromStack() 1385 __anone11d5b640d02(CmpInst *Cmp, bool IsTrue) checkAndReplaceCondition() argument
|
| /llvm-project/third-party/unittest/googletest/src/ |
| H A D | gtest-death-test.cc | 314 if (!::testing::internal::IsTrue(expression)) { \
|
| H A D | gtest.cc | 6310 bool IsTrue(bool condition) { return condition; } in IsTrue() function 6316 if (IsTrue(false)) throw ClassUniqueToAlwaysTrue(); in AlwaysTrue()
|
| /llvm-project/flang/lib/Semantics/ |
| H A D | check-call.cpp | 1894 if (element.IsTrue()) { in CheckExplicitInterface()
|