/llvm-project/compiler-rt/lib/sanitizer_common/tests/ |
H A D | sanitizer_array_ref_test.cpp | 52 EXPECT_TRUE(ar1.drop_back().equals(ar2)); in TEST() 59 EXPECT_TRUE(ar1.drop_front(2).equals(ar2)); in TEST() 66 EXPECT_TRUE(ar1.take_back().equals(ar2)); in TEST() 73 EXPECT_TRUE(ar1.take_front(2).equals(ar2)); in TEST() 79 EXPECT_TRUE(ar1.equals(std::vector<int>({1, 2, 3, 4, 5, 6, 7, 8}))); in TEST() 80 EXPECT_FALSE(ar1.equals(std::vector<int>({8, 1, 2, 4, 5, 6, 6, 7}))); in TEST() 81 EXPECT_FALSE(ar1.equals(std::vector<int>({2, 4, 5, 6, 6, 7, 8, 1}))); in TEST() 82 EXPECT_FALSE(ar1.equals(std::vector<int>({0, 1, 2, 4, 5, 6, 6, 7}))); in TEST() 83 EXPECT_FALSE(ar1.equals(std::vector<int>({1, 2, 42, 4, 5, 6, 7, 8}))); in TEST() 84 EXPECT_FALSE(ar1.equals(std::vector<int>({42, 2, 3, 4, 5, 6, 7, 8}))); in TEST() [all …]
|
/llvm-project/llvm/unittests/ADT/ |
H A D | ArrayRefTest.cpp | 52 EXPECT_TRUE(Array1.equals(Array1c)); in TEST() 54 EXPECT_TRUE(Array2.equals(Array2c)); in TEST() 91 EXPECT_TRUE(AR1.drop_back().equals(AR2)); in TEST() 98 EXPECT_TRUE(AR1.drop_front(2).equals(AR2)); in TEST() 127 EXPECT_TRUE(AR1.take_back().equals(AR2)); in TEST() 134 EXPECT_TRUE(AR1.take_front(2).equals(AR2)); in TEST() 162 EXPECT_TRUE(AR1.equals({1, 2, 3, 4, 5, 6, 7, 8})); in TEST() 163 EXPECT_FALSE(AR1.equals({8, 1, 2, 4, 5, 6, 6, 7})); in TEST() 164 EXPECT_FALSE(AR1.equals({2, 4, 5, 6, 6, 7, 8, 1})); in TEST() 165 EXPECT_FALSE(AR1.equals({0, 1, 2, 4, 5, 6, 6, 7})); in TEST() [all …]
|
/llvm-project/llvm/utils/lit/tests/Inputs/shtest-define/ |
H A D | value-equals.txt | 3 # DEFINE: %{equals} = FileCheck -check-prefixes=FOO,BAR 4 # RUN: echo '%{equals}' 7 # REDEFINE: %{equals} == == = 8 # RUN: echo '%{equals}' 11 # DEFINE: %{continue-equals} = FileCheck -strict-whitespace -match-full-lines \ 13 # RUN: echo '%{continue-equals}' 16 # REDEFINE: %{continue-equals} = FileCheck -input-file=test.txt \ 19 # RUN: echo '%{continue-equals}'
|
/llvm-project/mlir/test/IR/ |
H A D | operation-equality.mlir | 5 // CHECK-SAME: compares equals 13 // CHECK-SAME: compares NOT equals 21 // CHECK-SAME: compares equals 29 // CHECK-SAME: compares NOT equals 41 // CHECK-SAME: compares equals 53 // CHECK-SAME: compares NOT equals 61 // CHECK-SAME: compares NOT equals 69 // CHECK-SAME: compares equals 107 // CHECK-SAME: compares NOT equals 121 // CHECK-SAME: compares NOT equals [all …]
|
/llvm-project/llvm/lib/DebugInfo/LogicalView/Core/ |
H A D | LVType.cpp | 218 if (equals(Target)) in findIn() 236 if (!LVType::equals(&ReferenceTypes, &TargetTypes) || in parametersMatch() 237 !LVScope::equals(&ReferenceScopes, &TargetScopes)) in parametersMatch() 265 bool LVType::equals(const LVType *Type) const { in equals() function in LVType 266 return LVElement::equals(Type); in equals() 269 bool LVType::equals(const LVTypes *References, const LVTypes *Targets) { in equals() function in LVType 352 bool LVTypeDefinition::equals(const LVType *Type) const { in equals() function in LVTypeDefinition 353 return LVType::equals(Type); in equals() 365 bool LVTypeEnumerator::equals(const LVType *Type) const { in equals() function in LVTypeEnumerator 366 return LVType::equals(Type); in equals() [all …]
|
H A D | LVLine.cpp | 114 if (equals(Line)) in findIn() 120 bool LVLine::equals(const LVLine *Line) const { in equals() function in LVLine 121 return LVElement::equals(Line); in equals() 124 bool LVLine::equals(const LVLines *References, const LVLines *Targets) { in equals() function in LVLine 193 bool LVLineDebug::equals(const LVLine *Line) const { in equals() function in LVLineDebug 194 if (!LVLine::equals(Line)) in equals() 214 bool LVLineAssembler::equals(const LVLine *Line) const { in equals() function in LVLineAssembler 215 return LVLine::equals(Line); in equals()
|
H A D | LVScope.cpp | 827 if (LVScope::equals(Target)) in findIn() 849 ? (equals(Candidates[0]) ? Candidates[0] : nullptr) in findIn() 942 bool LVScope::equals(const LVScope *Scope) const { in equals() function in LVScope 943 if (!LVElement::equals(Scope)) in equals() 947 return getParentScope()->equals(Scope->getParentScope()); in equals() 954 if (equals(Scope)) in findEqualScope() 959 bool LVScope::equals(const LVScopes *References, const LVScopes *Targets) { in equals() function in LVScope 1028 bool LVScopeAggregate::equals(const LVScope *Scope) const { in equals() function in LVScopeAggregate 1029 if (!LVScope::equals(Scope)) in equals() 1050 if (equals(Scope)) in findEqualScope() [all …]
|
H A D | LVSymbol.cpp | 326 if (equals(Target)) in findIn() 342 return LVSymbol::equals(&ReferenceParams, &TargetParams); in parametersMatch() 355 bool LVSymbol::equals(const LVSymbol *Symbol) const { in equals() function in LVSymbol 356 if (!LVElement::equals(Symbol)) in equals() 363 if (getReference() && !getReference()->equals(Symbol->getReference())) in equals() 369 bool LVSymbol::equals(const LVSymbols *References, const LVSymbols *Targets) { in equals() function in LVSymbol
|
/llvm-project/clang/test/Analysis/ |
H A D | cxx-uninitialized-object.cpp | 788 …auto equals = [&b](int a) { return a == b; }; // expected-note{{uninitialized pointee 'this->funct… in fLambdaTest2() local 789 LambdaTest2<decltype(equals)>(equals, int()); in fLambdaTest2() 801 auto equals = [&b](int a) { return a == b; }; in fLambdaTest2() local 802 LambdaTest2<decltype(equals)>(equals, int()); in fLambdaTest2() 824 auto equals = [&rec1](LT3Detail::RecordType rec2) { in fLambdaTest3() local 827 LambdaTest3<decltype(equals)>(equals, int()); in fLambdaTest3() 847 auto equals = [&rec1](LT3Detail::RecordType rec2) { in fLambdaTest3() local 850 LambdaTest3<decltype(equals)>(equals, int()); in fLambdaTest3() 864 …auto equals = [&b1, &b2, &b3](int a) { return a == b1 == b2 == b3; }; // expected-note{{uninitiali… in fMultipleLambdaCapturesTest1() local 866 MultipleLambdaCapturesTest1<decltype(equals)>(equals, int()); in fMultipleLambdaCapturesTest1() [all …]
|
/llvm-project/libc/benchmarks/ |
H A D | JSONTest.cpp | 58 auto equals(const HostState &H) -> auto { in equals() function 65 auto equals(const StudyConfiguration &SC) -> auto { in equals() function 76 auto equals(const BenchmarkOptions &BO) -> auto { in equals() function 89 auto equals(const Runtime &RI) -> auto { in equals() function 90 return AllOf(Field(&Runtime::Host, equals(RI.Host)), in equals() 93 Field(&Runtime::BenchmarkOptions, equals(RI.BenchmarkOptions))); in equals() 96 auto equals(const Study &S) -> auto { in equals() function 98 Field(&Study::Runtime, equals(S.Runtime)), in equals() 99 Field(&Study::Configuration, equals(S.Configuration)), in equals() 110 EXPECT_THAT(Parsed, equals(S)) << Serialized << "\n" in TEST()
|
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/hicpp/ |
H A D | use-equals-default.rst | 1 .. title:: clang-tidy - hicpp-use-equals-defaults 3 :http-equiv=refresh: 5;URL=../modernize/use-equals-default.html 5 hicpp-use-equals-default 8 This check is an alias for :doc:`modernize-use-equals-default <../modernize/use-equals-default>`.
|
H A D | use-equals-delete.rst | 1 .. title:: clang-tidy - hicpp-use-equals-delete 3 :http-equiv=refresh: 5;URL=../modernize/use-equals-delete.html 5 hicpp-use-equals-delete 8 This check is an alias for :doc:`modernize-use-equals-delete <../modernize/use-equals-delete>`.
|
/llvm-project/llvm/lib/Target/Xtensa/ |
H A D | XtensaConstantPoolValue.h | 72 if (cast<Derived>(this)->equals(APC)) in getExistingMachineCPValueImpl() 106 bool equals(const XtensaConstantPoolValue *A) const { in equals() function 151 bool equals(const XtensaConstantPoolConstant *A) const { in equals() function 152 return CVal == A->CVal && XtensaConstantPoolValue::equals(A); in equals() 190 bool equals(const XtensaConstantPoolSymbol *A) const { in equals() function 191 return S == A->S && XtensaConstantPoolValue::equals(A); in equals() 224 bool equals(const XtensaConstantPoolMBB *A) const { in equals() function 225 return MBB == A->MBB && XtensaConstantPoolValue::equals(A); in equals() 256 bool equals(const XtensaConstantPoolJumpTable *A) const { in equals() function 257 return Idx == A->Idx && XtensaConstantPoolValue::equals(A); in equals()
|
/llvm-project/llvm/lib/Target/CSKY/ |
H A D | CSKYConstantPoolValue.h | 82 bool equals(const CSKYConstantPoolValue *A) const { in equals() function 96 if (cast<Derived>(this)->equals(APC)) in getExistingMachineCPValueImpl() 132 bool equals(const CSKYConstantPoolConstant *A) const { in equals() function 133 return CVal == A->CVal && CSKYConstantPoolValue::equals(A); in equals() 162 bool equals(const CSKYConstantPoolSymbol *A) const { in equals() function 163 return S == A->S && CSKYConstantPoolValue::equals(A); in equals() 190 bool equals(const CSKYConstantPoolMBB *A) const { in equals() function 191 return MBB == A->MBB && CSKYConstantPoolValue::equals(A); in equals() 217 bool equals(const CSKYConstantPoolJT *A) const { in equals() function 218 return JTI == A->JTI && CSKYConstantPoolValue::equals(A); in equals()
|
/llvm-project/libcxx/test/std/atomics/atomics.ref/ |
H A D | test_helper.h | 25 bool equals(T x, T y) { in equals() function 64 while (!equals(load_op(x), new_value)) { in test_seq_cst() 67 if (!equals(load_op(y), new_value)) { in test_seq_cst() 73 while (!equals(load_op(y), new_value)) { in test_seq_cst() 76 if (!equals(load_op(x), new_value)) { in test_seq_cst() 114 while (!equals(load_op(at), new_value)) { in test_acquire_release()
|
/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMConstantPoolValue.h | 87 if (cast<Derived>(this)->equals(APC)) in getExistingMachineCPValueImpl() 123 bool equals(const ARMConstantPoolValue *A) const { in equals() function 203 bool equals(const ARMConstantPoolConstant *A) const { in equals() function 204 return CVal == A->CVal && ARMConstantPoolValue::equals(A); in equals() 238 bool equals(const ARMConstantPoolSymbol *A) const { in equals() function 239 return S == A->S && ARMConstantPoolValue::equals(A); in equals() 274 bool equals(const ARMConstantPoolMBB *A) const { in equals() function 275 return MBB == A->MBB && ARMConstantPoolValue::equals(A); in equals()
|
/llvm-project/llvm/include/llvm/Transforms/Scalar/ |
H A D | GVNExpression.h | 88 return equals(Other); 100 virtual bool equals(const Expression &Other) const { return true; } in equals() function 105 return getExpressionType() == Other.getExpressionType() && equals(Other); in exactlyEquals() 213 bool equals(const Expression &Other) const override { in equals() function 289 bool equals(const Expression &Other) const override { in equals() function 290 if (!this->BasicExpression::equals(Other)) in equals() 318 bool equals(const Expression &Other) const override; 359 bool equals(const Expression &Other) const override; 398 bool equals(const Expression &Other) const override; 460 bool equals(cons in equals() 454 bool equals(const Expression &Other) const override { equals() function 521 bool equals(const Expression &Other) const override { equals() function 569 bool equals(const Expression &Other) const override { equals() function 606 bool equals(const Expression &Other) const override { equals() function 642 bool equals(const Expression &Other) const override { equals() function [all...] |
/llvm-project/clang/test/SemaCXX/ |
H A D | constexpr-default-arg.cpp | 6 constexpr bool equals(const float& arg = 1.0f) { in equals() function 27 static_assert(equals() && equals(), ""); in test_default_arg2()
|
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/modernize/ |
H A D | use-default.rst | 5 :http-equiv=refresh: 5;URL=../modernize/use-equals-default.html 11 :doc:`modernize-use-equals-default <../modernize/use-equals-default>`.
|
/llvm-project/llvm/include/llvm/DebugInfo/LogicalView/Core/ |
H A D | LVType.h | 130 virtual bool equals(const LVType *Type) const; 134 static bool equals(const LVTypes *References, const LVTypes *Targets); 165 bool equals(const LVType *Type) const override; 194 bool equals(const LVType *Type) const override; 208 bool equals(const LVType *Type) const override; 237 bool equals(const LVType *Type) const override; 282 bool equals(const LVType *Type) const override;
|
H A D | LVLine.h | 96 virtual bool equals(const LVLine *Line) const; 100 static bool equals(const LVLines *References, const LVLines *Targets); 137 bool equals(const LVLine *Line) const override; 156 bool equals(const LVLine *Line) const override;
|
H A D | LVScope.h | 300 virtual bool equals(const LVScope *Scope) const; 304 static bool equals(const LVScopes *References, const LVScopes *Targets); 354 bool equals(const LVScope *Scope) const override; 375 bool equals(const LVScope *Scope) const override; 391 bool equals(const LVScope *Scope) const override; 608 bool equals(const LVScope *Scope) const override; 625 bool equals(const LVScope *Scope) const override; 640 bool equals(const LVScope *Scope) const override; 688 bool equals(const LVScope *Scope) const override; 731 bool equals(const LVScope *Scope) const override; [all …]
|
/llvm-project/bolt/lib/Core/ |
H A D | MCPlusBuilder.cpp | 39 bool MCPlusBuilder::equals(const MCInst &A, const MCInst &B, in equals() function in MCPlusBuilder 49 if (!equals(A.getOperand(Index), B.getOperand(Index), Comp)) in equals() 55 bool MCPlusBuilder::equals(const MCOperand &A, const MCOperand &B, in equals() function in MCPlusBuilder 76 return equals(*A.getExpr(), *B.getExpr(), Comp); in equals() 83 bool MCPlusBuilder::equals(const MCExpr &A, const MCExpr &B, in equals() function in MCPlusBuilder 106 equals(*UnaryA.getSubExpr(), *UnaryB.getSubExpr(), Comp); in equals() 113 equals(*BinaryA.getLHS(), *BinaryB.getLHS(), Comp) && in equals() 114 equals(*BinaryA.getRHS(), *BinaryB.getRHS(), Comp); in equals() 120 return equals(TargetExprA, TargetExprB, Comp); in equals() 127 bool MCPlusBuilder::equals(const MCTargetExpr &A, const MCTargetExpr &B, in equals() function in MCPlusBuilder
|
/llvm-project/clang-tools-extra/clang-tidy/readability/ |
H A D | UseAnyOfAllOfCheck.cpp | 44 return returnStmt(hasReturnValue(cxxBoolLiteral(equals(V)))); in registerMatchers() 48 returnStmt(hasReturnValue(unless(cxxBoolLiteral(equals(true))))); in registerMatchers() 50 returnStmt(hasReturnValue(unless(cxxBoolLiteral(equals(false))))); in registerMatchers()
|
/llvm-project/clang/unittests/ASTMatchers/ |
H A D | ASTMatchersNodeTest.cpp | 998 hasUnaryOperand(integerLiteral(equals(10)))))); 1008 EXPECT_TRUE(matches("double i = 5.0;", floatLiteral(equals(5.0)))); in TEST_P() 1009 EXPECT_TRUE(matches("double i = 5.0;", floatLiteral(equals(5.0f)))); in TEST_P() 1011 matches("double i = 5.0;", floatLiteral(equals(llvm::APFloat(5.0))))); in TEST_P() 1014 EXPECT_TRUE(notMatches("double i = 5.0;", floatLiteral(equals(6.0)))); 1015 EXPECT_TRUE(notMatches("double i = 5.0;", floatLiteral(equals(6.0f)))); in TEST_P() 1017 notMatches("double i = 5.0;", floatLiteral(equals(llvm::APFloat(6.0))))); in TEST_P() 1070 hasDescendant(floatLiteral(equals(1.0))), 1071 hasDescendant(integerLiteral(equals(2))))), in TEST_P() 1073 hasDescendant(floatLiteral(equals(2. in TEST_P() [all...] |