Home
last modified time | relevance | path

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

12345678910>>...35

/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DAPSInt.h36 APSInt &operator=(const APSInt &RHS) {
37 APInt::operator=(RHS);
38 IsUnsigned = RHS.IsUnsigned;
42 APSInt &operator=(const APInt &RHS) {
44 APInt::operator=(RHS);
48 APSInt &operator=(uint64_t RHS) {
50 APInt::operator=(RHS);
89 const APSInt &operator%=(const APSInt &RHS) {
90 assert(IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!");
92 *this = urem(RHS);
[all …]
DAPInt.h174 const APInt &RHS, unsigned rhsWords,
190 APInt AndSlowCase(const APInt& RHS) const;
193 APInt OrSlowCase(const APInt& RHS) const;
196 APInt XorSlowCase(const APInt& RHS) const;
199 APInt& AssignSlowCase(const APInt& RHS);
202 bool EqualSlowCase(const APInt& RHS) const;
572 APInt& operator=(const APInt& RHS) {
574 if (isSingleWord() && RHS.isSingleWord()) {
575 VAL = RHS.VAL;
576 BitWidth = RHS.BitWidth;
[all …]
DSmallBitVector.h148 SmallBitVector(const SmallBitVector &RHS) { in SmallBitVector() argument
149 if (RHS.isSmall()) in SmallBitVector()
150 X = RHS.X; in SmallBitVector()
152 switchToLarge(new BitVector(*RHS.getPointer())); in SmallBitVector()
351 bool operator==(const SmallBitVector &RHS) const {
352 if (size() != RHS.size())
355 return getSmallBits() == RHS.getSmallBits();
357 return *getPointer() == *RHS.getPointer();
360 bool operator!=(const SmallBitVector &RHS) const {
361 return !(*this == RHS);
[all …]
DSparseBitVector.h72 bool operator==(const SparseBitVectorElement &RHS) const {
73 if (ElementIndex != RHS.ElementIndex)
76 if (Bits[i] != RHS.Bits[i])
81 bool operator!=(const SparseBitVectorElement &RHS) const {
82 return !(*this == RHS);
188 bool unionWith(const SparseBitVectorElement &RHS) {
193 Bits[i] |= RHS.Bits[i];
201 bool intersects(const SparseBitVectorElement &RHS) const {
203 if (RHS.Bits[i] & Bits[i])
211 bool intersectWith(const SparseBitVectorElement &RHS,
[all …]
/external/llvm/include/llvm/ADT/
DAPSInt.h46 APSInt &operator=(APInt RHS) {
48 APInt::operator=(std::move(RHS));
52 APSInt &operator=(uint64_t RHS) {
54 APInt::operator=(RHS);
99 const APSInt &operator%=(const APSInt &RHS) {
100 assert(IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!");
102 *this = urem(RHS);
104 *this = srem(RHS);
107 const APSInt &operator/=(const APSInt &RHS) {
108 assert(IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!");
[all …]
DAPInt.h180 static void divide(const APInt &LHS, unsigned lhsWords, const APInt &RHS,
196 APInt AndSlowCase(const APInt &RHS) const;
199 APInt OrSlowCase(const APInt &RHS) const;
202 APInt XorSlowCase(const APInt &RHS) const;
205 APInt &AssignSlowCase(const APInt &RHS);
208 bool EqualSlowCase(const APInt &RHS) const;
657 APInt &operator=(const APInt &RHS) {
659 if (isSingleWord() && RHS.isSingleWord()) {
660 VAL = RHS.VAL;
661 BitWidth = RHS.BitWidth;
[all …]
DSmallBitVector.h152 SmallBitVector(const SmallBitVector &RHS) { in SmallBitVector() argument
153 if (RHS.isSmall()) in SmallBitVector()
154 X = RHS.X; in SmallBitVector()
156 switchToLarge(new BitVector(*RHS.getPointer())); in SmallBitVector()
159 SmallBitVector(SmallBitVector &&RHS) : X(RHS.X) { in SmallBitVector() argument
160 RHS.X = 1; in SmallBitVector()
380 bool anyCommon(const SmallBitVector &RHS) const { in anyCommon() argument
381 if (isSmall() && RHS.isSmall()) in anyCommon()
382 return (getSmallBits() & RHS.getSmallBits()) != 0; in anyCommon()
383 if (!isSmall() && !RHS.isSmall()) in anyCommon()
[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 …]
/external/llvm/lib/Support/
DSmallPtrSet.cpp166 void SmallPtrSetImplBase::CopyFrom(const SmallPtrSetImplBase &RHS) { in CopyFrom() argument
167 assert(&RHS != this && "Self-copy should be handled by the caller."); in CopyFrom()
169 if (isSmall() && RHS.isSmall()) in CopyFrom()
170 assert(CurArraySize == RHS.CurArraySize && in CopyFrom()
174 if (RHS.isSmall()) { in CopyFrom()
179 } else if (CurArraySize != RHS.CurArraySize) { in CopyFrom()
181 CurArray = (const void**)malloc(sizeof(void*) * RHS.CurArraySize); in CopyFrom()
184 sizeof(void*) * RHS.CurArraySize); in CopyFrom()
192 CopyHelper(RHS); in CopyFrom()
195 void SmallPtrSetImplBase::CopyHelper(const SmallPtrSetImplBase &RHS) { in CopyHelper() argument
[all …]
/external/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 …]
/external/libcxx/test/std/experimental/any/any.class/any.assign/
Dvalue.pass.cpp28 template <class LHS, class RHS>
31 assert(RHS::count == 0); in test_assign_value()
33 RHS::reset(); in test_assign_value()
36 any const rhs(RHS(2)); in test_assign_value()
39 assert(RHS::count == 1); in test_assign_value()
40 assert(RHS::copied == 0); in test_assign_value()
44 assert(RHS::copied == 1); in test_assign_value()
46 assert(RHS::count == 2); in test_assign_value()
48 assertContains<RHS>(lhs, 2); in test_assign_value()
49 assertContains<RHS>(rhs, 2); in test_assign_value()
[all …]
/external/libcxx/test/std/utilities/any/any.class/any.assign/
Dvalue.pass.cpp29 template <class LHS, class RHS>
32 assert(RHS::count == 0); in test_assign_value()
34 RHS::reset(); in test_assign_value()
37 any const rhs(RHS(2)); in test_assign_value()
40 assert(RHS::count == 1); in test_assign_value()
41 assert(RHS::copied == 0); in test_assign_value()
45 assert(RHS::copied == 1); in test_assign_value()
47 assert(RHS::count == 2); in test_assign_value()
49 assertContains<RHS>(lhs, 2); in test_assign_value()
50 assertContains<RHS>(rhs, 2); in test_assign_value()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DNoFolder.h40 Instruction *CreateAdd(Constant *LHS, Constant *RHS,
42 BinaryOperator *BO = BinaryOperator::CreateAdd(LHS, RHS);
47 Instruction *CreateNSWAdd(Constant *LHS, Constant *RHS) const { in CreateNSWAdd() argument
48 return BinaryOperator::CreateNSWAdd(LHS, RHS); in CreateNSWAdd()
50 Instruction *CreateNUWAdd(Constant *LHS, Constant *RHS) const { in CreateNUWAdd() argument
51 return BinaryOperator::CreateNUWAdd(LHS, RHS); in CreateNUWAdd()
53 Instruction *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd() argument
54 return BinaryOperator::CreateFAdd(LHS, RHS); in CreateFAdd()
56 Instruction *CreateSub(Constant *LHS, Constant *RHS,
58 BinaryOperator *BO = BinaryOperator::CreateSub(LHS, RHS);
[all …]
DPatternMatch.h275 BinaryOp_match(const LHS_t &LHS, const RHS_t &RHS) : L(LHS), R(RHS) {} in BinaryOp_match()
290 template<typename LHS, typename RHS>
291 inline BinaryOp_match<LHS, RHS, Instruction::Add>
292 m_Add(const LHS &L, const RHS &R) { in m_Add()
293 return BinaryOp_match<LHS, RHS, Instruction::Add>(L, R); in m_Add()
296 template<typename LHS, typename RHS>
297 inline BinaryOp_match<LHS, RHS, Instruction::FAdd>
298 m_FAdd(const LHS &L, const RHS &R) { in m_FAdd()
299 return BinaryOp_match<LHS, RHS, Instruction::FAdd>(L, R); in m_FAdd()
302 template<typename LHS, typename RHS>
[all …]
DConstantFolder.h34 Constant *CreateAdd(Constant *LHS, Constant *RHS,
36 return ConstantExpr::getAdd(LHS, RHS, HasNUW, HasNSW);
38 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd() argument
39 return ConstantExpr::getFAdd(LHS, RHS); in CreateFAdd()
41 Constant *CreateSub(Constant *LHS, Constant *RHS,
43 return ConstantExpr::getSub(LHS, RHS, HasNUW, HasNSW);
45 Constant *CreateFSub(Constant *LHS, Constant *RHS) const { in CreateFSub() argument
46 return ConstantExpr::getFSub(LHS, RHS); in CreateFSub()
48 Constant *CreateMul(Constant *LHS, Constant *RHS,
50 return ConstantExpr::getMul(LHS, RHS, HasNUW, HasNSW);
[all …]
DTargetFolder.h50 Constant *CreateAdd(Constant *LHS, Constant *RHS,
52 return Fold(ConstantExpr::getAdd(LHS, RHS, HasNUW, HasNSW));
54 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd() argument
55 return Fold(ConstantExpr::getFAdd(LHS, RHS)); in CreateFAdd()
57 Constant *CreateSub(Constant *LHS, Constant *RHS,
59 return Fold(ConstantExpr::getSub(LHS, RHS, HasNUW, HasNSW));
61 Constant *CreateFSub(Constant *LHS, Constant *RHS) const { in CreateFSub() argument
62 return Fold(ConstantExpr::getFSub(LHS, RHS)); in CreateFSub()
64 Constant *CreateMul(Constant *LHS, Constant *RHS,
66 return Fold(ConstantExpr::getMul(LHS, RHS, HasNUW, HasNSW));
[all …]
/external/llvm/lib/IR/
DLLVMContextImpl.h64 static bool isEqual(const APInt &LHS, const APInt &RHS) { in isEqual()
65 return LHS.getBitWidth() == RHS.getBitWidth() && LHS == RHS; in isEqual()
75 static bool isEqual(const APFloat &LHS, const APFloat &RHS) { in isEqual()
76 return LHS.bitwiseIsEqual(RHS); in isEqual()
113 static bool isEqual(const KeyTy& LHS, const StructType *RHS) { in isEqual()
114 if (RHS == getEmptyKey() || RHS == getTombstoneKey()) in isEqual()
116 return LHS == KeyTy(RHS); in isEqual()
118 static bool isEqual(const StructType *LHS, const StructType *RHS) { in isEqual()
119 return LHS == RHS; in isEqual()
161 static bool isEqual(const KeyTy& LHS, const FunctionType *RHS) { in isEqual()
[all …]
/external/llvm/include/llvm/Support/
DBranchProbability.h92 BranchProbability &operator+=(BranchProbability RHS) {
93 assert(N != UnknownN && RHS.N != UnknownN &&
96 N = (uint64_t(N) + RHS.N > D) ? D : N + RHS.N;
100 BranchProbability &operator-=(BranchProbability RHS) {
101 assert(N != UnknownN && RHS.N != UnknownN &&
104 N = N < RHS.N ? 0 : N - RHS.N;
108 BranchProbability &operator*=(BranchProbability RHS) {
109 assert(N != UnknownN && RHS.N != UnknownN &&
111 N = (static_cast<uint64_t>(N) * RHS.N + D / 2) / D;
115 BranchProbability &operator/=(uint32_t RHS) {
[all …]
/external/llvm/include/llvm/IR/
DNoFolder.h40 Instruction *CreateAdd(Constant *LHS, Constant *RHS,
42 BinaryOperator *BO = BinaryOperator::CreateAdd(LHS, RHS);
47 Instruction *CreateNSWAdd(Constant *LHS, Constant *RHS) const { in CreateNSWAdd() argument
48 return BinaryOperator::CreateNSWAdd(LHS, RHS); in CreateNSWAdd()
50 Instruction *CreateNUWAdd(Constant *LHS, Constant *RHS) const { in CreateNUWAdd() argument
51 return BinaryOperator::CreateNUWAdd(LHS, RHS); in CreateNUWAdd()
53 Instruction *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd() argument
54 return BinaryOperator::CreateFAdd(LHS, RHS); in CreateFAdd()
56 Instruction *CreateSub(Constant *LHS, Constant *RHS,
58 BinaryOperator *BO = BinaryOperator::CreateSub(LHS, RHS);
[all …]
DPatternMatch.h396 AnyBinaryOp_match(const LHS_t &LHS, const RHS_t &RHS) : L(LHS), R(RHS) {} in AnyBinaryOp_match()
405 template <typename LHS, typename RHS>
406 inline AnyBinaryOp_match<LHS, RHS> m_BinOp(const LHS &L, const RHS &R) { in m_BinOp()
407 return AnyBinaryOp_match<LHS, RHS>(L, R); in m_BinOp()
419 BinaryOp_match(const LHS_t &LHS, const RHS_t &RHS) : L(LHS), R(RHS) {} in BinaryOp_match()
433 template <typename LHS, typename RHS>
434 inline BinaryOp_match<LHS, RHS, Instruction::Add> m_Add(const LHS &L, in m_Add()
435 const RHS &R) { in m_Add()
436 return BinaryOp_match<LHS, RHS, Instruction::Add>(L, R); in m_Add()
439 template <typename LHS, typename RHS>
[all …]
DConstantFolder.h34 Constant *CreateAdd(Constant *LHS, Constant *RHS,
36 return ConstantExpr::getAdd(LHS, RHS, HasNUW, HasNSW);
38 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd() argument
39 return ConstantExpr::getFAdd(LHS, RHS); in CreateFAdd()
41 Constant *CreateSub(Constant *LHS, Constant *RHS,
43 return ConstantExpr::getSub(LHS, RHS, HasNUW, HasNSW);
45 Constant *CreateFSub(Constant *LHS, Constant *RHS) const { in CreateFSub() argument
46 return ConstantExpr::getFSub(LHS, RHS); in CreateFSub()
48 Constant *CreateMul(Constant *LHS, Constant *RHS,
50 return ConstantExpr::getMul(LHS, RHS, HasNUW, HasNSW);
[all …]
/external/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 …]
/external/clang/include/clang/Basic/
DABI.h80 bool Less(const VirtualAdjustment &RHS) const { in Less() argument
81 return memcmp(this, &RHS, sizeof(RHS)) < 0; in Less()
90 const ReturnAdjustment &RHS) {
91 return LHS.NonVirtual == RHS.NonVirtual && LHS.Virtual.Equals(RHS.Virtual);
94 friend bool operator!=(const ReturnAdjustment &LHS, const ReturnAdjustment &RHS) {
95 return !(LHS == RHS);
99 const ReturnAdjustment &RHS) {
100 if (LHS.NonVirtual < RHS.NonVirtual)
103 return LHS.NonVirtual == RHS.NonVirtual && LHS.Virtual.Less(RHS.Virtual);
148 bool Less(const VirtualAdjustment &RHS) const { in Less() argument
[all …]
/external/llvm/include/llvm/Analysis/
DTargetFolder.h50 Constant *CreateAdd(Constant *LHS, Constant *RHS,
52 return Fold(ConstantExpr::getAdd(LHS, RHS, HasNUW, HasNSW));
54 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd() argument
55 return Fold(ConstantExpr::getFAdd(LHS, RHS)); in CreateFAdd()
57 Constant *CreateSub(Constant *LHS, Constant *RHS,
59 return Fold(ConstantExpr::getSub(LHS, RHS, HasNUW, HasNSW));
61 Constant *CreateFSub(Constant *LHS, Constant *RHS) const { in CreateFSub() argument
62 return Fold(ConstantExpr::getFSub(LHS, RHS)); in CreateFSub()
64 Constant *CreateMul(Constant *LHS, Constant *RHS,
66 return Fold(ConstantExpr::getMul(LHS, RHS, HasNUW, HasNSW));
[all …]

12345678910>>...35