Home
last modified time | relevance | path

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

12345678910>>...24

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DSmallPtrSet.cpp144 void SmallPtrSetImplBase::CopyFrom(const SmallPtrSetImplBase &RHS) { in CopyFrom() argument
145 assert(&RHS != this && "Self-copy should be handled by the caller."); in CopyFrom()
147 if (isSmall() && RHS.isSmall()) in CopyFrom()
148 assert(CurArraySize == RHS.CurArraySize && in CopyFrom()
152 if (RHS.isSmall()) { in CopyFrom()
157 } else if (CurArraySize != RHS.CurArraySize) { in CopyFrom()
159 CurArray = (const void**)safe_malloc(sizeof(void*) * RHS.CurArraySize); in CopyFrom()
162 sizeof(void*) * RHS.CurArraySize); in CopyFrom()
167 CopyHelper(RHS); in CopyFrom()
170 void SmallPtrSetImplBase::CopyHelper(const SmallPtrSetImplBase &RHS) { in CopyHelper() argument
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
DSmallPtrSet.cpp167 void SmallPtrSetImplBase::CopyFrom(const SmallPtrSetImplBase &RHS) { in CopyFrom() argument
168 assert(&RHS != this && "Self-copy should be handled by the caller."); in CopyFrom()
170 if (isSmall() && RHS.isSmall()) in CopyFrom()
171 assert(CurArraySize == RHS.CurArraySize && in CopyFrom()
175 if (RHS.isSmall()) { in CopyFrom()
180 } else if (CurArraySize != RHS.CurArraySize) { in CopyFrom()
182 CurArray = (const void**)malloc(sizeof(void*) * RHS.CurArraySize); in CopyFrom()
185 sizeof(void*) * RHS.CurArraySize); in CopyFrom()
193 CopyHelper(RHS); in CopyFrom()
196 void SmallPtrSetImplBase::CopyHelper(const SmallPtrSetImplBase &RHS) { in CopyHelper() argument
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DAPSInt.h63 APSInt &operator=(APInt RHS) {
65 APInt::operator=(std::move(RHS));
69 APSInt &operator=(uint64_t RHS) {
71 APInt::operator=(RHS);
116 const APSInt &operator%=(const APSInt &RHS) {
117 assert(IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!");
119 *this = urem(RHS);
121 *this = srem(RHS);
124 const APSInt &operator/=(const APSInt &RHS) {
125 assert(IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!");
[all …]
DSmallBitVector.h153 SmallBitVector(const SmallBitVector &RHS) { in SmallBitVector() argument
154 if (RHS.isSmall()) in SmallBitVector()
155 X = RHS.X; in SmallBitVector()
157 switchToLarge(new BitVector(*RHS.getPointer())); in SmallBitVector()
160 SmallBitVector(SmallBitVector &&RHS) : X(RHS.X) { in SmallBitVector() argument
161 RHS.X = 1; in SmallBitVector()
473 bool anyCommon(const SmallBitVector &RHS) const { in anyCommon() argument
474 if (isSmall() && RHS.isSmall()) in anyCommon()
475 return (getSmallBits() & RHS.getSmallBits()) != 0; in anyCommon()
476 if (!isSmall() && !RHS.isSmall()) in anyCommon()
[all …]
DAPInt.h192 const WordType *RHS, unsigned rhsWords, WordType *Quotient,
214 void AssignSlowCase(const APInt &RHS);
217 bool EqualSlowCase(const APInt &RHS) const LLVM_READONLY;
235 bool intersectsSlowCase(const APInt &RHS) const LLVM_READONLY;
238 bool isSubsetOfSlowCase(const APInt &RHS) const LLVM_READONLY;
247 void AndAssignSlowCase(const APInt& RHS);
250 void OrAssignSlowCase(const APInt& RHS);
253 void XorAssignSlowCase(const APInt& RHS);
257 int compare(const APInt &RHS) const LLVM_READONLY;
261 int compareSigned(const APInt &RHS) const LLVM_READONLY;
[all …]
DSparseBitVector.h68 bool operator==(const SparseBitVectorElement &RHS) const {
69 if (ElementIndex != RHS.ElementIndex)
72 if (Bits[i] != RHS.Bits[i])
77 bool operator!=(const SparseBitVectorElement &RHS) const {
78 return !(*this == RHS);
171 bool unionWith(const SparseBitVectorElement &RHS) { in unionWith()
176 Bits[i] |= RHS.Bits[i]; in unionWith()
184 bool intersects(const SparseBitVectorElement &RHS) const { in intersects()
186 if (RHS.Bits[i] & Bits[i]) in intersects()
194 bool intersectWith(const SparseBitVectorElement &RHS, in intersectWith()
[all …]
DDenseMapInfo.h56 static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
65 static bool isEqual(const char &LHS, const char &RHS) {
66 return LHS == RHS;
76 static bool isEqual(const unsigned char &LHS, const unsigned char &RHS) {
77 return LHS == RHS;
87 static bool isEqual(const unsigned short &LHS, const unsigned short &RHS) {
88 return LHS == RHS;
98 static bool isEqual(const unsigned& LHS, const unsigned& RHS) {
99 return LHS == RHS;
112 static bool isEqual(const unsigned long& LHS, const unsigned long& RHS) {
[all …]
DSmallString.h57 void assign(StringRef RHS) { in assign() argument
59 SmallVectorImpl<char>::append(RHS.begin(), RHS.end()); in assign()
63 void assign(const SmallVectorImpl<char> &RHS) { in assign() argument
65 SmallVectorImpl<char>::append(RHS.begin(), RHS.end()); in assign()
83 void append(StringRef RHS) { in append() argument
84 SmallVectorImpl<char>::append(RHS.begin(), RHS.end()); in append()
88 void append(const SmallVectorImpl<char> &RHS) { in append() argument
89 SmallVectorImpl<char>::append(RHS.begin(), RHS.end()); in append()
98 bool equals(StringRef RHS) const { in equals() argument
99 return str().equals(RHS); in equals()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DTypeSize.h32 ElementCount operator*(unsigned RHS) {
33 return { Min * RHS, Scalable };
35 ElementCount operator/(unsigned RHS) {
36 return { Min / RHS, Scalable };
39 bool operator==(const ElementCount& RHS) const {
40 return Min == RHS.Min && Scalable == RHS.Scalable;
42 bool operator!=(const ElementCount& RHS) const {
43 return !(*this == RHS);
70 friend bool operator==(const TypeSize &LHS, const TypeSize &RHS) {
72 std::tie(RHS.MinSize, RHS.IsScalable);
[all …]
DBranchProbability.h91 BranchProbability &operator+=(BranchProbability RHS) {
92 assert(N != UnknownN && RHS.N != UnknownN &&
95 N = (uint64_t(N) + RHS.N > D) ? D : N + RHS.N;
99 BranchProbability &operator-=(BranchProbability RHS) {
100 assert(N != UnknownN && RHS.N != UnknownN &&
103 N = N < RHS.N ? 0 : N - RHS.N;
107 BranchProbability &operator*=(BranchProbability RHS) {
108 assert(N != UnknownN && RHS.N != UnknownN &&
110 N = (static_cast<uint64_t>(N) * RHS.N + D / 2) / D;
114 BranchProbability &operator*=(uint32_t RHS) {
[all …]
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);
184 virtual SMTExprRef mkBVAdd(const SMTExprRef &LHS, const SMTExprRef &RHS) = 0;
187 virtual SMTExprRef mkBVSub(const SMTExprRef &LHS, const SMTExprRef &RHS) = 0;
190 virtual SMTExprRef mkBVMul(const SMTExprRef &LHS, const SMTExprRef &RHS) = 0;
193 virtual SMTExprRef mkBVSRem(const SMTExprRef &LHS, const SMTExprRef &RHS) = 0;
196 virtual SMTExprRef mkBVURem(const SMTExprRef &LHS, const SMTExprRef &RHS) = 0;
199 virtual SMTExprRef mkBVSDiv(const SMTExprRef &LHS, const SMTExprRef &RHS) = 0;
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DAliasAnalysisSummary.h116 inline bool operator==(InterfaceValue LHS, InterfaceValue RHS) {
117 return LHS.Index == RHS.Index && LHS.DerefLevel == RHS.DerefLevel;
119 inline bool operator!=(InterfaceValue LHS, InterfaceValue RHS) {
120 return !(LHS == RHS);
122 inline bool operator<(InterfaceValue LHS, InterfaceValue RHS) {
123 return LHS.Index < RHS.Index ||
124 (LHS.Index == RHS.Index && LHS.DerefLevel < RHS.DerefLevel);
126 inline bool operator>(InterfaceValue LHS, InterfaceValue RHS) {
127 return RHS < LHS;
129 inline bool operator<=(InterfaceValue LHS, InterfaceValue RHS) {
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Remarks/
DRemark.h115 bool operator<(const Optional<T> &LHS, const Optional<T> &RHS) {
119 if (!LHS && !RHS)
121 if (!LHS && RHS)
123 if (LHS && !RHS)
125 return *LHS < *RHS;
128 inline bool operator==(const RemarkLocation &LHS, const RemarkLocation &RHS) {
129 return LHS.SourceFilePath == RHS.SourceFilePath &&
130 LHS.SourceLine == RHS.SourceLine &&
131 LHS.SourceColumn == RHS.SourceColumn;
134 inline bool operator!=(const RemarkLocation &LHS, const RemarkLocation &RHS) {
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DLLVMContextImpl.h79 static bool isEqual(const APInt &LHS, const APInt &RHS) { in isEqual()
80 return LHS.getBitWidth() == RHS.getBitWidth() && LHS == RHS; in isEqual()
92 static bool isEqual(const APFloat &LHS, const APFloat &RHS) { in isEqual()
93 return LHS.bitwiseIsEqual(RHS); in isEqual()
138 static bool isEqual(const KeyTy& LHS, const StructType *RHS) { in isEqual()
139 if (RHS == getEmptyKey() || RHS == getTombstoneKey()) in isEqual()
141 return LHS == KeyTy(RHS); in isEqual()
144 static bool isEqual(const StructType *LHS, const StructType *RHS) { in isEqual()
145 return LHS == RHS; in isEqual()
194 static bool isEqual(const KeyTy& LHS, const FunctionType *RHS) { in isEqual()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DNoFolder.h41 Instruction *CreateAdd(Constant *LHS, Constant *RHS,
43 BinaryOperator *BO = BinaryOperator::CreateAdd(LHS, RHS);
49 Instruction *CreateNSWAdd(Constant *LHS, Constant *RHS) const { in CreateNSWAdd() argument
50 return BinaryOperator::CreateNSWAdd(LHS, RHS); in CreateNSWAdd()
53 Instruction *CreateNUWAdd(Constant *LHS, Constant *RHS) const { in CreateNUWAdd() argument
54 return BinaryOperator::CreateNUWAdd(LHS, RHS); in CreateNUWAdd()
57 Instruction *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd() argument
58 return BinaryOperator::CreateFAdd(LHS, RHS); in CreateFAdd()
61 Instruction *CreateSub(Constant *LHS, Constant *RHS,
63 BinaryOperator *BO = BinaryOperator::CreateSub(LHS, RHS);
[all …]
DPatternMatch.h737 AnyBinaryOp_match(const LHS_t &LHS, const RHS_t &RHS) : L(LHS), R(RHS) {} in AnyBinaryOp_match()
748 template <typename LHS, typename RHS>
749 inline AnyBinaryOp_match<LHS, RHS> m_BinOp(const LHS &L, const RHS &R) { in m_BinOp()
750 return AnyBinaryOp_match<LHS, RHS>(L, R); in m_BinOp()
765 BinaryOp_match(const LHS_t &LHS, const RHS_t &RHS) : L(LHS), R(RHS) {} in BinaryOp_match()
783 template <typename LHS, typename RHS>
784 inline BinaryOp_match<LHS, RHS, Instruction::Add> m_Add(const LHS &L, in m_Add()
785 const RHS &R) { in m_Add()
786 return BinaryOp_match<LHS, RHS, Instruction::Add>(L, R); in m_Add()
789 template <typename LHS, typename RHS>
[all …]
DConstantFolder.h35 Constant *CreateAdd(Constant *LHS, Constant *RHS,
37 return ConstantExpr::getAdd(LHS, RHS, HasNUW, HasNSW);
40 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd() argument
41 return ConstantExpr::getFAdd(LHS, RHS); in CreateFAdd()
44 Constant *CreateSub(Constant *LHS, Constant *RHS,
46 return ConstantExpr::getSub(LHS, RHS, HasNUW, HasNSW);
49 Constant *CreateFSub(Constant *LHS, Constant *RHS) const { in CreateFSub() argument
50 return ConstantExpr::getFSub(LHS, RHS); in CreateFSub()
53 Constant *CreateMul(Constant *LHS, Constant *RHS,
55 return ConstantExpr::getMul(LHS, RHS, HasNUW, HasNSW);
[all …]
DValueHandle.h39 ValueHandleBase(const ValueHandleBase &RHS) in ValueHandleBase() argument
40 : ValueHandleBase(RHS.PrevPair.getInt(), RHS) {} in ValueHandleBase()
42 ValueHandleBase(HandleBaseKind Kind, const ValueHandleBase &RHS) in ValueHandleBase() argument
43 : PrevPair(nullptr, Kind), Val(RHS.getValPtr()) { in ValueHandleBase()
45 AddToExistingUseList(RHS.getPrevPtr()); in ValueHandleBase()
69 Value *operator=(Value *RHS) {
70 if (getValPtr() == RHS)
71 return RHS;
74 setValPtr(RHS);
77 return RHS;
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DAPInt.h184 static void divide(const APInt &LHS, unsigned lhsWords, const APInt &RHS,
200 APInt AndSlowCase(const APInt &RHS) const;
203 APInt OrSlowCase(const APInt &RHS) const;
206 APInt XorSlowCase(const APInt &RHS) const;
209 APInt &AssignSlowCase(const APInt &RHS);
212 bool EqualSlowCase(const APInt &RHS) const;
649 APInt &operator=(const APInt &RHS) {
651 if (isSingleWord() && RHS.isSingleWord()) {
652 VAL = RHS.VAL;
653 BitWidth = RHS.BitWidth;
[all …]
DBitVector.h93 BitVector(const BitVector &RHS) : Size(RHS.size()) { in BitVector() argument
100 Capacity = NumBitWords(RHS.size()); in BitVector()
102 std::memcpy(Bits, RHS.Bits, Capacity * sizeof(BitWord)); in BitVector()
105 BitVector(BitVector &&RHS) in BitVector() argument
106 : Bits(RHS.Bits), Size(RHS.Size), Capacity(RHS.Capacity) { in BitVector()
107 RHS.Bits = nullptr; in BitVector()
108 RHS.Size = RHS.Capacity = 0; in BitVector()
328 bool anyCommon(const BitVector &RHS) const { in anyCommon() argument
330 unsigned RHSWords = NumBitWords(RHS.size()); in anyCommon()
332 if (Bits[i] & RHS.Bits[i]) in anyCommon()
[all …]
DSmallString.h58 void assign(StringRef RHS) { in assign() argument
60 SmallVectorImpl<char>::append(RHS.begin(), RHS.end()); in assign()
64 void assign(const SmallVectorImpl<char> &RHS) { in assign() argument
66 SmallVectorImpl<char>::append(RHS.begin(), RHS.end()); in assign()
84 void append(StringRef RHS) { in append() argument
85 SmallVectorImpl<char>::append(RHS.begin(), RHS.end()); in append()
89 void append(const SmallVectorImpl<char> &RHS) { in append() argument
90 SmallVectorImpl<char>::append(RHS.begin(), RHS.end()); in append()
99 bool equals(StringRef RHS) const { in equals() argument
100 return str().equals(RHS); in equals()
[all …]
DDenseMapInfo.h50 static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
58 static bool isEqual(const char &LHS, const char &RHS) {
59 return LHS == RHS;
68 static bool isEqual(const unsigned& LHS, const unsigned& RHS) {
69 return LHS == RHS;
80 static bool isEqual(const unsigned long& LHS, const unsigned long& RHS) {
81 return LHS == RHS;
93 const unsigned long long& RHS) {
94 return LHS == RHS;
103 static bool isEqual(const int& LHS, const int& RHS) {
[all …]
DAPFloat.h260 IEEEFloat operator+(const IEEEFloat &RHS) const {
262 Result.add(RHS, rmNearestTiesToEven);
268 IEEEFloat operator-(const IEEEFloat &RHS) const {
270 Result.subtract(RHS, rmNearestTiesToEven);
276 IEEEFloat operator*(const IEEEFloat &RHS) const {
278 Result.multiply(RHS, rmNearestTiesToEven);
284 IEEEFloat operator/(const IEEEFloat &RHS) const {
286 Result.divide(RHS, rmNearestTiesToEven);
608 opStatus addWithSpecial(const DoubleAPFloat &LHS, const DoubleAPFloat &RHS,
617 DoubleAPFloat(const DoubleAPFloat &RHS);
[all …]
DSmallVector.h388 void swap(SmallVectorImpl &RHS);
642 SmallVectorImpl &operator=(const SmallVectorImpl &RHS);
644 SmallVectorImpl &operator=(SmallVectorImpl &&RHS);
646 bool operator==(const SmallVectorImpl &RHS) const {
647 if (this->size() != RHS.size()) return false;
648 return std::equal(this->begin(), this->end(), RHS.begin());
650 bool operator!=(const SmallVectorImpl &RHS) const {
651 return !(*this == RHS);
654 bool operator<(const SmallVectorImpl &RHS) const {
656 RHS.begin(), RHS.end());
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DTargetFolder.h48 Constant *CreateAdd(Constant *LHS, Constant *RHS,
50 return Fold(ConstantExpr::getAdd(LHS, RHS, HasNUW, HasNSW));
52 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd() argument
53 return Fold(ConstantExpr::getFAdd(LHS, RHS)); in CreateFAdd()
55 Constant *CreateSub(Constant *LHS, Constant *RHS,
57 return Fold(ConstantExpr::getSub(LHS, RHS, HasNUW, HasNSW));
59 Constant *CreateFSub(Constant *LHS, Constant *RHS) const { in CreateFSub() argument
60 return Fold(ConstantExpr::getFSub(LHS, RHS)); in CreateFSub()
62 Constant *CreateMul(Constant *LHS, Constant *RHS,
64 return Fold(ConstantExpr::getMul(LHS, RHS, HasNUW, HasNSW));
[all …]

12345678910>>...24