/external/llvm/include/llvm/IR/ |
D | NoFolder.h | 40 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 …]
|
D | PatternMatch.h | 396 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() 436 return BinaryOp_match<LHS, RHS, Instruction::Add>(L, R); in m_Add() 439 template <typename LHS, typename RHS> 440 inline BinaryOp_match<LHS, RHS, Instruction::FAdd> m_FAdd(const LHS &L, in m_FAdd() [all …]
|
D | ConstantFolder.h | 34 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 …]
|
D | IRBuilder.h | 674 Value *LHS, Value *RHS, in CreateInsertNUWNSWBinOp() argument 677 BinaryOperator *BO = Insert(BinaryOperator::Create(Opc, LHS, RHS), Name); in CreateInsertNUWNSWBinOp() 694 Value *CreateAdd(Value *LHS, Value *RHS, const Twine &Name = "", 696 if (Constant *LC = dyn_cast<Constant>(LHS)) 699 return CreateInsertNUWNSWBinOp(Instruction::Add, LHS, RHS, Name, 702 Value *CreateNSWAdd(Value *LHS, Value *RHS, const Twine &Name = "") { 703 return CreateAdd(LHS, RHS, Name, false, true); 705 Value *CreateNUWAdd(Value *LHS, Value *RHS, const Twine &Name = "") { 706 return CreateAdd(LHS, RHS, Name, true, false); 708 Value *CreateFAdd(Value *LHS, Value *RHS, const Twine &Name = "", [all …]
|
/external/llvm/include/llvm/ADT/ |
D | Twine.h | 154 Child LHS; 171 explicit Twine(const Twine &LHS, const Twine &RHS) in Twine() argument 173 this->LHS.twine = &LHS; in Twine() 179 explicit Twine(Child LHS, NodeKind LHSKind, Child RHS, NodeKind RHSKind) in Twine() argument 180 : LHS(LHS), RHS(RHS), LHSKind(LHSKind), RHSKind(RHSKind) { in Twine() 230 !LHS.twine->isBinary()) in isValid() 271 LHS.cString = Str; in Twine() 282 LHS.stdString = &Str; in Twine() 289 LHS.stringRef = &Str; in Twine() 296 LHS.smallString = &Str; in Twine() [all …]
|
D | DenseMapInfo.h | 47 static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; } 55 static bool isEqual(const char &LHS, const char &RHS) { 56 return LHS == RHS; 65 static bool isEqual(const unsigned& LHS, const unsigned& RHS) { 66 return LHS == RHS; 77 static bool isEqual(const unsigned long& LHS, const unsigned long& RHS) { 78 return LHS == RHS; 89 static bool isEqual(const unsigned long long& LHS, 91 return LHS == RHS; 100 static bool isEqual(const int& LHS, const int& RHS) { [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | TargetFolder.h | 50 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 …]
|
D | InstructionSimplify.h | 51 Value *SimplifyAddInst(Value *LHS, Value *RHS, bool isNSW, bool isNUW, 60 Value *SimplifySubInst(Value *LHS, Value *RHS, bool isNSW, bool isNUW, 69 Value *SimplifyFAddInst(Value *LHS, Value *RHS, FastMathFlags FMF, 78 Value *SimplifyFSubInst(Value *LHS, Value *RHS, FastMathFlags FMF, 87 Value *SimplifyFMulInst(Value *LHS, Value *RHS, FastMathFlags FMF, 96 Value *SimplifyMulInst(Value *LHS, Value *RHS, const DataLayout &DL, 104 Value *SimplifySDivInst(Value *LHS, Value *RHS, const DataLayout &DL, 112 Value *SimplifyUDivInst(Value *LHS, Value *RHS, const DataLayout &DL, 120 Value *SimplifyFDivInst(Value *LHS, Value *RHS, FastMathFlags FMF, 129 Value *SimplifySRemInst(Value *LHS, Value *RHS, const DataLayout &DL, [all …]
|
/external/clang/include/clang/Basic/ |
D | ABI.h | 89 friend bool operator==(const ReturnAdjustment &LHS, 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); 98 friend bool operator<(const ReturnAdjustment &LHS, 100 if (LHS.NonVirtual < RHS.NonVirtual) 103 return LHS.NonVirtual == RHS.NonVirtual && LHS.Virtual.Less(RHS.Virtual); 157 friend bool operator==(const ThisAdjustment &LHS, 159 return LHS.NonVirtual == RHS.NonVirtual && LHS.Virtual.Equals(RHS.Virtual); 162 friend bool operator!=(const ThisAdjustment &LHS, const ThisAdjustment &RHS) { [all …]
|
/external/clang/include/clang/Edit/ |
D | FileOffset.h | 37 friend bool operator==(FileOffset LHS, FileOffset RHS) { 38 return LHS.FID == RHS.FID && LHS.Offs == RHS.Offs; 40 friend bool operator!=(FileOffset LHS, FileOffset RHS) { 41 return !(LHS == RHS); 43 friend bool operator<(FileOffset LHS, FileOffset RHS) { 44 return std::tie(LHS.FID, LHS.Offs) < std::tie(RHS.FID, RHS.Offs); 46 friend bool operator>(FileOffset LHS, FileOffset RHS) { 47 return RHS < LHS; 49 friend bool operator>=(FileOffset LHS, FileOffset RHS) { 50 return !(LHS < RHS); [all …]
|
/external/llvm/include/llvm/MC/ |
D | MCExpr.h | 423 const MCExpr *LHS, *RHS; variable 425 MCBinaryExpr(Opcode Op, const MCExpr *LHS, const MCExpr *RHS) in MCBinaryExpr() argument 426 : MCExpr(MCExpr::Binary), Op(Op), LHS(LHS), RHS(RHS) {} in MCBinaryExpr() 432 static const MCBinaryExpr *Create(Opcode Op, const MCExpr *LHS, 434 static const MCBinaryExpr *CreateAdd(const MCExpr *LHS, const MCExpr *RHS, in CreateAdd() argument 436 return Create(Add, LHS, RHS, Ctx); in CreateAdd() 438 static const MCBinaryExpr *CreateAnd(const MCExpr *LHS, const MCExpr *RHS, in CreateAnd() argument 440 return Create(And, LHS, RHS, Ctx); in CreateAnd() 442 static const MCBinaryExpr *CreateDiv(const MCExpr *LHS, const MCExpr *RHS, in CreateDiv() argument 444 return Create(Div, LHS, RHS, Ctx); in CreateDiv() [all …]
|
/external/clang/lib/Analysis/ |
D | ThreadSafetyLogical.cpp | 20 static bool implies(const LExpr *LHS, bool LNeg, const LExpr *RHS, bool RNeg) { in implies() argument 29 return implies(LHS, LNeg, A->left(), RNeg) && in implies() 30 implies(LHS, LNeg, A->right(), RNeg); in implies() 39 return implies(LHS, LNeg, A->left(), RNeg) || in implies() 40 implies(LHS, LNeg, A->right(), RNeg); in implies() 62 return implies(LHS, LNeg, cast<Not>(RHS)->exp(), !RNeg); in implies() 69 switch (LHS->kind()) { in implies() 75 return LNeg ? LeftAndOperator(cast<And>(LHS)) in implies() 76 : LeftOrOperator(cast<And>(LHS)); in implies() 82 return LNeg ? LeftOrOperator(cast<Or>(LHS)) in implies() [all …]
|
/external/clang/lib/Lex/ |
D | PPExpressions.cpp | 57 static bool EvaluateDirectiveSubExpr(PPValue &LHS, unsigned MinPrec, 462 static bool EvaluateDirectiveSubExpr(PPValue &LHS, unsigned MinPrec, in EvaluateDirectiveSubExpr() argument 469 << LHS.getRange(); in EvaluateDirectiveSubExpr() 487 if (Operator == tok::ampamp && LHS.Val == 0) in EvaluateDirectiveSubExpr() 489 else if (Operator == tok::pipepipe && LHS.Val != 0) in EvaluateDirectiveSubExpr() 491 else if (Operator == tok::question && LHS.Val == 0) in EvaluateDirectiveSubExpr() 500 PPValue RHS(LHS.getBitWidth()); in EvaluateDirectiveSubExpr() 543 llvm::APSInt Res(LHS.getBitWidth()); in EvaluateDirectiveSubExpr() 553 Res.setIsUnsigned(LHS.isUnsigned()|RHS.isUnsigned()); in EvaluateDirectiveSubExpr() 557 if (!LHS.isUnsigned() && LHS.Val.isNegative()) in EvaluateDirectiveSubExpr() [all …]
|
/external/llvm/include/llvm/ExecutionEngine/ |
D | JITSymbolFlags.h | 28 inline JITSymbolFlags operator|(JITSymbolFlags LHS, JITSymbolFlags RHS) { 31 static_cast<UT>(LHS) | static_cast<UT>(RHS)); 34 inline JITSymbolFlags& operator |=(JITSymbolFlags &LHS, JITSymbolFlags RHS) { 35 LHS = LHS | RHS; 36 return LHS; 39 inline JITSymbolFlags operator&(JITSymbolFlags LHS, JITSymbolFlags RHS) { 42 static_cast<UT>(LHS) & static_cast<UT>(RHS)); 45 inline JITSymbolFlags& operator &=(JITSymbolFlags &LHS, JITSymbolFlags RHS) { 46 LHS = LHS & RHS; 47 return LHS;
|
/external/clang/lib/Tooling/Core/ |
D | Replacement.cpp | 87 bool operator<(const Replacement &LHS, const Replacement &RHS) { in operator <() argument 88 if (LHS.getOffset() != RHS.getOffset()) in operator <() 89 return LHS.getOffset() < RHS.getOffset(); in operator <() 90 if (LHS.getLength() != RHS.getLength()) in operator <() 91 return LHS.getLength() < RHS.getLength(); in operator <() 92 if (LHS.getFilePath() != RHS.getFilePath()) in operator <() 93 return LHS.getFilePath() < RHS.getFilePath(); in operator <() 94 return LHS.getReplacementText() < RHS.getReplacementText(); in operator <() 97 bool operator==(const Replacement &LHS, const Replacement &RHS) { in operator ==() argument 98 return LHS.getOffset() == RHS.getOffset() && in operator ==() [all …]
|
/external/clang/include/clang/Analysis/Analyses/ |
D | ThreadSafetyLogical.h | 56 LExpr *LHS, *RHS; variable 59 BinOp(LExpr *LHS, LExpr *RHS, Opcode Code) : LExpr(Code), LHS(LHS), RHS(RHS) {} in BinOp() argument 62 const LExpr *left() const { return LHS; } in left() 63 LExpr *left() { return LHS; } in left() 71 And(LExpr *LHS, LExpr *RHS) : BinOp(LHS, RHS, LExpr::And) {} in And() argument 78 Or(LExpr *LHS, LExpr *RHS) : BinOp(LHS, RHS, LExpr::Or) {} in Or() argument 97 bool implies(const LExpr *LHS, const LExpr *RHS);
|
/external/llvm/include/llvm/CodeGen/ |
D | MachineMemOperand.h | 203 friend bool operator==(const MachineMemOperand &LHS, 205 return LHS.getValue() == RHS.getValue() && 206 LHS.getPseudoValue() == RHS.getPseudoValue() && 207 LHS.getSize() == RHS.getSize() && 208 LHS.getOffset() == RHS.getOffset() && 209 LHS.getFlags() == RHS.getFlags() && 210 LHS.getAAInfo() == RHS.getAAInfo() && 211 LHS.getRanges() == RHS.getRanges() && 212 LHS.getAlignment() == RHS.getAlignment() && 213 LHS.getAddrSpace() == RHS.getAddrSpace(); [all …]
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 89 static bool isSameCompare(Value *V, CmpInst::Predicate Pred, Value *LHS, in isSameCompare() argument 96 if (CPred == Pred && CLHS == LHS && CRHS == RHS) in isSameCompare() 99 CRHS == LHS; in isSameCompare() 138 static Value *ExpandBinOp(unsigned Opcode, Value *LHS, Value *RHS, in ExpandBinOp() argument 147 if (BinaryOperator *Op0 = dyn_cast<BinaryOperator>(LHS)) in ExpandBinOp() 159 return LHS; in ExpandBinOp() 173 Value *A = LHS, *B = Op1->getOperand(0), *C = Op1->getOperand(1); in ExpandBinOp() 197 static Value *SimplifyAssociativeBinOp(unsigned Opc, Value *LHS, Value *RHS, in SimplifyAssociativeBinOp() argument 206 BinaryOperator *Op0 = dyn_cast<BinaryOperator>(LHS); in SimplifyAssociativeBinOp() 219 if (V == B) return LHS; in SimplifyAssociativeBinOp() [all …]
|
/external/llvm/include/llvm/ProfileData/ |
D | CoverageMapping.h | 68 friend bool operator==(const Counter &LHS, const Counter &RHS) { 69 return LHS.Kind == RHS.Kind && LHS.ID == RHS.ID; 72 friend bool operator!=(const Counter &LHS, const Counter &RHS) { 73 return !(LHS == RHS); 76 friend bool operator<(const Counter &LHS, const Counter &RHS) { 77 return std::tie(LHS.Kind, LHS.ID) < std::tie(RHS.Kind, RHS.ID); 100 Counter LHS, RHS; member 102 CounterExpression(ExprKind Kind, Counter LHS, Counter RHS) in CounterExpression() 103 : Kind(Kind), LHS(LHS), RHS(RHS) {} in CounterExpression() 139 Counter add(Counter LHS, Counter RHS); [all …]
|
/external/clang/lib/CodeGen/ |
D | CGExprComplex.cpp | 219 ComplexPairTy LHS; member 537 if (Op.LHS.first->getType()->isFloatingPointTy()) { in EmitBinAdd() 538 ResR = Builder.CreateFAdd(Op.LHS.first, Op.RHS.first, "add.r"); in EmitBinAdd() 539 if (Op.LHS.second && Op.RHS.second) in EmitBinAdd() 540 ResI = Builder.CreateFAdd(Op.LHS.second, Op.RHS.second, "add.i"); in EmitBinAdd() 542 ResI = Op.LHS.second ? Op.LHS.second : Op.RHS.second; in EmitBinAdd() 545 ResR = Builder.CreateAdd(Op.LHS.first, Op.RHS.first, "add.r"); in EmitBinAdd() 546 assert(Op.LHS.second && Op.RHS.second && in EmitBinAdd() 548 ResI = Builder.CreateAdd(Op.LHS.second, Op.RHS.second, "add.i"); in EmitBinAdd() 555 if (Op.LHS.first->getType()->isFloatingPointTy()) { in EmitBinSub() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | NaryReassociate.cpp | 126 Instruction *tryReassociateAdd(Value *LHS, Value *RHS, Instruction *I); 128 Instruction *tryReassociatedAdd(const SCEV *LHS, Value *RHS, Instruction *I); 202 Value *LHS = I->getOperand(0), *RHS = I->getOperand(1); in tryReassociateAdd() local 203 if (auto *NewI = tryReassociateAdd(LHS, RHS, I)) in tryReassociateAdd() 205 if (auto *NewI = tryReassociateAdd(RHS, LHS, I)) in tryReassociateAdd() 210 Instruction *NaryReassociate::tryReassociateAdd(Value *LHS, Value *RHS, in tryReassociateAdd() argument 214 if (LHS->hasOneUse() && match(LHS, m_Add(m_Value(A), m_Value(B)))) { in tryReassociateAdd() 243 Instruction *LHS = LHSCandidates.back(); in tryReassociatedAdd() local 244 if (DT->dominates(LHS, I)) { in tryReassociatedAdd() 245 Instruction *NewI = BinaryOperator::CreateAdd(LHS, RHS, "", I); in tryReassociatedAdd()
|
/external/clang/include/clang/Lex/ |
D | PPConditionalDirectiveRecord.h | 46 bool operator()(const CondDirectiveLoc &LHS, in operator() 48 return SM.isBeforeInTranslationUnit(LHS.getLoc(), RHS.getLoc()); in operator() 50 bool operator()(const CondDirectiveLoc &LHS, SourceLocation RHS) { in operator() 51 return SM.isBeforeInTranslationUnit(LHS.getLoc(), RHS); in operator() 53 bool operator()(SourceLocation LHS, const CondDirectiveLoc &RHS) { in operator() 54 return SM.isBeforeInTranslationUnit(LHS, RHS.getLoc()); in operator() 80 bool areInDifferentConditionalDirectiveRegion(SourceLocation LHS, in areInDifferentConditionalDirectiveRegion() argument 82 return findConditionalDirectiveRegionLoc(LHS) != in areInDifferentConditionalDirectiveRegion()
|
/external/llvm/test/CodeGen/AArch64/ |
D | cond-sel.ll | 22 ; CHECK: cmp [[LHS:x[0-9]+]], w[[RHS]], sxtw 23 ; CHECK: csel {{x[0-9]+}}, [[LHS]], [[EXT_RHS]], le 66 ; CHECK: cmp [[LHS:w[0-9]+]], [[RHS:w[0-9]+]] 67 ; CHECK: csinc {{w[0-9]+}}, [[LHS]], [[RHS]], ls 74 ; CHECK: cmp [[LHS:w[0-9]+]], {{w[0-9]+}} 75 ; CHECK: csinc {{w[0-9]+}}, [[LHS]], {{w[0-9]+}}, le 83 ; CHECK: cmp [[LHS:x[0-9]+]], {{w[0-9]+}} 84 ; CHECK: csinc {{x[0-9]+}}, [[LHS]], {{x[0-9]+}}, ls 91 ; CHECK: cmp [[LHS:x[0-9]+]], {{w[0-9]+}} 92 ; CHECK: csinc {{x[0-9]+}}, [[LHS]], {{x[0-9]+}}, le [all …]
|
/external/clang/lib/Parse/ |
D | ParseExpr.cpp | 121 ExprResult LHS(ParseAssignmentExpression(isTypeCast)); in ParseExpression() local 122 return ParseRHSOfBinaryExpression(LHS, prec::Comma); in ParseExpression() 132 ExprResult LHS(ParseObjCAtExpression(AtLoc)); in ParseExpressionWithLeadingAt() local 133 return ParseRHSOfBinaryExpression(LHS, prec::Comma); in ParseExpressionWithLeadingAt() 141 ExprResult LHS(true); in ParseExpressionWithLeadingExtension() local 146 LHS = ParseCastExpression(false); in ParseExpressionWithLeadingExtension() 149 if (!LHS.isInvalid()) in ParseExpressionWithLeadingExtension() 150 LHS = Actions.ActOnUnaryOp(getCurScope(), ExtLoc, tok::kw___extension__, in ParseExpressionWithLeadingExtension() 151 LHS.get()); in ParseExpressionWithLeadingExtension() 153 return ParseRHSOfBinaryExpression(LHS, prec::Comma); in ParseExpressionWithLeadingExtension() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 71 static Value *getNewICmpValue(bool Sign, unsigned Code, Value *LHS, Value *RHS, in getNewICmpValue() argument 74 if (Value *NewConstant = getICmpValue(Sign, Code, LHS, RHS, NewPred)) in getNewICmpValue() 76 return Builder->CreateICmp(NewPred, LHS, RHS); in getNewICmpValue() 83 Value *LHS, Value *RHS, in getFCmpValue() argument 96 if (!isordered) return ConstantInt::getTrue(LHS->getContext()); in getFCmpValue() 99 return Builder->CreateFCmp(Pred, LHS, RHS); in getFCmpValue() 369 Value *InstCombiner::FoldLogicalPlusAnd(Value *LHS, Value *RHS, in FoldLogicalPlusAnd() argument 372 Instruction *LHSI = dyn_cast<Instruction>(LHS); in FoldLogicalPlusAnd() 594 ICmpInst *LHS, ICmpInst *RHS, in foldLogOpOfMaskedICmpsHelper() argument 597 if (LHS->getOperand(0)->getType() != RHS->getOperand(0)->getType()) return 0; in foldLogOpOfMaskedICmpsHelper() [all …]
|