Home
last modified time | relevance | path

Searched refs:Cmp (Results 1 – 25 of 244) sorted by relevance

12345678910

/external/tensorflow/tensorflow/core/lib/gtl/
Dtop_n.h61 template <class T, class Cmp = std::greater<T> >
92 explicit TopN(size_t limit) : TopN(limit, Cmp()) {} in TopN()
93 TopN(size_t limit, const Cmp &cmp) : limit_(limit), cmp_(cmp) {} in TopN()
181 Cmp *comparator() { return &cmp_; } in comparator()
201 Cmp cmp_; // Greater-than comparison function
208 template <class T, class Cmp>
210 void TopN<T, Cmp>::PushInternal(U &&v, T *dropped) { // NOLINT(build/c++11) in PushInternal()
248 template <class T, class Cmp>
249 const T &TopN<T, Cmp>::peek_bottom() { in peek_bottom()
270 template <class T, class Cmp>
[all …]
Dedit_distance.h46 template <typename T, typename Cmp>
48 const gtl::ArraySlice<T>& t, const Cmp& cmp) { in LevenshteinDistance()
96 template <typename Container1, typename Container2, typename Cmp>
98 const Cmp& cmp) { in LevenshteinDistance()
Dtop_n_test.cc45 template <class Cmp>
46 void TestIntTopNHelper(size_t limit, size_t n_elements, const Cmp &cmp, in TestIntTopNHelper()
52 TopN<int, Cmp> top(limit, cmp); in TestIntTopNHelper()
76 template <class Cmp>
77 void TestIntTopN(size_t limit, size_t n_elements, const Cmp &cmp, in TestIntTopN()
/external/clang/include/clang/Analysis/Analyses/
DThreadSafetyTIL.h396 typename C::CType compare(const Variable* E, C& Cmp) const { in compare() argument
397 return Cmp.compareVariableRefs(this, E); in compare()
457 typename C::CType compare(const Future* E, C& Cmp) const { in compare() argument
459 return Cmp.comparePointers(this, E); in compare()
460 return Cmp.compare(Result, E->Result); in compare()
485 typename C::CType compare(const Undefined* E, C& Cmp) const { in compare() argument
486 return Cmp.trueResult(); in compare()
507 typename C::CType compare(const Wildcard* E, C& Cmp) const { in compare() argument
508 return Cmp.trueResult(); in compare()
541 typename C::CType compare(const Literal* E, C& Cmp) const { in compare() argument
[all …]
/external/libcxx/test/std/containers/associative/multimap/multimap.cons/
Dinitializer_list_compare_alloc.pass.cpp27 typedef test_compare<std::less<int> > Cmp; in main() typedef
29 typedef std::multimap<int, double, Cmp, A> C; in main()
43 Cmp(4), A(5) in main()
57 assert(m.key_comp() == Cmp(4)); in main()
61 typedef test_compare<std::less<int> > Cmp; in main() typedef
63 typedef std::multimap<int, double, Cmp, A> C; in main()
77 Cmp(4), A() in main()
91 assert(m.key_comp() == Cmp(4)); in main()
126 typedef test_compare<std::less<int> > Cmp; in main() typedef
128 typedef std::multimap<int, double, Cmp, A> C; in main()
[all …]
Dinitializer_list_compare.pass.cpp26 typedef test_compare<std::less<int> > Cmp; in main() typedef
27 typedef std::multimap<int, double, Cmp> C; in main()
41 Cmp(4) in main()
55 assert(m.key_comp() == Cmp(4)); in main()
58 typedef test_compare<std::less<int> > Cmp; in main() typedef
59 typedef std::multimap<int, double, Cmp, min_allocator<std::pair<const int, double>>> C; in main()
73 Cmp(4) in main()
87 assert(m.key_comp() == Cmp(4)); in main()
/external/llvm/lib/Target/Hexagon/
DHexagonHardwareLoops.cpp119 static Kind getSwappedComparison(Kind Cmp) { in getSwappedComparison()
120 assert ((!((Cmp & L) && (Cmp & G))) && "Malformed comparison operator"); in getSwappedComparison()
121 if ((Cmp & L) || (Cmp & G)) in getSwappedComparison()
122 return (Kind)(Cmp ^ (L|G)); in getSwappedComparison()
123 return Cmp; in getSwappedComparison()
126 static Kind getNegatedComparison(Kind Cmp) { in getNegatedComparison()
127 if ((Cmp & L) || (Cmp & G)) in getNegatedComparison()
128 return (Kind)((Cmp ^ (L | G)) ^ EQ); in getNegatedComparison()
129 if ((Cmp & NE) || (Cmp & EQ)) in getNegatedComparison()
130 return (Kind)(Cmp ^ (EQ | NE)); in getNegatedComparison()
[all …]
/external/libcxx/test/std/containers/associative/set/set.cons/
Dinitializer_list_compare_alloc.pass.cpp28 typedef test_compare<std::less<int> > Cmp; in main() typedef
30 typedef std::set<int, Cmp, A> C; in main()
32 C m({1, 2, 3, 4, 5, 6}, Cmp(10), A(4)); in main()
42 assert(m.key_comp() == Cmp(10)); in main()
46 typedef test_compare<std::less<int> > Cmp; in main() typedef
48 typedef std::set<int, Cmp, A> C; in main()
Dinitializer_list_compare.pass.cpp24 typedef test_compare<std::less<int> > Cmp; in main() typedef
25 typedef std::set<int, Cmp> C; in main()
27 C m({1, 2, 3, 4, 5, 6}, Cmp(10)); in main()
37 assert(m.key_comp() == Cmp(10)); in main()
/external/llvm/lib/Target/AArch64/
DAArch64ConditionOptimizer.cpp101 CmpInfo adjustCmp(MachineInstr *CmpMI, AArch64CC::CondCode Cmp);
103 bool adjustTo(MachineInstr *CmpMI, AArch64CC::CondCode Cmp, MachineInstr *To,
218 static AArch64CC::CondCode getAdjustedCmp(AArch64CC::CondCode Cmp) { in getAdjustedCmp() argument
219 switch (Cmp) { in getAdjustedCmp()
232 MachineInstr *CmpMI, AArch64CC::CondCode Cmp) { in adjustCmp() argument
239 int Correction = (Cmp == AArch64CC::GT) ? 1 : -1; in adjustCmp()
255 return CmpInfo(NewImm, Opc, getAdjustedCmp(Cmp)); in adjustCmp()
263 AArch64CC::CondCode Cmp; in modifyCmp() local
264 std::tie(Imm, Opc, Cmp) = Info; in modifyCmp()
282 .addImm(Cmp) in modifyCmp()
[all …]
/external/libcxx/test/std/containers/associative/multiset/multiset.cons/
Dinitializer_list_compare.pass.cpp24 typedef test_compare<std::less<int> > Cmp; in main() typedef
25 typedef std::multiset<int, Cmp> C; in main()
27 C m({1, 2, 3, 4, 5, 6}, Cmp(10)); in main()
37 assert(m.key_comp() == Cmp(10)); in main()
Dinitializer_list_compare_alloc.pass.cpp25 typedef test_compare<std::less<int> > Cmp; in main() typedef
27 typedef std::multiset<int, Cmp, A> C; in main()
29 C m({1, 2, 3, 4, 5, 6}, Cmp(10), A(4)); in main()
39 assert(m.key_comp() == Cmp(10)); in main()
/external/v8/src/regexp/arm64/
Dregexp-macro-assembler-arm64.cc214 __ Cmp(w10, string_start_minus_one()); in CheckAtStart() local
223 __ Cmp(w10, string_start_minus_one()); in CheckNotAtStart() local
267 __ Cmp(current_input_offset(), w10); in CheckGreedyLoop() local
303 __ Cmp(current_input_offset(), w12); in CheckNotBackReferenceIgnoreCase() local
338 __ Cmp(w10, w11); in CheckNotBackReferenceIgnoreCase() local
344 __ Cmp(w11, w10); in CheckNotBackReferenceIgnoreCase() local
347 __ Cmp(w10, 'z' - 'a'); // Is w10 a lowercase letter? in CheckNotBackReferenceIgnoreCase() local
351 __ Cmp(w10, 254 - 224); in CheckNotBackReferenceIgnoreCase() local
356 __ Cmp(capture_start_address, capture_end_addresss); in CheckNotBackReferenceIgnoreCase() local
371 __ Cmp(current_input_offset().X(), Operand(current_input_offset(), SXTW)); in CheckNotBackReferenceIgnoreCase() local
[all …]
/external/llvm/test/CodeGen/Thumb2/
D2013-03-06-vector-sext-operand-scalarize.ll7 %Cmp = icmp uge i32 %a, 42
8 %vec = insertelement <1 x i1> zeroinitializer, i1 %Cmp, i32 0
15 %Cmp = icmp uge i32 %a, 42
16 %vec = insertelement <1 x i1> zeroinitializer, i1 %Cmp, i32 0
/external/python/cpython3/Lib/test/
Dtest_compare.py7 class Cmp: class
25 set1 = [2, 2.0, 2, 2+0j, Cmp(2.0)]
48 a = Cmp(1)
49 b = Cmp(1)
50 c = Cmp(2)
/external/llvm/lib/Transforms/Instrumentation/
DBoundsChecking.cpp63 void emitBranchToTrap(Value *Cmp = nullptr);
97 void BoundsChecking::emitBranchToTrap(Value *Cmp) { in emitBranchToTrap() argument
99 ConstantInt *C = dyn_cast_or_null<ConstantInt>(Cmp); in emitBranchToTrap()
105 Cmp = nullptr; // unconditional branch in emitBranchToTrap()
114 if (Cmp) in emitBranchToTrap()
115 BranchInst::Create(getTrapBB(), Cont, Cmp, OldBB); in emitBranchToTrap()
/external/llvm/test/CodeGen/Mips/msa/
Dllvm-stress-s1704963983.ll23 %Cmp = icmp eq i32 434069, 272505
34 %Sl9 = select i1 %Cmp, i8 77, i8 77
43 %Sl16 = select i1 %Cmp, i8 77, i8 %5
52 %Sl24 = select i1 %Cmp, double 0.000000e+00, double 0.000000e+00
67 %Sl32 = select i1 %Cmp, <2 x i1> zeroinitializer, <2 x i1> zeroinitializer
75 %Sl39 = select i1 %Cmp, double 0.000000e+00, double %Sl24
83 %Sl45 = select i1 %Cmp, <8 x i1> %Cmp10, <8 x i1> %Shuff42
95 %Sl53 = select i1 %Cmp, <8 x i64> %Shuff, <8 x i64> %Shuff
106 %Sl60 = select i1 %Cmp, i8 77, i8 77
115 %Sl68 = select i1 %Cmp, <8 x i32> %B30, <8 x i32> zeroinitializer
Dllvm-stress-s2704903805.ll24 %Cmp = icmp ule i16 -25210, %E
35 %Sl11 = select i1 %Cmp, i32 -1, i32 -1
50 %Sl18 = select i1 %Cmp, <2 x i64> zeroinitializer, <2 x i64> zeroinitializer
51 %Cmp19 = icmp ne i1 %Cmp12, %Cmp
61 %Sl25 = select i1 %Cmp, <2 x i32> zeroinitializer, <2 x i32> <i32 -1, i32 -1>
77 %Sl38 = select i1 %Cmp, i16 %E34, i16 %E
78 %Cmp39 = icmp eq i1 %Cmp19, %Cmp
133 %Sl75 = select i1 %Cmp, i32 463279, i32 %L61
/external/v8/src/builtins/arm64/
Dbuiltins-arm64.cc201 __ Cmp(x10, x11); in Generate_MathMaxMin() local
307 __ Cmp(x1, x3); in Generate_NumberConstructor_ConstructStub() local
459 __ Cmp(x1, x3); in Generate_StringConstructor_ConstructStub() local
625 __ Cmp(x4, x2); in Generate_JSConstructStubHelper() local
884 __ Cmp(x10, Operand::UntagSmiAndScale(argc, kPointerSizeLog2)); in Generate_CheckStackOverflow() local
887 __ Cmp(x10, Operand(argc, LSL, kPointerSizeLog2)); in Generate_CheckStackOverflow() local
950 __ Cmp(scratch, argv); in Generate_JSEntryTrampolineHelper() local
1052 __ Cmp(x0, Operand(masm->CodeObject())); // Self-reference to this code. in Generate_InterpreterEntryTrampoline() local
1164 __ Cmp(scratch, Operand(num_args, LSL, kPointerSizeLog2)); in Generate_StackOverflowCheck() local
1192 __ Cmp(index, last_arg); in Generate_InterpreterPushArgs() local
[all …]
/external/llvm/test/Analysis/LoopAccessAnalysis/
Dwrapping-pointer-versioning.ll51 ; LV-NEXT: [[Cmp:%[^ ]*]] = select i1 false, i1 [[CmpNeg]], i1 [[CmpPos]]
53 ; LV-NEXT: [[CheckOr0:%[^ ]*]] = or i1 [[Cmp]], [[BECheck]]
65 ; LV-NEXT: [[Cmp:%[^ ]*]] = select i1 false, i1 [[CmpNeg1]], i1 [[CmpPos1]]
66 ; LV-NEXT: [[PredCheck1:%[^ ]*]] = or i1 [[Cmp]], [[OFMulOverflow1]]
146 ; LV-NEXT: [[Cmp:%[^ ]*]] = select i1 true, i1 [[CmpNeg]], i1 [[CmpPos]]
148 ; LV-NEXT: [[CheckOr0:%[^ ]*]] = or i1 [[Cmp]], [[BECheck]]
160 ; LV-NEXT: [[Cmp:%[^ ]*]] = select i1 true, i1 [[CmpNeg1]], i1 [[CmpPos1]]
161 ; LV-NEXT: [[PredCheck1:%[^ ]*]] = or i1 [[Cmp]], [[OFMulOverflow1]]
226 ; LV-NEXT: [[Cmp:%[^ ]*]] = select i1 false, i1 [[CmpNeg]], i1 [[CmpPos]]
228 ; LV-NEXT: [[CheckOr0:%[^ ]*]] = or i1 [[Cmp]], [[BECheck]]
[all …]
/external/llvm/lib/Support/
DStatistic.cpp108 if (int Cmp = std::strcmp(LHS->getDebugType(), RHS->getDebugType())) in sort() local
109 return Cmp < 0; in sort()
111 if (int Cmp = std::strcmp(LHS->getName(), RHS->getName())) in sort() local
112 return Cmp < 0; in sort()
/external/llvm/test/CodeGen/Mips/
D2013-11-18-fp64-const0.ll21 %Cmp = fcmp ule double 0.000000e+00, undef
26 %Sl18 = select i1 %Cmp, i1 %Cmp11, i1 %Cmp
/external/llvm/lib/Transforms/Utils/
DLoopUtils.cpp377 Instruction *Cmp = nullptr; in isMinMaxSelectCmpPattern() local
382 if ((Cmp = dyn_cast<ICmpInst>(I)) || (Cmp = dyn_cast<FCmpInst>(I))) { in isMinMaxSelectCmpPattern()
383 if (!Cmp->hasOneUse() || !(Select = dyn_cast<SelectInst>(*I->user_begin()))) in isMinMaxSelectCmpPattern()
391 if (!(Cmp = dyn_cast<ICmpInst>(I->getOperand(0))) && in isMinMaxSelectCmpPattern()
392 !(Cmp = dyn_cast<FCmpInst>(I->getOperand(0)))) in isMinMaxSelectCmpPattern()
394 if (!Cmp->hasOneUse()) in isMinMaxSelectCmpPattern()
646 Value *Cmp; in createMinMaxOp() local
648 Cmp = Builder.CreateFCmp(P, Left, Right, "rdx.minmax.cmp"); in createMinMaxOp()
650 Cmp = Builder.CreateICmp(P, Left, Right, "rdx.minmax.cmp"); in createMinMaxOp()
652 Value *Select = Builder.CreateSelect(Cmp, Left, Right, "rdx.minmax.select"); in createMinMaxOp()
/external/swiftshader/third_party/LLVM/lib/Support/
DStatistic.cpp85 int Cmp = std::strcmp(LHS->getName(), RHS->getName()); in operator ()() local
86 if (Cmp != 0) return Cmp < 0; in operator ()()
/external/swiftshader/third_party/subzero/tests_lit/llvm2ice_tests/
Dbool-folding.ll39 ; Cmp/branch folding with intervening instructions.
67 ; Cmp/branch non-folding because of live-out.
92 ; Cmp/branch non-folding because of extra non-whitelisted uses.
178 ; Cmp/select folding with intervening instructions.
198 ; Cmp/multi-select folding.
234 ; Cmp/multi-select non-folding because of live-out.
272 ; Cmp/branch non-folding due to load folding and intervening store.
291 ; Cmp/select non-folding due to load folding and intervening store.
309 ; Cmp/select folding due to load folding and non-intervening store.
324 ; Cmp/multi-select non-folding because of extra non-whitelisted uses.

12345678910