Home
last modified time | relevance | path

Searched refs:Pred (Results 1 – 25 of 526) sorted by relevance

12345678910>>...22

/third_party/boost/boost/fusion/algorithm/query/detail/
Dfind_if.hpp29 template <typename Iterator, typename Pred>
33 Pred, Iterator>::type type;
37 template <typename First, typename Last, typename Pred>
40 template <typename First, typename Last, typename Pred>
45 typename result_of::next<First>::type, Last, Pred
50 template <typename First, typename Last, typename Pred>
55 , apply_filter<First, Pred> >
62 , recursive_find_if<First, Last, Pred>
69 typename Pred, bool>
72 template<typename First, typename Last, typename Pred>
[all …]
/third_party/boost/boost/hana/
Dany_of.hpp36 template <typename Xs, typename Pred>
37 constexpr auto any_of_t::operator()(Xs&& xs, Pred&& pred) const { in operator ()()
48 return AnyOf::apply(static_cast<Xs&&>(xs), static_cast<Pred&&>(pred)); in operator ()()
63 template <typename Xs, typename Pred>
64 static constexpr auto apply(bool prev_cond, Xs&& xs, Pred&& pred) { in apply()
69 static_cast<Pred&&>(pred) in apply()
73 template <typename Xs, typename Pred>
74 static constexpr auto apply(hana::true_, Xs&&, Pred&&) in apply()
77 template <typename Xs, typename Pred>
78 static constexpr auto apply(hana::false_, Xs&& xs, Pred&& pred) { in apply()
[all …]
Dindex_if.hpp32 template <typename Xs, typename Pred>
33 constexpr auto index_if_t::operator()(Xs&& xs, Pred&& pred) const { in operator ()()
44 return IndexIf::apply(static_cast<Xs&&>(xs), static_cast<Pred&&>(pred)); in operator ()()
54 template <typename Xs, typename Pred>
57 std::declval<Pred>()(
59 >::template f<Xs, Pred>;
64 template <typename Xs, typename Pred>
70 template <typename Xs, typename Pred>
77 template <typename Xs, typename Pred>
78 static constexpr auto apply(Xs const& xs, Pred const&) in apply()
[all …]
Dsort.hpp62 template <typename Xs, typename Pred>
65 using apply = decltype(std::declval<Pred>()(
79 template <typename Pred, bool PickRight, typename Left, typename Right>
83 typename Pred,
90 Pred,
98 Pred,
99 (bool)Pred::template apply<r0, l1>::value,
107 typename Pred,
112 Pred,
121 typename Pred,
[all …]
Dlexicographical_compare.hpp33 template <typename Xs, typename Ys, typename Pred>
34 …constexpr auto lexicographical_compare_t::operator()(Xs const& xs, Ys const& ys, Pred const& pred)… in operator ()()
57 template <typename Xs, typename Ys, typename Pred>
59 helper2(Xs const&, Ys const&, Pred const&, hana::true_) in helper2()
62 template <typename Xs, typename Ys, typename Pred>
64 helper2(Xs const& xs, Ys const& ys, Pred const& pred, hana::false_) in helper2()
67 template <typename Xs, typename Ys, typename Pred>
69 helper2(Xs const& xs, Ys const& ys, Pred const& pred, bool is_greater) in helper2()
73 template <typename Xs, typename Ys, typename Pred>
75 helper1(Xs const&, Ys const&, Pred const&, hana::true_) in helper1()
[all …]
Ddrop_while.hpp29 template <typename Xs, typename Pred>
30 constexpr auto drop_while_t::operator()(Xs&& xs, Pred&& pred) const { in operator ()()
41 return DropWhile::apply(static_cast<Xs&&>(xs), static_cast<Pred&&>(pred)); in operator ()()
48 template <typename Xs, typename Pred>
49 constexpr decltype(auto) operator()(Xs&& xs, Pred&& pred) const { in operator ()()
52 static_cast<Pred&&>(pred) in operator ()()
57 template <typename Xs, typename Pred>
58 constexpr decltype(auto) operator()(Xs&& xs, Pred&& pred) const { in operator ()()
69 template <typename Xs, typename Pred>
70 static constexpr auto apply(Xs&& xs, Pred&& pred) { in apply()
[all …]
Dwhile.hpp29 template <typename Pred, typename State, typename F>
30 constexpr decltype(auto) while_t::operator()(Pred&& pred, State&& state, F&& f) const { in operator ()()
42 return While::apply(static_cast<Pred&&>(pred), in operator ()()
56 template <typename Pred, typename State, typename F>
57 static auto apply(Pred&& pred, State&& state, F&& f) in apply()
65 return hana::while_(static_cast<Pred&&>(pred), in apply()
80 template <typename Pred, typename State, typename F>
82 while_helper(hana::false_, Pred&&, State&& state, F&&) { in while_helper()
86 template <typename Pred, typename State, typename F>
88 while_helper(hana::true_, Pred&& pred, State&& state, F&& f) { in while_helper()
[all …]
Dfilter.hpp36 template <typename Xs, typename Pred>
37 constexpr auto filter_t::operator()(Xs&& xs, Pred&& pred) const { in operator ()()
49 static_cast<Pred&&>(pred)); in operator ()()
54 template <typename Pred, typename M>
66 constexpr bool cond = decltype(std::declval<Pred>()(x))::value; in operator ()()
74 template <typename Xs, typename Pred>
75 static constexpr decltype(auto) apply(Xs&& xs, Pred const&) { in apply()
77 detail::lift_or_empty<Pred, M>{} in apply()
99 template <typename Pred>
101 Pred const& pred;
[all …]
Dfind_if.hpp36 template <typename Xs, typename Pred>
37 constexpr auto find_if_t::operator()(Xs&& xs, Pred&& pred) const { in operator ()()
48 return FindIf::apply(static_cast<Xs&&>(xs), static_cast<Pred&&>(pred)); in operator ()()
72 template <typename Xs, typename Pred>
73 static constexpr auto apply(Xs&& xs, Pred&& pred) { in apply()
75 static_cast<Xs&&>(xs), static_cast<Pred&&>(pred))); in apply()
92 template <typename Xs, typename Pred>
93 static constexpr auto apply(Xs&& xs, Pred&& pred) { in apply()
96 static_cast<Pred&&>(pred)(static_cast<Xs&&>(xs)[0]) in apply()
117 template <typename X, typename Pred>
[all …]
/third_party/boost/boost/range/adaptor/
Dreplaced_if.hpp29 template< class Pred, class Value >
42 replace_value_if(const Pred& pred, const Value& to) in replace_value_if()
55 data(const Pred& p, const Value& t) in data()
60 Pred m_pred;
66 template< class Pred, class R >
70 replace_value_if< Pred, BOOST_DEDUCED_TYPENAME range_value<R>::type >,
74 typedef replace_value_if< Pred, BOOST_DEDUCED_TYPENAME range_value<R>::type > Fn;
78 replace_value_if< Pred, BOOST_DEDUCED_TYPENAME range_value<R>::type >,
84 replaced_if_range( R& r, const Pred& pred, value_type to ) in replaced_if_range()
90 template< class Pred, class T >
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/FuzzMutate/
DOpDescriptor.h55 PredT Pred;
60 SourcePred(PredT Pred, MakeT Make) : Pred(Pred), Make(Make) {} in SourcePred() argument
61 SourcePred(PredT Pred, NoneType) : Pred(Pred) { in SourcePred() argument
62 Make = [Pred](ArrayRef<Value *> Cur, ArrayRef<Type *> BaseTypes) { in SourcePred()
67 if (Pred(Cur, V)) in SourcePred()
78 return Pred(Cur, New); in matches()
96 auto Pred = [Only](ArrayRef<Value *>, const Value *V) { in onlyType()
102 return {Pred, Make}; in onlyType()
106 auto Pred = [](ArrayRef<Value *>, const Value *V) { in anyType()
110 return {Pred, Make}; in anyType()
[all …]
/third_party/boost/boost/spirit/home/support/algorithm/
Dany_if.hpp44 template <typename Iterator, typename Pred>
46 : mpl::apply1<Pred, typename fusion::result_of::value_of<Iterator>::type>
56 , typename Pred>
60 apply_predicate<Iterator1, Pred>
96 typename Pred, typename Iterator1, typename Last2
99 result_of::attribute_next<Iterator1, Iterator2, Last2, Pred
104 Iterator1, Iterator2, Last2, Pred>::call(i); in attribute_next()
114 , typename Pred>
118 apply_predicate<Iterator1, Pred>
154 typename Pred, typename Iterator1, typename Last2
[all …]
Dany_if_ns_so.hpp32 typename Pred, typename First1, typename Last1, typename First2
43 typename Pred, typename First1, typename Last1, typename First2
50 typename result_of::attribute_value<First1, First2, Last2, Pred>::type in any_if_ns_so()
51 attribute = spirit::detail::attribute_value<Pred, First1, Last2>(first2); in any_if_ns_so()
55 detail::any_if_ns_so<Pred>( in any_if_ns_so()
57 , attribute_next<Pred, First1, Last2>(first2) in any_if_ns_so()
66 template <typename Pred, typename Sequence1, typename Sequence2, typename F>
68 any_if_ns_so(Sequence1 const& seq1, Sequence2& seq2, F f, Pred) in any_if_ns_so() argument
70 return detail::any_if_ns_so<Pred>( in any_if_ns_so()
79 template <typename Pred, typename Sequence, typename F>
[all …]
Dany_if_ns.hpp33 typename Pred, typename First1, typename Last1, typename First2
44 typename Pred, typename First1, typename Last1, typename First2
51 typename result_of::attribute_value<First1, First2, Last2, Pred>::type in any_if_ns()
52 attribute = spirit::detail::attribute_value<Pred, First1, Last2>(first2); in any_if_ns()
55 detail::any_if_ns<Pred>( in any_if_ns()
57 , attribute_next<Pred, First1, Last2>(first2) in any_if_ns()
65 template <typename Pred, typename Sequence1, typename Sequence2, typename F>
67 any_if_ns(Sequence1 const& seq1, Sequence2& seq2, F f, Pred) in any_if_ns() argument
69 return detail::any_if_ns<Pred>( in any_if_ns()
78 template <typename Pred, typename Sequence, typename F>
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyFixIrreducibleControlFlow.cpp80 for (auto *Pred : MBB->predecessors()) { in ReachabilityGraph() local
81 assert(inRegion(Pred)); in ReachabilityGraph()
147 for (auto *Pred : MBB->predecessors()) { in calculate() local
148 if (Reachable[Pred].insert(Succ).second) { in calculate()
149 WorkList.emplace_back(Pred, Succ); in calculate()
166 for (auto *Pred : Looper->predecessors()) { in calculate() local
169 if (!canReach(Looper, Pred)) { in calculate()
171 LoopEnterers[Looper].insert(Pred); in calculate()
201 for (auto *Pred : Entry->predecessors()) { in calculate() local
202 if (!Enterers.count(Pred)) { in calculate()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DCmpInstAnalysis.cpp22 ICmpInst::Predicate Pred = InvertPred ? ICI->getInversePredicate() in getICmpCode() local
24 switch (Pred) { in getICmpCode()
43 CmpInst::Predicate &Pred) { in getPredForICmpCode() argument
48 case 1: Pred = Sign ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; break; in getPredForICmpCode()
49 case 2: Pred = ICmpInst::ICMP_EQ; break; in getPredForICmpCode()
50 case 3: Pred = Sign ? ICmpInst::ICMP_SGE : ICmpInst::ICMP_UGE; break; in getPredForICmpCode()
51 case 4: Pred = Sign ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; break; in getPredForICmpCode()
52 case 5: Pred = ICmpInst::ICMP_NE; break; in getPredForICmpCode()
53 case 6: Pred = Sign ? ICmpInst::ICMP_SLE : ICmpInst::ICMP_ULE; break; in getPredForICmpCode()
67 CmpInst::Predicate &Pred, in decomposeBitTestICmp() argument
[all …]
DScalarEvolutionNormalization.cpp36 const NormalizePredTy Pred; member
38 NormalizeDenormalizeRewriter(TransformKind Kind, NormalizePredTy Pred, in NormalizeDenormalizeRewriter()
41 Pred(Pred) {} in NormalizeDenormalizeRewriter()
53 if (!Pred(AR)) in visitAddRecExpr()
99 auto Pred = [&](const SCEVAddRecExpr *AR) { in normalizeForPostIncUse() local
102 return NormalizeDenormalizeRewriter(Normalize, Pred, SE).visit(S); in normalizeForPostIncUse()
105 const SCEV *llvm::normalizeForPostIncUseIf(const SCEV *S, NormalizePredTy Pred, in normalizeForPostIncUseIf() argument
107 return NormalizeDenormalizeRewriter(Normalize, Pred, SE).visit(S); in normalizeForPostIncUseIf()
113 auto Pred = [&](const SCEVAddRecExpr *AR) { in denormalizeForPostIncUse() local
116 return NormalizeDenormalizeRewriter(Denormalize, Pred, SE).visit(S); in denormalizeForPostIncUse()
/third_party/boost/boost/hana/detail/
Dfirst_unsatisfied_index.hpp21 template <bool, typename Pred, typename ...Xs>
24 template <typename Pred, typename X, typename ...Xs>
25 struct find_tail_size<true, Pred, X, Xs...> {
27 static_cast<bool>(hana::value<decltype(std::declval<Pred>()(std::declval<X>()))>()),
28 Pred, Xs...
32 template <typename Pred>
33 struct find_tail_size<true, Pred> {
37 template <typename Pred, typename ...Xs>
38 struct find_tail_size<false, Pred, Xs...> {
45 template <typename Pred>
[all …]
/third_party/boost/boost/mpl/aux_/
Dsort_impl.hpp36 template< typename Seq, typename Pred >
40 template< typename Pred, typename Pivot >
45 typedef typename apply2<Pred,T,Pivot>::type type;
51 , typename Pred
61 , protect< aux::quick_sort_pred< Pred, typename deref<pivot>::type > >
66 typedef typename quick_sort< typename partitioned::first, Pred >::type part1;
67 typedef typename quick_sort< typename partitioned::second, Pred >::type part2;
77 , typename Pred
83 , quick_sort_impl<Seq,Pred>
91 , typename Pred
[all …]
/third_party/boost/boost/mpl/
Dassert.hpp140 template<class Pred>
143 template<class Pred>
144 struct extract_assert_pred<void(Pred)> { typedef Pred type; };
146 template<class Pred>
148 typedef typename extract_assert_pred<Pred>::type P;
156 template<class Pred>
158 typedef typename extract_assert_pred<Pred>::type P;
193 template< typename Pred >
194 failed ************ (Pred::************
195 assert_arg( void (*)(Pred), typename assert_arg_pred<Pred>::type )
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceTargetLoweringARM32.h327 CondARM32::Cond Pred = CondARM32::AL) {
328 Context.insert<InstARM32Add>(Dest, Src0, Src1, Pred);
331 CondARM32::Cond Pred = CondARM32::AL) {
333 Context.insert<InstARM32Add>(Dest, Src0, Src1, Pred, SetFlags);
339 CondARM32::Cond Pred = CondARM32::AL) {
340 Context.insert<InstARM32Adc>(Dest, Src0, Src1, Pred);
343 CondARM32::Cond Pred = CondARM32::AL) {
344 Context.insert<InstARM32And>(Dest, Src0, Src1, Pred);
347 CondARM32::Cond Pred = CondARM32::AL) {
348 Context.insert<InstARM32Asr>(Dest, Src0, Src1, Pred);
[all …]
/third_party/boost/boost/multi_index/
Dhashed_index_fwd.hpp25 typename KeyFromValue,typename Hash,typename Pred,
31 typename KeyFromValue,typename Hash,typename Pred,
35 const hashed_index<KeyFromValue,Hash,Pred,SuperMeta,TagList,Category>& x,
36 const hashed_index<KeyFromValue,Hash,Pred,SuperMeta,TagList,Category>& y);
39 typename KeyFromValue,typename Hash,typename Pred,
43 const hashed_index<KeyFromValue,Hash,Pred,SuperMeta,TagList,Category>& x,
44 const hashed_index<KeyFromValue,Hash,Pred,SuperMeta,TagList,Category>& y);
47 typename KeyFromValue,typename Hash,typename Pred,
51 hashed_index<KeyFromValue,Hash,Pred,SuperMeta,TagList,Category>& x,
52 hashed_index<KeyFromValue,Hash,Pred,SuperMeta,TagList,Category>& y);
/third_party/boost/boost/fusion/algorithm/query/
Dfind_if.hpp28 template <typename Sequence, typename Pred>
32 , detail::result_of_segmented_find_if<Sequence, Pred>
36 typename mpl::lambda<Pred>::type
44 template <typename Pred, typename Sequence>
49 , result_of::find_if<Sequence, Pred>
53 typedef typename result_of::find_if<Sequence, Pred>::filter filter; in find_if()
57 template <typename Pred, typename Sequence>
59 inline typename result_of::find_if<Sequence const, Pred>::type const
62 typedef typename result_of::find_if<Sequence const, Pred>::filter filter; in find_if()
/third_party/boost/boost/contract/
Dcall_if.hpp68 template<bool Pred, typename Then, typename ThenResult =
524 template<bool Pred, typename Then>
525 call_if_statement<Pred, Then> call_if_c(Then f) { in call_if_c()
526 return call_if_statement<Pred, Then>(f); in call_if_c()
572 template<class Pred, typename Then>
573 call_if_statement<Pred::value, Then> call_if(Then f) { in call_if()
574 return call_if_statement<Pred::value, Then>(f); in call_if()
607 template<bool Pred, typename Then>
613 template<bool Pred, typename Then>
614 typename boost::enable_if_c<Pred, bool>::type
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp76 static bool isSignTest(ICmpInst::Predicate &Pred, const APInt &C) { in isSignTest() argument
77 if (!ICmpInst::isSigned(Pred)) in isSignTest()
81 return ICmpInst::isRelational(Pred); in isSignTest()
84 if (Pred == ICmpInst::ICMP_SLT) { in isSignTest()
85 Pred = ICmpInst::ICMP_SLE; in isSignTest()
89 if (Pred == ICmpInst::ICMP_SGT) { in isSignTest()
90 Pred = ICmpInst::ICMP_SGE; in isSignTest()
1103 ICmpInst::Predicate Pred) { in foldICmpAddOpConst() argument
1112 if (Pred == ICmpInst::ICMP_ULT || Pred == ICmpInst::ICMP_ULE) { in foldICmpAddOpConst()
1121 if (Pred == ICmpInst::ICMP_UGT || Pred == ICmpInst::ICMP_UGE) in foldICmpAddOpConst()
[all …]

12345678910>>...22