| /freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/ |
| HD | SmallPtrSet.cpp | 144 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 …]
|
| HD | Z3Solver.cpp | 246 const llvm::fltSemantics &RHS) { in areEquivalent() argument 248 llvm::APFloat::semanticsPrecision(RHS)) && in areEquivalent() 250 llvm::APFloat::semanticsMinExponent(RHS)) && in areEquivalent() 252 llvm::APFloat::semanticsMaxExponent(RHS)) && in areEquivalent() 254 llvm::APFloat::semanticsSizeInBits(RHS)); in areEquivalent() 348 SMTExprRef mkBVAdd(const SMTExprRef &LHS, const SMTExprRef &RHS) override { in mkBVAdd() argument 351 toZ3Expr(*RHS).AST))); in mkBVAdd() 354 SMTExprRef mkBVSub(const SMTExprRef &LHS, const SMTExprRef &RHS) override { in mkBVSub() argument 357 toZ3Expr(*RHS).AST))); in mkBVSub() 360 SMTExprRef mkBVMul(const SMTExprRef &LHS, const SMTExprRef &RHS) override { in mkBVMul() argument [all …]
|
| HD | KnownBits.cpp | 19 const KnownBits &LHS, const KnownBits &RHS, in computeForAddCarry() argument 24 APInt PossibleSumZero = LHS.getMaxValue() + RHS.getMaxValue() + !CarryZero; in computeForAddCarry() 25 APInt PossibleSumOne = LHS.getMinValue() + RHS.getMinValue() + CarryOne; in computeForAddCarry() 28 APInt CarryKnownZero = ~(PossibleSumZero ^ LHS.Zero ^ RHS.Zero); in computeForAddCarry() 29 APInt CarryKnownOne = PossibleSumOne ^ LHS.One ^ RHS.One; in computeForAddCarry() 33 APInt RHSKnownUnion = RHS.Zero | RHS.One; in computeForAddCarry() 48 const KnownBits &LHS, const KnownBits &RHS, const KnownBits &Carry) { in computeForAddCarry() argument 51 LHS, RHS, Carry.Zero.getBoolValue(), Carry.One.getBoolValue()); in computeForAddCarry() 55 const KnownBits &LHS, KnownBits RHS) { in computeForAddSub() argument 60 LHS, RHS, /*CarryZero*/true, /*CarryOne*/false); in computeForAddSub() [all …]
|
| /freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ADT/ |
| HD | APSInt.h | 63 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 …]
|
| HD | SmallBitVector.h | 153 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 …]
|
| HD | APInt.h | 192 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 …]
|
| HD | DenseMapInfo.h | 56 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 …]
|
| HD | SparseBitVector.h | 68 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 …]
|
| HD | SmallString.h | 57 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 …]
|
| HD | APFloat.h | 599 opStatus addWithSpecial(const DoubleAPFloat &LHS, const DoubleAPFloat &RHS, 608 DoubleAPFloat(const DoubleAPFloat &RHS); 609 DoubleAPFloat(DoubleAPFloat &&RHS); 611 DoubleAPFloat &operator=(const DoubleAPFloat &RHS); 613 DoubleAPFloat &operator=(DoubleAPFloat &&RHS) { 614 if (this != &RHS) { 616 new (this) DoubleAPFloat(std::move(RHS)); 628 opStatus add(const DoubleAPFloat &RHS, roundingMode RM); 629 opStatus subtract(const DoubleAPFloat &RHS, roundingMode RM); 630 opStatus multiply(const DoubleAPFloat &RHS, roundingMode RM); [all …]
|
| /freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
| HD | TypeSize.h | 32 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 …]
|
| HD | BranchProbability.h | 91 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 …]
|
| HD | SMTAPI.h | 67 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 …]
|
| /freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/ |
| HD | AliasAnalysisSummary.h | 116 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 …]
|
| /freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Remarks/ |
| HD | Remark.h | 115 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 …]
|
| /freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/ |
| HD | LLVMContextImpl.h | 79 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 …]
|
| /freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
| HD | NoFolder.h | 41 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 …]
|
| HD | PatternMatch.h | 737 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 …]
|
| HD | ConstantFolder.h | 35 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 …]
|
| HD | ValueHandle.h | 39 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 …]
|
| /freebsd-11-stable/contrib/llvm-project/clang/include/clang/Basic/ |
| HD | ABI.h | 79 bool Less(const VirtualAdjustment &RHS) const { in Less() argument 80 return memcmp(this, &RHS, sizeof(RHS)) < 0; in Less() 89 const ReturnAdjustment &RHS) { 90 return LHS.NonVirtual == RHS.NonVirtual && LHS.Virtual.Equals(RHS.Virtual); 93 friend bool operator!=(const ReturnAdjustment &LHS, const ReturnAdjustment &RHS) { 94 return !(LHS == RHS); 98 const ReturnAdjustment &RHS) { 99 if (LHS.NonVirtual < RHS.NonVirtual) 102 return LHS.NonVirtual == RHS.NonVirtual && LHS.Virtual.Less(RHS.Virtual); 147 bool Less(const VirtualAdjustment &RHS) const { in Less() argument [all …]
|
| /freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| HD | TargetFolder.h | 48 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 …]
|
| /freebsd-11-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| HD | SMTConv.h | 93 const llvm::SMTExprRef &RHS, in fromBinOp() argument 95 assert(*Solver->getSort(LHS) == *Solver->getSort(RHS) && in fromBinOp() 101 return Solver->mkBVMul(LHS, RHS); in fromBinOp() 104 return isSigned ? Solver->mkBVSDiv(LHS, RHS) : Solver->mkBVUDiv(LHS, RHS); in fromBinOp() 107 return isSigned ? Solver->mkBVSRem(LHS, RHS) : Solver->mkBVURem(LHS, RHS); in fromBinOp() 111 return Solver->mkBVAdd(LHS, RHS); in fromBinOp() 114 return Solver->mkBVSub(LHS, RHS); in fromBinOp() 118 return Solver->mkBVShl(LHS, RHS); in fromBinOp() 121 return isSigned ? Solver->mkBVAshr(LHS, RHS) : Solver->mkBVLshr(LHS, RHS); in fromBinOp() 125 return isSigned ? Solver->mkBVSlt(LHS, RHS) : Solver->mkBVUlt(LHS, RHS); in fromBinOp() [all …]
|
| /freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/MC/ |
| HD | MCExpr.h | 453 const MCExpr *LHS, *RHS; variable 455 MCBinaryExpr(Opcode Op, const MCExpr *LHS, const MCExpr *RHS, 457 : MCExpr(MCExpr::Binary, Loc), Op(Op), LHS(LHS), RHS(RHS) {} in MCExpr() 464 const MCExpr *RHS, MCContext &Ctx, 467 static const MCBinaryExpr *createAdd(const MCExpr *LHS, const MCExpr *RHS, in createAdd() argument 469 return create(Add, LHS, RHS, Ctx); in createAdd() 472 static const MCBinaryExpr *createAnd(const MCExpr *LHS, const MCExpr *RHS, in createAnd() argument 474 return create(And, LHS, RHS, Ctx); in createAnd() 477 static const MCBinaryExpr *createDiv(const MCExpr *LHS, const MCExpr *RHS, in createDiv() argument 479 return create(Div, LHS, RHS, Ctx); in createDiv() [all …]
|
| /freebsd-11-stable/contrib/llvm-project/clang/include/clang/Edit/ |
| HD | FileOffset.h | 37 friend bool operator==(FileOffset LHS, FileOffset RHS) { 38 return LHS.FID == RHS.FID && LHS.Offs == RHS.Offs; 41 friend bool operator!=(FileOffset LHS, FileOffset RHS) { 42 return !(LHS == RHS); 45 friend bool operator<(FileOffset LHS, FileOffset RHS) { 46 return std::tie(LHS.FID, LHS.Offs) < std::tie(RHS.FID, RHS.Offs); 49 friend bool operator>(FileOffset LHS, FileOffset RHS) { 50 return RHS < LHS; 53 friend bool operator>=(FileOffset LHS, FileOffset RHS) { 54 return !(LHS < RHS); [all …]
|