| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | catch-implicit-signed-integer-truncation-or-sign-change-CompoundAssignOperator.c | 133 (*LHS) += RHS; in unsigned_char_add_signed_char_unsigned_char() 166 (*LHS) += RHS; in unsigned_char_add_signed_char_signed_char() 172 (*LHS) += RHS; in unsigned_char_add_signed_char_unsigned_int() 204 (*LHS) += RHS; in unsigned_char_add_signed_char_signed_int() 237 (*LHS) += RHS; in signed_char_add_unsigned_char() 270 (*LHS) += RHS; in signed_char_add_signed_char() 305 (*LHS) += RHS; in signed_char_add_signed_char_unsigned_int() 337 (*LHS) += RHS; in signed_char_add_signed_char_signed_int() 374 (*LHS) -= RHS; in unsigned_char_sub_signed_char_unsigned_char() 407 (*LHS) -= RHS; in unsigned_char_sub_signed_char_signed_char() [all …]
|
| H A D | catch-implicit-integer-sign-changes-CompoundAssignOperator.c | 133 (*LHS) += RHS; in unsigned_char_add_signed_char_unsigned_char() 166 (*LHS) += RHS; in unsigned_char_add_signed_char_signed_char() 172 (*LHS) += RHS; in unsigned_char_add_signed_char_unsigned_int() 204 (*LHS) += RHS; in unsigned_char_add_signed_char_signed_int() 238 (*LHS) += RHS; in signed_char_add_unsigned_char() 272 (*LHS) += RHS; in signed_char_add_signed_char() 304 (*LHS) += RHS; in signed_char_add_signed_char_unsigned_int() 337 (*LHS) += RHS; in signed_char_add_signed_char_signed_int() 374 (*LHS) -= RHS; in unsigned_char_sub_signed_char_unsigned_char() 407 (*LHS) -= RHS; in unsigned_char_sub_signed_char_signed_char() [all …]
|
| H A D | catch-implicit-integer-truncations-CompoundAssignOperator.c | 141 (*LHS) += RHS; in unsigned_char_add_signed_char_unsigned_char() 174 (*LHS) += RHS; in unsigned_char_add_signed_char_signed_char() 206 (*LHS) += RHS; in unsigned_char_add_signed_char_unsigned_int() 238 (*LHS) += RHS; in unsigned_char_add_signed_char_signed_int() 271 (*LHS) += RHS; in signed_char_add_unsigned_char() 304 (*LHS) += RHS; in signed_char_add_signed_char() 336 (*LHS) += RHS; in signed_char_add_signed_char_unsigned_int() 368 (*LHS) += RHS; in signed_char_add_signed_char_signed_int() 405 (*LHS) -= RHS; in unsigned_char_sub_signed_char_unsigned_char() 438 (*LHS) -= RHS; in unsigned_char_sub_signed_char_signed_char() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.path/path.member/ |
| H A D | path.concat.pass.cpp | 101 path LHS(L); PathReserve(LHS, ReserveSize); in doConcatSourceAllocTest() local 105 LHS += RHS; in doConcatSourceAllocTest() 111 path LHS(L); PathReserve(LHS, ReserveSize); in doConcatSourceAllocTest() local 121 path LHS(L); PathReserve(LHS, ReserveSize); in doConcatSourceAllocTest() local 130 path LHS(L); PathReserve(LHS, ReserveSize); in doConcatSourceAllocTest() local 150 path LHS(L); PathReserve(LHS, ReserveSize); in doConcatSourceAllocTest() local 163 path LHS(L); PathReserve(LHS, ReserveSize); in doConcatSourceAllocTest() local 191 path LHS(L); in doConcatSourceTest() local 198 path LHS(L); in doConcatSourceTest() local 206 path LHS(L); in doConcatSourceTest() local [all …]
|
| H A D | path.append.pass.cpp | 145 path LHS(L); PathReserve(LHS, ReserveSize); in doAppendSourceAllocTest() local 155 path LHS(L); PathReserve(LHS, ReserveSize); in doAppendSourceAllocTest() local 165 path LHS(L); PathReserve(LHS, ReserveSize); in doAppendSourceAllocTest() local 174 path LHS(L); PathReserve(LHS, ReserveSize); in doAppendSourceAllocTest() local 183 path LHS(L); PathReserve(LHS, ReserveSize); in doAppendSourceAllocTest() local 206 path LHS(L); PathReserve(LHS, ReserveSize); in doAppendSourceAllocTest() local 219 path LHS(L); PathReserve(LHS, ReserveSize); in doAppendSourceAllocTest() local 254 path LHS(L); in doAppendSourceTest() local 262 path LHS(L); in doAppendSourceTest() local 269 path LHS(L); in doAppendSourceTest() local [all …]
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | AliasAnalysisSummary.h | 120 return LHS.Index == RHS.Index && LHS.DerefLevel == RHS.DerefLevel; 127 (LHS.Index == RHS.Index && LHS.DerefLevel < RHS.DerefLevel); 130 return RHS < LHS; 133 return !(RHS < LHS); 148 return LHS + RHS; in addOffset() 159 return LHS.From == RHS.From && LHS.To == RHS.To && LHS.Offset == RHS.Offset; 176 return RHS < LHS; 210 return LHS.Val == RHS.Val && LHS.DerefLevel == RHS.DerefLevel; 217 (LHS.Val == RHS.Val && LHS.DerefLevel < RHS.DerefLevel); 220 return RHS < LHS; [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Remarks/ |
| H A D | Remark.h | 119 if (!LHS && !RHS) 121 if (!LHS && RHS) 123 if (LHS && !RHS) 125 return *LHS < *RHS; 139 return std::make_tuple(LHS.SourceFilePath, LHS.SourceLine, LHS.SourceColumn) < 144 return LHS.Key == RHS.Key && LHS.Val == RHS.Val && LHS.Loc == RHS.Loc; 152 return std::make_tuple(LHS.Key, LHS.Val, LHS.Loc) < 159 LHS.FunctionName == RHS.FunctionName && LHS.Loc == RHS.Loc && 160 LHS.Hotness == RHS.Hotness && LHS.Args == RHS.Args; 168 return std::make_tuple(LHS.RemarkType, LHS.PassName, LHS.RemarkName, [all …]
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | KnownBits.cpp | 35 APInt LHSKnownUnion = LHS.Zero | LHS.One; in computeForAddCarry() 123 return LHS; in umax() 174 Known = LHS; in shl() 227 Known = LHS; in lshr() 280 Known = LHS; in ashr() 336 if (LHS.One.intersects(RHS.Zero) || RHS.One.intersects(LHS.Zero)) in eq() 364 return ugt(RHS, LHS); in ult() 368 return uge(RHS, LHS); in ule() 484 unsigned TrailBitsKnown0 = (LHS.Zero | LHS.One).countTrailingOnes(); in mul() 583 if (LHS.isNonNegative() || LowBits.isSubsetOf(LHS.Zero)) in srem() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | Twine.h | 160 Child LHS; variable 180 this->LHS.twine = &LHS; in Twine() 187 : LHS(LHS), RHS(RHS), LHSKind(LHSKind), RHSKind(RHSKind) { in Twine() 342 LHS.decUI = Val; in Twine() 347 LHS.decI = Val; in Twine() 378 this->LHS.cString = LHS; in Twine() 387 this->LHS.ptrAndLength.ptr = LHS.data(); in Twine() 388 this->LHS.ptrAndLength.length = LHS.size(); in Twine() 409 Child LHS, RHS; in utohexstr() local 470 return StringRef(LHS.ptrAndLength.ptr, LHS.ptrAndLength.length); in getSingleStringRef() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | TypeSize.h | 65 return LHS; 71 return LHS; 77 return LHS; 81 LeafTy Copy = LHS; 86 LeafTy Copy = LHS; 91 LeafTy Copy = LHS; 98 LeafTy Copy = LHS; 184 return LHS; 190 return LHS; 194 LHS.Value *= RHS; [all …]
|
| H A D | KnownBits.h | 309 return KnownBits(LHS.Zero & RHS.Zero, LHS.One & RHS.One); in commonBits() 314 return (LHS.Zero | RHS.Zero).isAllOnes(); in haveNoCommonBitsSet() 429 LHS &= RHS; 430 return LHS; 434 RHS &= LHS; 439 LHS |= RHS; 440 return LHS; 444 RHS |= LHS; 449 LHS ^= RHS; 450 return LHS; [all …]
|
| H A D | SMTAPI.h | 68 return LHS.equal_to(RHS); 115 return LHS.equal_to(RHS); 279 virtual SMTExprRef mkBVConcat(const SMTExprRef &LHS, 284 virtual SMTExprRef mkBVAddNoOverflow(const SMTExprRef &LHS, 290 virtual SMTExprRef mkBVAddNoUnderflow(const SMTExprRef &LHS, 295 virtual SMTExprRef mkBVSubNoOverflow(const SMTExprRef &LHS, 300 virtual SMTExprRef mkBVSubNoUnderflow(const SMTExprRef &LHS, 306 virtual SMTExprRef mkBVSDivNoOverflow(const SMTExprRef &LHS, 315 virtual SMTExprRef mkBVMulNoOverflow(const SMTExprRef &LHS, 321 virtual SMTExprRef mkBVMulNoUnderflow(const SMTExprRef &LHS, [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | MatrixBuilder.h | 50 LHS = B.CreateVectorSplat( in splatScalarOperandIfNeeded() 54 return {LHS, RHS}; in splatScalarOperandIfNeeded() 168 LHS = B.CreateVectorSplat( in CreateAdd() 176 ? B.CreateFAdd(LHS, RHS) in CreateAdd() 177 : B.CreateAdd(LHS, RHS); in CreateAdd() 193 LHS = B.CreateVectorSplat( in CreateSub() 201 ? B.CreateFSub(LHS, RHS) in CreateSub() 208 std::tie(LHS, RHS) = splatScalarOperandIfNeeded(LHS, RHS); in CreateScalarMultiply() 210 return B.CreateFMul(LHS, RHS); in CreateScalarMultiply() 211 return B.CreateMul(LHS, RHS); in CreateScalarMultiply() [all …]
|
| H A D | PatternMatch.h | 979 inline BinaryOp_match<LHS, RHS, Instruction::Add> m_Add(const LHS &L, in m_Add() 991 inline BinaryOp_match<LHS, RHS, Instruction::Sub> m_Sub(const LHS &L, in m_Sub() 1045 inline BinaryOp_match<LHS, RHS, Instruction::Mul> m_Mul(const LHS &L, in m_Mul() 1093 inline BinaryOp_match<LHS, RHS, Instruction::And> m_And(const LHS &L, in m_And() 1099 inline BinaryOp_match<LHS, RHS, Instruction::Or> m_Or(const LHS &L, in m_Or() 1105 inline BinaryOp_match<LHS, RHS, Instruction::Xor> m_Xor(const LHS &L, in m_Xor() 1111 inline BinaryOp_match<LHS, RHS, Instruction::Shl> m_Shl(const LHS &L, in m_Shl() 1296 inline BinOpPred_match<LHS, RHS, is_shift_op> m_Shift(const LHS &L, in m_Shift() 1324 inline BinOpPred_match<LHS, RHS, is_idiv_op> m_IDiv(const LHS &L, in m_IDiv() 1331 inline BinOpPred_match<LHS, RHS, is_irem_op> m_IRem(const LHS &L, in m_IRem() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/APINotes/ |
| H A D | Types.h | 117 LHS.SwiftPrivate == RHS.SwiftPrivate && LHS.SwiftName == RHS.SwiftName; 122 return !(LHS == RHS); 189 return !(LHS == RHS); 295 return !(LHS == RHS); 346 LHS.Nullable == RHS.Nullable && LHS.Type == RHS.Type; 350 return !(LHS == RHS); 406 return !(LHS == RHS); 474 return !(LHS == RHS); 588 LHS.ResultType == RHS.ResultType && LHS.Params == RHS.Params && 593 return !(LHS == RHS); [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/any/any.class/any.assign/ |
| H A D | move.pass.cpp | 26 template <class LHS, class RHS> 28 assert(LHS::count == 0); in test_move_assign() 31 LHS const s1(1); in test_move_assign() 50 assert(LHS::count == 0); in test_move_assign() 54 template <class LHS> 56 assert(LHS::count == 0); in test_move_assign_empty() 59 std::any a2 = LHS(1); in test_move_assign_empty() 73 assert(LHS::count == 0); in test_move_assign_empty() 75 std::any a = LHS(1); in test_move_assign_empty() 84 assertEmpty<LHS>(a); in test_move_assign_empty() [all …]
|
| H A D | copy.pass.cpp | 27 template <class LHS, class RHS> 29 assert(LHS::count == 0); in test_copy_assign() 31 LHS::reset(); in test_copy_assign() 34 std::any lhs = LHS(1); in test_copy_assign() 50 assert(LHS::count == 0); in test_copy_assign() 54 template <class LHS> 56 assert(LHS::count == 0); in test_copy_assign_empty() 57 LHS::reset(); in test_copy_assign_empty() 73 assert(LHS::count == 0); in test_copy_assign_empty() 74 LHS::reset(); in test_copy_assign_empty() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/ |
| H A D | less_comp.pass.cpp | 29 const C LHS = C::from_address(LHSVal); in do_test() local 31 assert((LHS < RHS) == (LHSVal < RHSVal)); in do_test() 32 assert((RHS < LHS) == (RHSVal < LHSVal)); in do_test() 33 assert((LHS > RHS) == (LHSVal > RHSVal)); in do_test() 34 assert((RHS > LHS) == (RHSVal > LHSVal)); in do_test() 35 assert((LHS <= RHS) == (LHSVal <= RHSVal)); in do_test() 36 assert((RHS <= LHS) == (RHSVal <= LHSVal)); in do_test() 40 static_assert(noexcept(LHS < RHS), ""); in do_test() 41 static_assert(noexcept(LHS > RHS), ""); in do_test() 42 static_assert(noexcept(LHS <= RHS), ""); in do_test() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/ |
| H A D | less_comp.pass.cpp | 35 assert((LHS < RHS) == (LHSVal < RHSVal)); in do_test() 36 assert((RHS < LHS) == (RHSVal < LHSVal)); in do_test() 37 assert((LHS > RHS) == (LHSVal > RHSVal)); in do_test() 38 assert((RHS > LHS) == (RHSVal > LHSVal)); in do_test() 39 assert((LHS <= RHS) == (LHSVal <= RHSVal)); in do_test() 40 assert((RHS <= LHS) == (RHSVal <= LHSVal)); in do_test() 41 assert((LHS >= RHS) == (LHSVal >= RHSVal)); in do_test() 44 static_assert(noexcept(LHS < RHS), ""); in do_test() 45 static_assert(noexcept(LHS > RHS), ""); in do_test() 46 static_assert(noexcept(LHS <= RHS), ""); in do_test() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | Thunk.h | 73 return LHS.NonVirtual == RHS.NonVirtual && LHS.Virtual.Equals(RHS.Virtual); 78 return !(LHS == RHS); 81 friend bool operator<(const ReturnAdjustment &LHS, 83 if (LHS.NonVirtual < RHS.NonVirtual) 86 return LHS.NonVirtual == RHS.NonVirtual && LHS.Virtual.Less(RHS.Virtual); 139 return LHS.NonVirtual == RHS.NonVirtual && LHS.Virtual.Equals(RHS.Virtual); 143 return !(LHS == RHS); 147 if (LHS.NonVirtual < RHS.NonVirtual) 150 return LHS.NonVirtual == RHS.NonVirtual && LHS.Virtual.Less(RHS.Virtual); 177 return LHS.This == RHS.This && LHS.Return == RHS.Return && [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/DebugInfo/CodeView/ |
| H A D | GUID.h | 25 inline bool operator==(const GUID &LHS, const GUID &RHS) { 26 return 0 == ::memcmp(LHS.Guid, RHS.Guid, sizeof(LHS.Guid)); 29 inline bool operator<(const GUID &LHS, const GUID &RHS) { 30 return ::memcmp(LHS.Guid, RHS.Guid, sizeof(LHS.Guid)) < 0; 33 inline bool operator<=(const GUID &LHS, const GUID &RHS) { 34 return ::memcmp(LHS.Guid, RHS.Guid, sizeof(LHS.Guid)) <= 0; 37 inline bool operator>(const GUID &LHS, const GUID &RHS) { 38 return !(LHS <= RHS); 41 inline bool operator>=(const GUID &LHS, const GUID &RHS) { 42 return !(LHS < RHS); [all …]
|
| /llvm-project-15.0.7/libc/utils/UnitTest/ |
| H A D | LibcTest.h | 44 bool test(RunContext *Ctx, TestCondition Cond, ValType LHS, ValType RHS, 105 return internal::test(Ctx, Cond, (unsigned long long)LHS, in test() 109 bool testStrEq(const char *LHS, const char *RHS, const char *LHSStr, 308 this->test(__llvm_libc::testing::Cond_EQ, (LHS), (RHS), #LHS, #RHS, \ 315 this->test(__llvm_libc::testing::Cond_NE, (LHS), (RHS), #LHS, #RHS, \ 322 this->test(__llvm_libc::testing::Cond_LT, (LHS), (RHS), #LHS, #RHS, \ 329 this->test(__llvm_libc::testing::Cond_LE, (LHS), (RHS), #LHS, #RHS, \ 336 this->test(__llvm_libc::testing::Cond_GT, (LHS), (RHS), #LHS, #RHS, \ 343 this->test(__llvm_libc::testing::Cond_GE, (LHS), (RHS), #LHS, #RHS, \ 350 this->testStrEq((LHS), (RHS), #LHS, #RHS, __FILE__, __LINE__) [all …]
|
| /llvm-project-15.0.7/clang/lib/Tooling/ |
| H A D | NodeIntrospection.cpp | 45 static bool locationCallLessThan(const LocationCall *LHS, in locationCallLessThan() argument 47 if (!LHS && !RHS) in locationCallLessThan() 49 if (LHS && !RHS) in locationCallLessThan() 51 if (!LHS && RHS) in locationCallLessThan() 53 auto compareResult = LHS->name().compare(RHS->name()); in locationCallLessThan() 58 return locationCallLessThan(LHS->on(), RHS->on()); in locationCallLessThan() 64 if (LHS.first.getBegin() < RHS.first.getBegin()) in operator ()() 69 if (LHS.first.getEnd() < RHS.first.getEnd()) in operator ()() 71 else if (LHS.first.getEnd() != RHS.first.getEnd()) in operator ()() 79 if (LHS.first == RHS.first) in operator ()() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | MIPatternMatch.h | 367 BinaryOp_match(const LHS_P &LHS, const RHS_P &RHS) : L(LHS), R(RHS) {} 409 inline BinaryOpc_match<LHS, RHS, false> m_BinOp(unsigned Opcode, const LHS &L, 422 m_GAdd(const LHS &L, const RHS &R) { 433 inline BinaryOp_match<LHS, RHS, TargetOpcode::G_SUB> m_GSub(const LHS &L, 440 m_GMul(const LHS &L, const RHS &R) { 464 m_GAnd(const LHS &L, const RHS &R) { 470 m_GXor(const LHS &L, const RHS &R) { 475 inline BinaryOp_match<LHS, RHS, TargetOpcode::G_OR, true> m_GOr(const LHS &L, 482 m_GShl(const LHS &L, const RHS &R) { 514 UnaryOp_match(const SrcTy &LHS) : L(LHS) {} [all …]
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | SMTConv.h | 125 return isSigned ? Solver->mkBVSlt(LHS, RHS) : Solver->mkBVUlt(LHS, RHS); in fromBinOp() 128 return isSigned ? Solver->mkBVSgt(LHS, RHS) : Solver->mkBVUgt(LHS, RHS); in fromBinOp() 131 return isSigned ? Solver->mkBVSle(LHS, RHS) : Solver->mkBVUle(LHS, RHS); in fromBinOp() 630 LHS = fromCast(Solver, LHS, RTy, RBitWidth, LTy, LBitWidth); in doTypeConversion() 682 LHS = (*doCast)(Solver, LHS, NewTy, NewBitWidth, LTy, LBitWidth); in doIntTypeConversion() 709 LHS = (*doCast)(Solver, LHS, RTy, RBitWidth, LTy, LBitWidth); in doIntTypeConversion() 719 LHS = (*doCast)(Solver, LHS, RTy, RBitWidth, LTy, LBitWidth); in doIntTypeConversion() 730 LHS = (*doCast)(Solver, LHS, RTy, RBitWidth, LTy, LBitWidth); in doIntTypeConversion() 742 LHS = (doCast)(Solver, LHS, RTy, RBitWidth, LTy, LBitWidth); in doIntTypeConversion() 760 LHS = (*doCast)(Solver, LHS, RTy, RBitWidth, LTy, LBitWidth); in doFloatTypeConversion() [all …]
|