/external/clang/include/clang/Edit/ |
H A D | FileOffset.h | 37 friend bool operator==(FileOffset LHS, FileOffset RHS) { argument 38 return LHS.FID == RHS.FID && LHS.Offs == RHS.Offs; 40 friend bool operator!=(FileOffset LHS, FileOffset RHS) { argument 41 return !(LHS == RHS); 43 friend bool operator<(FileOffset LHS, FileOffset RHS) { argument 44 if (LHS.FID != RHS.FID) 45 return LHS.FID < RHS.FID; 46 return LHS.Offs < RHS.Offs; 48 friend bool operator>(FileOffset LHS, FileOffset RHS) { argument 53 operator >=(FileOffset LHS, FileOffset RHS) argument 56 operator <=(FileOffset LHS, FileOffset RHS) argument [all...] |
/external/llvm/include/llvm/ADT/ |
H A D | APSInt.h | 36 APSInt &operator=(const APSInt &RHS) { argument 37 APInt::operator=(RHS); 38 IsUnsigned = RHS.IsUnsigned; 42 APSInt &operator=(const APInt &RHS) { argument 44 APInt::operator=(RHS); 48 APSInt &operator=(uint64_t RHS) { argument 50 APInt::operator=(RHS); 89 const APSInt &operator%=(const APSInt &RHS) { argument 90 assert(IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!"); 92 *this = urem(RHS); 97 operator /=(const APSInt &RHS) argument 180 operator +=(const APSInt& RHS) argument 185 operator -=(const APSInt& RHS) argument 190 operator *=(const APSInt& RHS) argument 195 operator &=(const APSInt& RHS) argument 200 operator |=(const APSInt& RHS) argument 205 operator ^=(const APSInt& RHS) argument [all...] |
H A D | APInt.h | 176 const APInt &RHS, unsigned rhsWords, 192 APInt AndSlowCase(const APInt& RHS) const; 195 APInt OrSlowCase(const APInt& RHS) const; 198 APInt XorSlowCase(const APInt& RHS) const; 201 APInt& AssignSlowCase(const APInt& RHS); 204 bool EqualSlowCase(const APInt& RHS) const; 591 /// @returns *this after assignment of RHS. 593 APInt& operator=(const APInt& RHS) { 595 if (isSingleWord() && RHS.isSingleWord()) { 596 VAL = RHS [all...] |
H A D | SmallBitVector.h | 149 SmallBitVector(const SmallBitVector &RHS) { argument 150 if (RHS.isSmall()) 151 X = RHS.X; 153 switchToLarge(new BitVector(*RHS.getPointer())); 157 SmallBitVector(SmallBitVector &&RHS) : X(RHS.X) { argument 158 RHS.X = 1; 358 bool anyCommon(const SmallBitVector &RHS) const { 359 if (isSmall() && RHS.isSmall()) 360 return (getSmallBits() & RHS 385 operator &=(const SmallBitVector &RHS) argument 399 operator |=(const SmallBitVector &RHS) argument 413 operator ^=(const SmallBitVector &RHS) argument 428 operator =(const SmallBitVector &RHS) argument 446 operator =(SmallBitVector &&RHS) argument 455 swap(SmallBitVector &RHS) argument 514 operator &(const SmallBitVector &LHS, const SmallBitVector &RHS) argument 521 operator |(const SmallBitVector &LHS, const SmallBitVector &RHS) argument 528 operator ^(const SmallBitVector &LHS, const SmallBitVector &RHS) argument 539 swap(llvm::SmallBitVector &LHS, llvm::SmallBitVector &RHS) argument [all...] |
H A D | BitVector.h | 89 BitVector(const BitVector &RHS) : Size(RHS.size()) { argument 96 Capacity = NumBitWords(RHS.size()); 98 std::memcpy(Bits, RHS.Bits, Capacity * sizeof(BitWord)); 102 BitVector(BitVector &&RHS) argument 103 : Bits(RHS.Bits), Size(RHS.Size), Capacity(RHS.Capacity) { 104 RHS.Bits = 0; 279 bool anyCommon(const BitVector &RHS) cons [all...] |
H A D | DenseMapInfo.h | 27 //static bool isEqual(const T &LHS, const T &RHS); 47 static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; } argument 55 static bool isEqual(const char &LHS, const char &RHS) { argument 56 return LHS == RHS; 65 static bool isEqual(const unsigned& LHS, const unsigned& RHS) { argument 66 return LHS == RHS; 77 static bool isEqual(const unsigned long& LHS, const unsigned long& RHS) { argument 78 return LHS == RHS; 90 const unsigned long long& RHS) { 89 isEqual(const unsigned long long& LHS, const unsigned long long& RHS) argument 100 isEqual(const int& LHS, const int& RHS) argument 114 isEqual(const long& LHS, const long& RHS) argument 126 isEqual(const long long& LHS, const long long& RHS) argument 160 isEqual(const Pair &LHS, const Pair &RHS) argument [all...] |
H A D | SmallString.h | 38 SmallString(const SmallString &RHS) : SmallVector<char, InternalLen>(RHS) {} argument 60 void assign(StringRef RHS) { argument 62 SmallVectorImpl<char>::append(RHS.begin(), RHS.end()); 66 void assign(const SmallVectorImpl<char> &RHS) { argument 68 SmallVectorImpl<char>::append(RHS.begin(), RHS.end()); 87 void append(StringRef RHS) { argument 88 SmallVectorImpl<char>::append(RHS 92 append(const SmallVectorImpl<char> &RHS) argument 283 operator =(StringRef RHS) argument 288 operator +=(StringRef RHS) argument [all...] |
H A D | SparseBitVector.h | 72 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); 183 // Union this element with RHS and return true if this one changed. 184 bool unionWith(const SparseBitVectorElement &RHS) { 189 Bits[i] |= RHS.Bits[i]; 196 // Return true if we have any bits in common with RHS 197 bool intersects(const SparseBitVectorElement &RHS) cons 421 SparseBitVectorIterator(const SparseBitVector<ElementSize> *RHS, bool end = false) argument [all...] |
/external/clang/include/clang/Basic/ |
H A D | ABI.h | 52 const ReturnAdjustment &RHS) { 53 return LHS.NonVirtual == RHS.NonVirtual && 54 LHS.VBaseOffsetOffset == RHS.VBaseOffsetOffset; 58 const ReturnAdjustment &RHS) { 59 if (LHS.NonVirtual < RHS.NonVirtual) 62 return LHS.NonVirtual == RHS.NonVirtual && 63 LHS.VBaseOffsetOffset < RHS.VBaseOffsetOffset; 82 const ThisAdjustment &RHS) { 83 return LHS.NonVirtual == RHS.NonVirtual && 84 LHS.VCallOffsetOffset == RHS 51 operator ==(const ReturnAdjustment &LHS, const ReturnAdjustment &RHS) argument 57 operator <(const ReturnAdjustment &LHS, const ReturnAdjustment &RHS) argument 81 operator ==(const ThisAdjustment &LHS, const ThisAdjustment &RHS) argument 87 operator <(const ThisAdjustment &LHS, const ThisAdjustment &RHS) argument 111 operator ==(const ThunkInfo &LHS, const ThunkInfo &RHS) argument 115 operator <(const ThunkInfo &LHS, const ThunkInfo &RHS) argument [all...] |
/external/llvm/include/llvm/Support/ |
H A D | BranchProbability.h | 53 bool operator==(BranchProbability RHS) const { 54 return (uint64_t)N * RHS.D == (uint64_t)D * RHS.N; 56 bool operator!=(BranchProbability RHS) const { 57 return !(*this == RHS); 59 bool operator<(BranchProbability RHS) const { 60 return (uint64_t)N * RHS.D < (uint64_t)D * RHS.N; 62 bool operator>(BranchProbability RHS) const { 63 return RHS < *thi [all...] |
H A D | BlockFrequency.h | 42 bool operator<(const BlockFrequency &RHS) const { 43 return Frequency < RHS.Frequency; 46 bool operator<=(const BlockFrequency &RHS) const { 47 return Frequency <= RHS.Frequency; 50 bool operator>(const BlockFrequency &RHS) const { 51 return Frequency > RHS.Frequency; 54 bool operator>=(const BlockFrequency &RHS) const { 55 return Frequency >= RHS.Frequency;
|
H A D | NoFolder.h | 40 Instruction *CreateAdd(Constant *LHS, Constant *RHS, argument 42 BinaryOperator *BO = BinaryOperator::CreateAdd(LHS, RHS); 47 Instruction *CreateNSWAdd(Constant *LHS, Constant *RHS) const { 48 return BinaryOperator::CreateNSWAdd(LHS, RHS); 50 Instruction *CreateNUWAdd(Constant *LHS, Constant *RHS) const { 51 return BinaryOperator::CreateNUWAdd(LHS, RHS); 53 Instruction *CreateFAdd(Constant *LHS, Constant *RHS) const { 54 return BinaryOperator::CreateFAdd(LHS, RHS); 56 Instruction *CreateSub(Constant *LHS, Constant *RHS, argument 58 BinaryOperator *BO = BinaryOperator::CreateSub(LHS, RHS); 72 CreateMul(Constant *LHS, Constant *RHS, bool HasNUW = false, bool HasNSW = false) const argument 88 CreateUDiv(Constant *LHS, Constant *RHS, bool isExact = false) const argument 97 CreateSDiv(Constant *LHS, Constant *RHS, bool isExact = false) const argument 118 CreateShl(Constant *LHS, Constant *RHS, bool HasNUW = false, bool HasNSW = false) const argument 125 CreateLShr(Constant *LHS, Constant *RHS, bool isExact = false) const argument 131 CreateAShr(Constant *LHS, Constant *RHS, bool isExact = false) const argument [all...] |
H A D | PatternMatch.h | 297 BinaryOp_match(const LHS_t &LHS, const RHS_t &RHS) : L(LHS), R(RHS) {} argument 312 template<typename LHS, typename RHS> 313 inline BinaryOp_match<LHS, RHS, Instruction::Add> 314 m_Add(const LHS &L, const RHS &R) { 315 return BinaryOp_match<LHS, RHS, Instruction::Add>(L, R); 318 template<typename LHS, typename RHS> 319 inline BinaryOp_match<LHS, RHS, Instruction::FAdd> 320 m_FAdd(const LHS &L, const RHS &R) { 321 return BinaryOp_match<LHS, RHS, Instructio 428 BinOp2_match(const LHS_t &LHS, const RHS_t &RHS) argument 495 CmpClass_match(PredicateTy &Pred, const LHS_t &LHS, const RHS_t &RHS) argument 533 SelectClass_match(const Cond_t &Cond, const LHS_t &LHS, const RHS_t &RHS) argument 634 matchIfNot(Value *LHS, Value *RHS) argument 661 matchIfNeg(Value *LHS, Value *RHS) argument 687 matchIfFNeg(Value *LHS, Value *RHS) argument 738 MaxMin_match(const LHS_t &LHS, const RHS_t &RHS) argument 755 Value *RHS = Cmp->getOperand(1); local [all...] |
H A D | ConstantFolder.h | 34 Constant *CreateAdd(Constant *LHS, Constant *RHS, argument 36 return ConstantExpr::getAdd(LHS, RHS, HasNUW, HasNSW); 38 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const { 39 return ConstantExpr::getFAdd(LHS, RHS); 41 Constant *CreateSub(Constant *LHS, Constant *RHS, argument 43 return ConstantExpr::getSub(LHS, RHS, HasNUW, HasNSW); 45 Constant *CreateFSub(Constant *LHS, Constant *RHS) const { 46 return ConstantExpr::getFSub(LHS, RHS); 48 Constant *CreateMul(Constant *LHS, Constant *RHS, argument 50 return ConstantExpr::getMul(LHS, RHS, HasNU 55 CreateUDiv(Constant *LHS, Constant *RHS, bool isExact = false) const argument 59 CreateSDiv(Constant *LHS, Constant *RHS, bool isExact = false) const argument 75 CreateShl(Constant *LHS, Constant *RHS, bool HasNUW = false, bool HasNSW = false) const argument 79 CreateLShr(Constant *LHS, Constant *RHS, bool isExact = false) const argument 83 CreateAShr(Constant *LHS, Constant *RHS, bool isExact = false) const argument [all...] |
H A D | TargetFolder.h | 50 Constant *CreateAdd(Constant *LHS, Constant *RHS, argument 52 return Fold(ConstantExpr::getAdd(LHS, RHS, HasNUW, HasNSW)); 54 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const { 55 return Fold(ConstantExpr::getFAdd(LHS, RHS)); 57 Constant *CreateSub(Constant *LHS, Constant *RHS, argument 59 return Fold(ConstantExpr::getSub(LHS, RHS, HasNUW, HasNSW)); 61 Constant *CreateFSub(Constant *LHS, Constant *RHS) const { 62 return Fold(ConstantExpr::getFSub(LHS, RHS)); 64 Constant *CreateMul(Constant *LHS, Constant *RHS, argument 66 return Fold(ConstantExpr::getMul(LHS, RHS, HasNU 71 CreateUDiv(Constant *LHS, Constant *RHS, bool isExact = false) const argument 74 CreateSDiv(Constant *LHS, Constant *RHS, bool isExact = false) const argument 89 CreateShl(Constant *LHS, Constant *RHS, bool HasNUW = false, bool HasNSW = false) const argument 93 CreateLShr(Constant *LHS, Constant *RHS, bool isExact = false) const argument 96 CreateAShr(Constant *LHS, Constant *RHS, bool isExact = false) const argument [all...] |
H A D | ValueHandle.h | 72 ValueHandleBase(HandleBaseKind Kind, const ValueHandleBase &RHS) argument 73 : PrevPair(0, Kind), Next(0), VP(RHS.VP) { 75 AddToExistingUseList(RHS.getPrevPtr()); 82 Value *operator=(Value *RHS) { argument 83 if (VP.getPointer() == RHS) return RHS; 85 VP.setPointer(RHS); 87 return RHS; 90 Value *operator=(const ValueHandleBase &RHS) { argument 91 if (VP.getPointer() == RHS 148 WeakVH(const WeakVH &RHS) argument 151 operator =(Value *RHS) argument 154 operator =(const ValueHandleBase &RHS) argument 216 AssertingVH(const AssertingVH &RHS) argument 226 operator =(ValueTy *RHS) argument 230 operator =(const AssertingVH<ValueTy> &RHS) argument 264 isEqual(const AssertingVH<T> &LHS, const AssertingVH<T> &RHS) argument 329 TrackingVH(const TrackingVH &RHS) argument 335 operator =(ValueTy *RHS) argument 339 operator =(const TrackingVH<ValueTy> &RHS) argument 368 CallbackVH(const CallbackVH &RHS) argument [all...] |
H A D | SMLoc.h | 30 bool operator==(const SMLoc &RHS) const { return RHS.Ptr == Ptr; } 31 bool operator!=(const SMLoc &RHS) const { return RHS.Ptr != Ptr; }
|
/external/clang/test/Index/ |
H A D | cxx-operator-overload.cpp | 5 Cls operator +(const Cls &RHS); 13 Cls Cls::operator +(const Cls &RHS) { while (1) {} } argument
|
/external/clang/test/SemaCXX/ |
H A D | unused.cpp | 11 APSInt &operator=(const APSInt &RHS); 14 APSInt& APSInt::operator=(const APSInt &RHS) { argument 15 APInt::operator=(RHS);
|
H A D | warn-self-assign.cpp | 19 #define RHS a macro 24 a = RHS; 25 LHS OP RHS; local 28 #undef RHS macro
|
/external/clang/include/clang/Sema/ |
H A D | Weak.h | 38 bool operator==(WeakInfo RHS) const { 39 return alias == RHS.getAlias() && loc == RHS.getLocation(); 41 bool operator!=(WeakInfo RHS) const { return !(*this == RHS); }
|
/external/llvm/lib/Support/ |
H A D | SmallPtrSet.cpp | 199 void SmallPtrSetImpl::CopyFrom(const SmallPtrSetImpl &RHS) { 200 if (isSmall() && RHS.isSmall()) 201 assert(CurArraySize == RHS.CurArraySize && 205 if (RHS.isSmall()) { 210 } else if (CurArraySize != RHS.CurArraySize) { 212 CurArray = (const void**)malloc(sizeof(void*) * (RHS.CurArraySize+1)); 214 CurArray = (const void**)realloc(CurArray, sizeof(void*)*(RHS.CurArraySize+1)); 219 CurArraySize = RHS.CurArraySize; 222 memcpy(CurArray, RHS.CurArray, sizeof(void*)*(CurArraySize+1)); 224 NumElements = RHS [all...] |
/external/clang/include/clang/Analysis/Support/ |
H A D | BlkExprDeclBitVector.h | 104 bool operator==(const ValTy& RHS) const { 105 assert (sizesEqual(RHS)); 106 return DeclBV == RHS.DeclBV; 109 void copyValues(const ValTy& RHS) { DeclBV = RHS.DeclBV; } argument 133 ValTy& operator|=(const ValTy& RHS) { argument 134 assert (sizesEqual(RHS)); 135 DeclBV |= RHS.DeclBV; 139 ValTy& operator&=(const ValTy& RHS) { argument 140 assert (sizesEqual(RHS)); 145 OrDeclBits(const ValTy& RHS) argument 149 AndDeclBits(const ValTy& RHS) argument 245 copyValues(const ValTy& RHS) argument 267 OrBlkExprBits(const ValTy& RHS) argument 272 AndBlkExprBits(const ValTy& RHS) argument 277 operator |=(const ValTy& RHS) argument 284 operator &=(const ValTy& RHS) argument [all...] |
/external/clang/include/clang/Rewrite/Core/ |
H A D | DeltaTree.h | 32 // Note: Currently we only support copying when the RHS is empty. 33 DeltaTree(const DeltaTree &RHS);
|
/external/llvm/include/llvm/MC/ |
H A D | MCExpr.h | 338 const MCExpr *LHS, *RHS; member in class:llvm::MCBinaryExpr 341 : MCExpr(MCExpr::Binary), Op(_Op), LHS(_LHS), RHS(_RHS) {} 348 const MCExpr *RHS, MCContext &Ctx); 349 static const MCBinaryExpr *CreateAdd(const MCExpr *LHS, const MCExpr *RHS, argument 351 return Create(Add, LHS, RHS, Ctx); 353 static const MCBinaryExpr *CreateAnd(const MCExpr *LHS, const MCExpr *RHS, argument 355 return Create(And, LHS, RHS, Ctx); 357 static const MCBinaryExpr *CreateDiv(const MCExpr *LHS, const MCExpr *RHS, argument 359 return Create(Div, LHS, RHS, Ctx); 361 static const MCBinaryExpr *CreateEQ(const MCExpr *LHS, const MCExpr *RHS, argument 365 CreateGT(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument 369 CreateGTE(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument 373 CreateLAnd(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument 377 CreateLOr(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument 381 CreateLT(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument 385 CreateLTE(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument 389 CreateMod(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument 393 CreateMul(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument 397 CreateNE(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument 401 CreateOr(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument 405 CreateShl(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument 409 CreateShr(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument 413 CreateSub(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument 417 CreateXor(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx) argument [all...] |