Home
last modified time | relevance | path

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

12345678

/llvm-project-15.0.7/clang/test/CXX/class/class.compare/class.spaceship/
H A Dp1.cpp94 Cmp<A>() <=> Cmp<A>(), in f()
95 Cmp<B>() <=> Cmp<B>(), in f()
96 Cmp<C>() <=> Cmp<C>(), // expected-error {{deleted}} in f()
97 Cmp<D1>() <=> Cmp<D1>(), // expected-error {{deleted}} in f()
98 Cmp<D2>() <=> Cmp<D2>(), // expected-error {{deleted}} in f()
99 Cmp<E>() <=> Cmp<E>(), // expected-error {{deleted}} in f()
100 Cmp<F>() <=> Cmp<F>(), // expected-error {{deleted}} in f()
181 template<typename T> struct Cmp { struct
183 friend T operator<=>(const Cmp&, const Cmp&) = default; // expected-note {{deleted}}
187 return Cmp<T>{equal, less} <=> Cmp<T>{Mu, reverse_less}; in cmp()
[all …]
/llvm-project-15.0.7/lldb/unittests/Core/
H A DSourceLocationSpecTest.cpp124 auto Cmp = [](SourceLocationSpec a, SourceLocationSpec b) { in TEST() local
141 Cmp(Create(true, true, fs, 4), Create(true, true, other_fs, 4))); in TEST()
149 EXPECT_EQ(-1, Cmp(Create(true, true, fs, 1), Create(true, true, fs, 4))); in TEST()
150 EXPECT_EQ(0, Cmp(Create(false, true, fs, 4), Create(false, true, fs, 4))); in TEST()
151 EXPECT_EQ(0, Cmp(Create(true, false, fs, 4), Create(true, false, fs, 4))); in TEST()
153 EXPECT_EQ(1, Cmp(Create(true, true, fs, 4), Create(true, true, fs, 1))); in TEST()
163 EXPECT_EQ(-1, Cmp(Create(false, false, fs, 4, 19), in TEST()
165 EXPECT_EQ(-1, Cmp(Create(true, true, fs, 4, 19), in TEST()
171 EXPECT_EQ(1, Cmp(Create(false, true, other_fs, 4, 19), in TEST()
173 EXPECT_EQ(1, Cmp(Create(true, false, other_fs, 4, 19), in TEST()
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/associative/multimap/multimap.cons/
H A Dinitializer_list_compare_alloc.pass.cpp27 typedef test_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_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_less<int> Cmp; in main() typedef
142 Cmp(4), A{} in main()
[all …]
H A Dinitializer_list_compare.pass.cpp26 typedef test_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_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()
/llvm-project-15.0.7/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyTIL.h699 if (Cmp.notTrue(Ct)) in compare()
703 Cmp.leaveScope(); in compare()
755 Cmp.leaveScope(); in compare()
789 if (Cmp.notTrue(Ct)) in compare()
824 if (Cmp.notTrue(Ct)) in compare()
863 if (Cmp.notTrue(Ct)) in compare()
953 if (Cmp.notTrue(Ct)) in compare()
1021 if (Cmp.notTrue(Ct)) in compare()
1081 if (Cmp.notTrue(Ct)) in compare()
1117 if (Cmp.notTrue(Ct)) in compare()
[all …]
/llvm-project-15.0.7/llvm/unittests/Transforms/Utils/
H A DFunctionComparatorTest.cpp115 TestComparator Cmp(F1.F, F2.F, &GN); in TEST() local
117 EXPECT_TRUE(Cmp.testFunctionAccess(F1.F, F2.F)); in TEST()
118 EXPECT_EQ(Cmp.testCompare(), -1); in TEST()
119 EXPECT_EQ(Cmp.testCompareSignature(), 0); in TEST()
120 EXPECT_EQ(Cmp.testCmpBasicBlocks(F1.BB, F2.BB), -1); in TEST()
121 EXPECT_EQ(Cmp.testCmpConstants(F1.C, F2.C), -1); in TEST()
122 EXPECT_EQ(Cmp.testCmpGlobalValues(F1.F, F2.F), -1); in TEST()
123 EXPECT_EQ(Cmp.testCmpValues(F1.I, F2.I), 0); in TEST()
125 EXPECT_EQ(Cmp.testCmpOperations(F1.I, F2.I, needToCmpOperands), 0); in TEST()
127 EXPECT_EQ(Cmp.testCmpTypes(F1.T, F2.T), 0); in TEST()
[all …]
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DGtestMatchers.cpp39 static DeclarationMatcher getComparisonDecl(GtestCmp Cmp) { in getComparisonDecl() argument
40 switch (Cmp) { in getComparisonDecl()
71 static llvm::StringRef getComparisonTypeName(GtestCmp Cmp) { in getComparisonTypeName() argument
72 switch (Cmp) { in getComparisonTypeName()
89 static std::string getMacroName(MacroType Macro, GtestCmp Cmp) { in getMacroName() argument
90 return (getMacroTypeName(Macro) + "_" + getComparisonTypeName(Cmp)).str(); in getMacroName()
123 gtestComparisonInternal(MacroType Macro, GtestCmp Cmp, StatementMatcher Left, in gtestComparisonInternal() argument
125 return callExpr(isExpandedFromMacro(getMacroName(Macro, Cmp)), in gtestComparisonInternal()
126 callee(getComparisonDecl(Cmp)), hasArgument(2, Left), in gtestComparisonInternal()
193 return gtestComparisonInternal(MacroType::Assert, Cmp, Left, Right); in gtestAssert()
[all …]
/llvm-project-15.0.7/llvm/test/Analysis/CostModel/SystemZ/
H A Dcmp-mem.ll8 ; CHECK: Cost Model: Found an estimated cost of 1 for instruction: %Cmp = icmp eq i8 %Ld, 123
9 ; CHECK: Cost Model: Found an estimated cost of 2 for instruction: %Ret = zext i1 %Cmp to i32
12 %Cmp = icmp eq i8 %Ld, 123
13 %Ret = zext i1 %Cmp to i32
20 ; CHECK: Cost Model: Found an estimated cost of 1 for instruction: %Cmp = icmp eq i16
21 ; CHECK: Cost Model: Found an estimated cost of 2 for instruction: %Ret = zext i1 %Cmp to i32
24 %Cmp = icmp eq i16 %Ld, 1234
25 %Ret = zext i1 %Cmp to i32
H A Dload-and-test.ll7 %Cmp = icmp eq i64 %Ld1, 0
8 %S = select i1 %Cmp, i64 %Arg, i64 %Ld1
12 ; CHECK: Cost Model: Found an estimated cost of 0 for instruction: %Cmp = icmp eq i64 %Ld1, 0
18 %Cmp = icmp eq i32 %Ld1, 0
19 %S = select i1 %Cmp, i32 %Arg, i32 %Ld1
23 ; CHECK: Cost Model: Found an estimated cost of 0 for instruction: %Cmp = icmp eq i32 %Ld1, 0
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonHardwareLoops.cpp149 if ((Cmp & L) || (Cmp & G)) in getSwappedComparison()
155 if ((Cmp & L) || (Cmp & G)) in getNegatedComparison()
157 if ((Cmp & NE) || (Cmp & EQ)) in getNegatedComparison()
163 return (Cmp & (L | G) && !(Cmp & U)); in isSigned()
556 return Cmp; in getComparisonKind()
690 if (!Cmp) in getLoopTripCount()
693 Cmp = Comparison::getNegatedComparison(Cmp); in getLoopTripCount()
695 Cmp = Comparison::getSwappedComparison(Cmp); in getLoopTripCount()
1467 Cmp = Comparison::getNegatedComparison(Cmp); in loopCountMayWrapOrUnderFlow()
1469 Cmp = Comparison::getSwappedComparison(Cmp); in loopCountMayWrapOrUnderFlow()
[all …]
H A DHexagonConstPropagation.cpp347 if (Cmp == EQ) in negate()
349 if (Cmp == NE) in negate()
352 return Cmp ^ (L|G); in negate()
1219 if (Cmp & Comparison::U) { in evaluateCMPii()
1232 if (Cmp & Comparison::L) in evaluateCMPii()
1262 Result = (Cmp & Comparison::G) || (Cmp == Comparison::NE); in evaluateCMPpi()
1269 Result = (Cmp & Comparison::L) || (Cmp == Comparison::NE); in evaluateCMPpi()
1290 Result = (Cmp & Comparison::G) || (Cmp == Comparison::NE); in evaluateCMPpi()
1298 Result = (Cmp & Comparison::L) || (Cmp == Comparison::NE); in evaluateCMPpi()
1349 if ((Cmp & Comparison::EQ) && (Cmp & Comparison::L)) in evaluateCMPpp()
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/associative/set/set.cons/
H A Dinitializer_list_compare_alloc.pass.cpp27 typedef test_less<int> Cmp; in main() typedef
29 typedef std::set<int, Cmp, A> C; in main()
31 C m({1, 2, 3, 4, 5, 6}, Cmp(10), A(4)); in main()
41 assert(m.key_comp() == Cmp(10)); in main()
45 typedef test_less<int> Cmp; in main() typedef
47 typedef std::set<int, Cmp, A> C; in main()
H A Dinitializer_list_compare.pass.cpp24 typedef test_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()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp1429 Value *Op0 = Cmp.getOperand(0), *Op1 = Cmp.getOperand(1); in foldICmpWithConstant()
1485 return replaceInstUsesWith(Cmp, ConstantInt::get(Cmp.getType(), *Imp)); in foldICmpWithDominatingICmp()
1488 Value *X = Cmp.getOperand(0), *Y = Cmp.getOperand(1); in foldICmpWithDominatingICmp()
1519 if (Cmp.isEquality() || (IsSignBit && hasBranchUse(Cmp))) in foldICmpWithDominatingICmp()
1722 return replaceInstUsesWith(Cmp, ConstantInt::getTrue(Cmp.getType())); in foldICmpAndShift()
2542 if (!Cmp.isEquality() && DivIsSigned != Cmp.isSigned()) in foldICmpDivConstant()
2703 ((Cmp.isUnsigned() && HasNUW) || (Cmp.isSigned() && HasNSW)) && in foldICmpSubConstant()
2800 if (Cmp.isSigned()) { in foldICmpAddConstant()
3459 if (Cmp.isEquality()) in foldICmpIntrinsicWithConstant()
5943 if (match(&Cmp, in foldICmpWithHighBitMask()
[all …]
H A DInstCombineInternal.h672 Instruction *foldICmpUsingKnownBits(ICmpInst &Cmp);
673 Instruction *foldICmpWithDominatingICmp(ICmpInst &Cmp);
674 Instruction *foldICmpWithConstant(ICmpInst &Cmp);
675 Instruction *foldICmpInstWithConstant(ICmpInst &Cmp);
676 Instruction *foldICmpInstWithConstantNotInt(ICmpInst &Cmp);
677 Instruction *foldICmpInstWithConstantAllowUndef(ICmpInst &Cmp,
680 Instruction *foldICmpEquality(ICmpInst &Cmp);
683 Instruction *foldICmpWithZero(ICmpInst &Cmp);
685 Value *foldMultiplicationOverflowCheck(ICmpInst &Cmp);
724 Instruction *foldICmpBinOpEqualityWithConstant(ICmpInst &Cmp,
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64ConditionOptimizer.cpp112 CmpInfo adjustCmp(MachineInstr *CmpMI, AArch64CC::CondCode Cmp);
230 static AArch64CC::CondCode getAdjustedCmp(AArch64CC::CondCode Cmp) { in getAdjustedCmp() argument
231 switch (Cmp) { in getAdjustedCmp()
244 MachineInstr *CmpMI, AArch64CC::CondCode Cmp) { in adjustCmp() argument
251 int Correction = (Cmp == AArch64CC::GT) ? 1 : -1; in adjustCmp()
267 return CmpInfo(NewImm, Opc, getAdjustedCmp(Cmp)); in adjustCmp()
275 AArch64CC::CondCode Cmp; in modifyCmp() local
276 std::tie(Imm, Opc, Cmp) = Info; in modifyCmp()
294 .addImm(Cmp) in modifyCmp()
318 AArch64CC::CondCode Cmp, MachineInstr *To, int ToImm) in adjustTo() argument
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/associative/multiset/multiset.cons/
H A Dinitializer_list_compare.pass.cpp24 typedef test_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()
H A Dinitializer_list_compare_alloc.pass.cpp25 typedef test_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()
/llvm-project-15.0.7/llvm/test/CodeGen/Thumb2/
H A 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
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DSIOptimizeExecMaskingPreRA.cpp148 auto *Cmp = TRI->findReachingDef(CmpReg, CmpSubReg, *And, *MRI, LIS); in optimizeVcndVcmpPair() local
149 if (!Cmp || !(Cmp->getOpcode() == AMDGPU::V_CMP_NE_U32_e32 || in optimizeVcndVcmpPair()
150 Cmp->getOpcode() == AMDGPU::V_CMP_NE_U32_e64) || in optimizeVcndVcmpPair()
151 Cmp->getParent() != And->getParent()) in optimizeVcndVcmpPair()
154 MachineOperand *Op1 = TII->getNamedOperand(*Cmp, AMDGPU::OpName::src0); in optimizeVcndVcmpPair()
155 MachineOperand *Op2 = TII->getNamedOperand(*Cmp, AMDGPU::OpName::src1); in optimizeVcndVcmpPair()
219 SlotIndex CmpIdx = LIS->getInstructionIndex(*Cmp); in optimizeVcndVcmpPair()
270 std::none_of(std::next(Cmp->getIterator()), Andn2->getIterator(), in optimizeVcndVcmpPair()
274 LLVM_DEBUG(dbgs() << "Erasing: " << *Cmp << '\n'); in optimizeVcndVcmpPair()
277 LIS->RemoveMachineInstrFromMaps(*Cmp); in optimizeVcndVcmpPair()
[all …]
/llvm-project-15.0.7/llvm/utils/TableGen/
H A DOptEmitter.cpp54 if (int Cmp = StrCmpOptionName(A->getValueAsString("Name").str().c_str(), in CompareOptionRecords() local
56 return Cmp; in CompareOptionRecords()
67 if (int Cmp = StrCmpOptionName(APre->str().c_str(), BPre->str().c_str())) in CompareOptionRecords() local
68 return Cmp; in CompareOptionRecords()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/performance/
H A Dinefficient-algorithm.cpp14 template <typename K, typename Cmp = less<K>> struct set {
27 template <typename K, typename V, typename Cmp = less<K>> struct map {
44 template <typename K, typename Cmp = less<K>> struct multiset : set<K, Cmp> {};
49 template <typename FwIt, typename K, typename Cmp>
50 FwIt find(FwIt, FwIt end, const K &, Cmp) { return end; } in find() argument
/llvm-project-15.0.7/clang/test/CXX/class/class.compare/class.compare.default/
H A Dp1.cpp69 struct Cmp { Cmp(std::strong_ordering); }; in g() struct
70 Cmp operator<=>(const A&, const A&); in g()
71 bool operator!=(const Cmp&, int); in g()
74 Cmp operator<=>(const B &) const = default; in g()
/llvm-project-15.0.7/llvm/test/CodeGen/Mips/msa/
H A 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
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp316 if (Cmp->getType()->isVectorTy() || in processICmp()
320 if (!Cmp->isSigned()) in processICmp()
325 Cmp->getPredicate(), LVI->getConstantRange(Cmp->getOperand(0), Cmp), in processICmp()
326 LVI->getConstantRange(Cmp->getOperand(1), Cmp)); in processICmp()
332 Cmp->setPredicate(UnsignedPred); in processICmp()
342 Value *Op0 = Cmp->getOperand(0); in constantFoldCmp()
348 LVI->getPredicateAt(Cmp->getPredicate(), Op0, C, Cmp, in constantFoldCmp()
355 Cmp->replaceAllUsesWith(TorF); in constantFoldCmp()
356 Cmp->eraseFromParent(); in constantFoldCmp()
361 if (constantFoldCmp(Cmp, LVI)) in processCmp()
[all …]

12345678