Home
last modified time | relevance | path

Searched refs:IsTrue (Results 1 – 19 of 19) sorted by relevance

/llvm-project/flang/unittests/Evaluate/
H A Dlogical.cpp13 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 Dlogical.h28 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 Dfold-reduction.h70 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 Dfold-integer.cpp328 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 Dfold-logical.cpp981 return Expr<Ty>{Constant<Ty>{!value->IsTrue()}}; in FoldOperation()
999 bool xt{folded->first.IsTrue()}, yt{folded->second.IsTrue()}, result{};
H A Dfold-implementation.h830 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 Dformatting.cpp85 } else if (value.IsTrue()) { in AsFortran()
/llvm-project/third-party/unittest/googlemock/include/gmock/
H A Dgmock-more-matchers.h101 MATCHER(IsTrue, negation ? "is false" : "is true") {
/llvm-project/clang/test/SemaTemplate/
H A Dconcepts.cpp978 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 DHexagonConstPropagation.cpp1127 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 DHexagonISelLoweringHVX.cpp1089 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 DConvertConstant.cpp66 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 Dgtest-port.h931 GTEST_API_ bool IsTrue(bool condition);
1080 if (::testing::internal::IsTrue(condition)) \
/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
H A DPythonDataObjects.h357 llvm::Expected<bool> IsTrue() {
H A DPythonDataObjects.cpp41 return obj.get().IsTrue(); in As()
/llvm-project/llvm/lib/Transforms/Scalar/
H A DConstraintElimination.cpp1435 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 Dgtest-death-test.cc314 if (!::testing::internal::IsTrue(expression)) { \
H A Dgtest.cc6310 bool IsTrue(bool condition) { return condition; } in IsTrue() function
6316 if (IsTrue(false)) throw ClassUniqueToAlwaysTrue(); in AlwaysTrue()
/llvm-project/flang/lib/Semantics/
H A Dcheck-call.cpp1894 if (element.IsTrue()) { in CheckExplicitInterface()