Home
last modified time | relevance | path

Searched refs:RHS (Results 1 – 25 of 1117) sorted by relevance

12345678910>>...45

/llvm-project-15.0.7/clang/test/CodeGen/
H A Dcatch-implicit-signed-integer-truncation-or-sign-change-CompoundAssignOperator.c133 (*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 Dcatch-implicit-integer-sign-changes-CompoundAssignOperator.c133 (*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 Dcatch-implicit-integer-truncations-CompoundAssignOperator.c141 (*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/llvm/lib/Support/
H A DSmallPtrSet.cpp152 if (RHS.isSmall()) { in CopyFrom()
167 CopyHelper(RHS); in CopyFrom()
175 std::copy(RHS.CurArray, RHS.EndPointer(), CurArray); in CopyHelper()
192 if (RHS.isSmall()) { in MoveHelper()
195 std::copy(RHS.CurArray, RHS.CurArray + RHS.NumNonEmpty, CurArray); in MoveHelper()
198 RHS.CurArray = RHS.SmallArray; in MoveHelper()
208 assert(RHS.CurArray == RHS.SmallArray); in MoveHelper()
230 assert(RHS.CurArray == RHS.SmallArray); in swap()
231 std::copy(RHS.CurArray, RHS.CurArray + RHS.NumNonEmpty, this->SmallArray); in swap()
250 RHS.CurArray = RHS.SmallArray; in swap()
[all …]
H A DKnownBits.cpp36 APInt RHSKnownUnion = RHS.Zero | RHS.One; in computeForAddCarry()
66 std::swap(RHS.Zero, RHS.One); in computeForAddSub()
125 return RHS; in umax()
172 if (RHS.isConstant() && RHS.getConstant().ult(BitWidth)) { in shl()
225 if (RHS.isConstant() && RHS.getConstant().ult(BitWidth)) { in lshr()
278 if (RHS.isConstant() && RHS.getConstant().ult(BitWidth)) { in ashr()
554 if (RHS.isConstant() && RHS.getConstant().isPowerOf2()) { in urem()
575 if (RHS.isConstant() && RHS.getConstant().isPowerOf2()) { in srem()
605 One &= RHS.One; in operator &=()
619 APInt Z = (Zero & RHS.Zero) | (One & RHS.One); in operator ^=()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DInstructionCost.h100 propagateState(RHS);
118 propagateState(RHS);
140 if ((Value > 0 && RHS.Value > 0) || (Value < 0 && RHS.Value < 0))
158 Value /= RHS.Value;
204 return !(*this < RHS) && !(RHS < *this);
214 bool operator!=(const CostType RHS) const { return !(*this == RHS); }
216 bool operator>(const InstructionCost &RHS) const { return RHS < *this; }
255 LHS2 += RHS;
262 LHS2 -= RHS;
269 LHS2 *= RHS;
[all …]
H A DBranchProbability.h95 N = (uint64_t(N) + RHS.N > D) ? D : N + RHS.N;
103 N = N < RHS.N ? 0 : N - RHS.N;
117 N = (uint64_t(N) * RHS > D) ? D : N * RHS;
124 N = (static_cast<uint64_t>(N) * D + RHS.N / 2) / RHS.N;
132 N /= RHS;
138 Prob += RHS;
144 Prob -= RHS;
150 Prob *= RHS;
156 Prob *= RHS;
162 Prob /= RHS;
[all …]
H A DTypeSize.h76 C *= RHS;
82 return Copy += RHS;
87 return Copy -= RHS;
92 return Copy *= RHS;
194 LHS.Value *= RHS;
200 return Copy += RHS;
222 return Value == RHS.Value && UnivariateDim == RHS.UnivariateDim;
485 return RHS * LHS;
488 return RHS * LHS;
491 return RHS * LHS;
[all …]
H A DKnownBits.h309 return KnownBits(LHS.Zero & RHS.Zero, LHS.One & RHS.One); in commonBits()
314 return (LHS.Zero | RHS.Zero).isAllOnes(); in haveNoCommonBitsSet()
429 LHS &= RHS;
434 RHS &= LHS;
435 return std::move(RHS);
439 LHS |= RHS;
444 RHS |= LHS;
445 return std::move(RHS);
449 LHS ^= RHS;
454 RHS ^= LHS;
[all …]
H A DSMTAPI.h67 friend bool operator==(SMTSort const &LHS, SMTSort const &RHS) {
68 return LHS.equal_to(RHS);
114 friend bool operator==(SMTExpr const &LHS, SMTExpr const &RHS) {
115 return LHS.equal_to(RHS);
280 const SMTExprRef &RHS) = 0;
285 const SMTExprRef &RHS,
291 const SMTExprRef &RHS) = 0;
296 const SMTExprRef &RHS) = 0;
301 const SMTExprRef &RHS,
316 const SMTExprRef &RHS,
[all …]
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DAPSInt.h115 *this = urem(RHS);
117 *this = srem(RHS);
123 *this = udiv(RHS);
130 return IsUnsigned ? APSInt(urem(RHS), true) : APSInt(srem(RHS), false);
134 return IsUnsigned ? APSInt(udiv(RHS), true) : APSInt(sdiv(RHS), false);
150 return IsUnsigned ? ult(RHS) : slt(RHS);
154 return IsUnsigned ? ugt(RHS) : sgt(RHS);
158 return IsUnsigned ? ule(RHS) : sle(RHS);
162 return IsUnsigned ? uge(RHS) : sge(RHS);
166 return eq(RHS);
[all …]
H A DSmallBitVector.h157 if (RHS.isSmall()) in SmallBitVector()
158 X = RHS.X; in SmallBitVector()
163 SmallBitVector(SmallBitVector &&RHS) : X(RHS.X) { in SmallBitVector() argument
164 RHS.X = 1; in SmallBitVector()
618 X = RHS.X;
626 X = RHS.X;
635 swap(RHS);
712 Result &= RHS;
719 Result |= RHS;
726 Result ^= RHS;
[all …]
H A DAPInt.h1108 bool ule(uint64_t RHS) const { return !ugt(RHS); } in ule() argument
1124 bool sle(uint64_t RHS) const { return !sgt(RHS); } in sle() argument
1132 bool ugt(const APInt &RHS) const { return !ule(RHS); } in ugt() argument
1179 bool uge(uint64_t RHS) const { return !ult(RHS); } in uge() argument
1195 bool sge(int64_t RHS) const { return !slt(RHS); } in sge() argument
2013 a &= RHS;
2033 a |= RHS;
2053 a ^= RHS;
2083 a += RHS;
2104 a -= RHS;
[all …]
H A DSparseBitVector.h79 return !(*this == RHS);
433 return AtEnd == RHS.AtEnd && RHS.BitNumber == BitNumber;
458 if (this == &RHS)
559 if (this == &RHS)
589 if (this == &RHS)
638 if (this == &RHS) { in intersectWithComplement()
775 Result &= RHS; in contains()
825 return LHS |= *RHS;
843 return LHS &= *RHS;
853 Result |= RHS;
[all …]
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DAliasAnalysisSummary.h120 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/clang/include/clang/APINotes/
H A DTypes.h87 if (RHS.Unavailable) {
117 LHS.SwiftPrivate == RHS.SwiftPrivate && LHS.SwiftName == RHS.SwiftName;
122 return !(LHS == RHS);
189 return !(LHS == RHS);
295 return !(LHS == RHS);
335 Type = RHS.Type;
346 LHS.Nullable == RHS.Nullable && LHS.Type == RHS.Type;
350 return !(LHS == RHS);
406 return !(LHS == RHS);
474 return !(LHS == RHS);
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Remarks/
H A DRemark.h119 if (!LHS && !RHS)
121 if (!LHS && RHS)
123 if (LHS && !RHS)
125 return *LHS < *RHS;
140 std::make_tuple(RHS.SourceFilePath, RHS.SourceLine, RHS.SourceColumn);
144 return LHS.Key == RHS.Key && LHS.Val == RHS.Val && LHS.Loc == RHS.Loc;
153 std::make_tuple(RHS.Key, RHS.Val, RHS.Loc);
159 LHS.FunctionName == RHS.FunctionName && LHS.Loc == RHS.Loc &&
160 LHS.Hotness == RHS.Hotness && LHS.Args == RHS.Args;
170 std::make_tuple(RHS.RemarkType, RHS.PassName, RHS.RemarkName,
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/any/any.class/any.assign/
H A Dvalue.pass.cpp31 assert(RHS::count == 0); in test_assign_value()
33 RHS::reset(); in test_assign_value()
52 assert(RHS::count == 0); in test_assign_value()
54 RHS::reset(); in test_assign_value()
76 assert(RHS::count == 0); in test_assign_value()
79 template <class RHS>
82 RHS::reset(); in test_assign_value_empty()
85 RHS rhs(42); in test_assign_value_empty()
97 RHS::reset(); in test_assign_value_empty()
100 RHS rhs(42); in test_assign_value_empty()
[all …]
/llvm-project-15.0.7/llvm/lib/IR/
H A DLLVMContextImpl.h130 if (RHS == getEmptyKey() || RHS == getTombstoneKey()) in isEqual()
183 if (RHS == getEmptyKey() || RHS == getTombstoneKey()) in isEqual()
282 return Line == RHS->getLine() && Column == RHS->getColumn() &&
430 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
466 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
507 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
561 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
620 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
659 return Flags == RHS->getFlags() && CC == RHS->getCC() &&
1286 if (RHS == getEmptyKey() || RHS == getTombstoneKey())
[all …]
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DThunk.h63 return memcmp(this, &RHS, sizeof(RHS)) < 0; in Less()
73 return LHS.NonVirtual == RHS.NonVirtual && LHS.Virtual.Equals(RHS.Virtual);
78 return !(LHS == RHS);
83 if (LHS.NonVirtual < RHS.NonVirtual)
86 return LHS.NonVirtual == RHS.NonVirtual && LHS.Virtual.Less(RHS.Virtual);
130 return memcmp(this, &RHS, sizeof(RHS)) < 0; in Less()
139 return LHS.NonVirtual == RHS.NonVirtual && LHS.Virtual.Equals(RHS.Virtual);
143 return !(LHS == RHS);
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/IR/
H A DMatrixBuilder.h44 RHS = B.CreateVectorSplat( in splatScalarOperandIfNeeded()
54 return {LHS, RHS}; in splatScalarOperandIfNeeded()
162 RHS = B.CreateVectorSplat( in CreateAdd()
176 ? B.CreateFAdd(LHS, RHS) in CreateAdd()
177 : B.CreateAdd(LHS, RHS); in CreateAdd()
187 RHS = B.CreateVectorSplat( 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()
220 RHS = in CreateScalarDiv()
[all …]
H A DValueHandle.h40 : ValueHandleBase(RHS.PrevPair.getInt(), RHS) {} in ValueHandleBase()
70 if (getValPtr() == RHS)
71 return RHS;
74 setValPtr(RHS);
77 return RHS;
82 return RHS.getValPtr();
148 WeakVH(const WeakVH &RHS) in WeakVH() argument
286 AssertingVH(const AssertingVH &RHS) : ValueHandleBase(Assert, RHS) {}
298 setValPtr(RHS);
368 setValPtr(RHS);
[all …]
H A DPatternMatch.h910 AnyBinaryOp_match(const LHS_t &LHS, const RHS_t &RHS) : L(LHS), R(RHS) {} in AnyBinaryOp_match()
922 inline AnyBinaryOp_match<LHS, RHS> m_BinOp(const LHS &L, const RHS &R) { in m_BinOp()
958 BinaryOp_match(const LHS_t &LHS, const RHS_t &RHS) : L(LHS), R(RHS) {} in BinaryOp_match()
1038 template <typename RHS>
1040 m_FNegNSZ(const RHS &X) { in m_FNegNSZ()
1135 : L(LHS), R(RHS) {} in OverflowingBinaryOp_match()
1247 BinOpPred_match(const LHS_t &LHS, const RHS_t &RHS) : L(LHS), R(RHS) {} in BinOpPred_match()
1755 MaxMin_match(const LHS_t &LHS, const RHS_t &RHS) : L(LHS), R(RHS) {} in MaxMin_match()
2215 inline AnyBinaryOp_match<LHS, RHS, true> m_c_BinOp(const LHS &L, const RHS &R) {
2392 auto Signum = m_Or(LHS, RHS);
[all …]
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFAddressRange.h44 assert(valid() && RHS.valid()); in intersects()
45 if (SectionIndex != RHS.SectionIndex) in intersects()
48 if (LowPC == HighPC || RHS.LowPC == RHS.HighPC) in intersects()
50 return LowPC < RHS.HighPC && RHS.LowPC < HighPC; in intersects()
63 bool merge(const DWARFAddressRange &RHS) { in merge()
64 if (!intersects(RHS)) in merge()
66 LowPC = std::min<uint64_t>(LowPC, RHS.LowPC); in merge()
67 HighPC = std::max<uint64_t>(HighPC, RHS.HighPC); in merge()
76 const DWARFAddressRange &RHS) {
77 …td::tie(LHS.SectionIndex, LHS.LowPC, LHS.HighPC) < std::tie(RHS.SectionIndex, RHS.LowPC, RHS.HighP…
[all …]
/llvm-project-15.0.7/libcxx/test/std/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/
H A Dless_comp.pass.cpp30 const C RHS = C::from_address(RHSVal); 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 …]

12345678910>>...45