/external/clang/include/clang/Edit/ |
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; [all...] |
/external/clang/include/clang/Basic/ |
ABI.h | 85 friend bool operator==(const ReturnAdjustment &LHS, 87 return LHS.NonVirtual == RHS.NonVirtual && LHS.Virtual.Equals(RHS.Virtual); 90 friend bool operator!=(const ReturnAdjustment &LHS, const ReturnAdjustment &RHS) { 91 return !(LHS == RHS); 94 friend bool operator<(const ReturnAdjustment &LHS, 96 if (LHS.NonVirtual < RHS.NonVirtual) 99 return LHS.NonVirtual == RHS.NonVirtual && LHS.Virtual.Less(RHS.Virtual); 153 friend bool operator==(const ThisAdjustment &LHS, [all...] |
/external/llvm/include/llvm/IR/ |
NoFolder.h | 40 Instruction *CreateAdd(Constant *LHS, Constant *RHS, 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, 58 BinaryOperator *BO = BinaryOperator::CreateSub(LHS, RHS) [all...] |
PatternMatch.h | 378 BinaryOp_match(const LHS_t &LHS, const RHS_t &RHS) : L(LHS), R(RHS) {} 393 template<typename LHS, typename RHS> 394 inline BinaryOp_match<LHS, RHS, Instruction::Add> 395 m_Add(const LHS &L, const RHS &R) { 396 return BinaryOp_match<LHS, RHS, Instruction::Add>(L, R); 399 template<typename LHS, typename RHS> 400 inline BinaryOp_match<LHS, RHS, Instruction::FAdd> 401 m_FAdd(const LHS &L, const RHS &R) { 402 return BinaryOp_match<LHS, RHS, Instruction::FAdd>(L, R) [all...] |
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 { 39 return ConstantExpr::getFAdd(LHS, RHS); 41 Constant *CreateSub(Constant *LHS, Constant *RHS, 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, 50 return ConstantExpr::getMul(LHS, RHS, HasNUW, HasNSW) [all...] |
IRBuilder.h | 612 Value *LHS, Value *RHS, 615 BinaryOperator *BO = Insert(BinaryOperator::Create(Opc, LHS, RHS), Name); 632 Value *CreateAdd(Value *LHS, Value *RHS, const Twine &Name = "", 634 if (Constant *LC = dyn_cast<Constant>(LHS)) 637 return CreateInsertNUWNSWBinOp(Instruction::Add, LHS, RHS, Name, 640 Value *CreateNSWAdd(Value *LHS, Value *RHS, const Twine &Name = "") { 641 return CreateAdd(LHS, RHS, Name, false, true); 643 Value *CreateNUWAdd(Value *LHS, Value *RHS, const Twine &Name = "") { 644 return CreateAdd(LHS, RHS, Name, true, false); 646 Value *CreateFAdd(Value *LHS, Value *RHS, const Twine &Name = "" [all...] |
/external/clang/lib/Analysis/ |
ThreadSafetyLogical.cpp | 19 // to keep track of whether LHS and RHS are negated. 20 static bool implies(const LExpr *LHS, bool LNeg, const LExpr *RHS, bool RNeg) { 29 return implies(LHS, LNeg, A->left(), RNeg) && 30 implies(LHS, LNeg, A->right(), RNeg); 39 return implies(LHS, LNeg, A->left(), RNeg) || 40 implies(LHS, LNeg, A->right(), RNeg); 61 // to return !implies(LHS, RHS). 62 return implies(LHS, LNeg, cast<Not>(RHS)->exp(), !RNeg); 69 switch (LHS->kind()) { 75 return LNeg ? LeftAndOperator(cast<And>(LHS)) [all...] |
/system/core/include/utils/ |
Debug.h | 39 template<typename LHS, typename RHS> 40 struct CompileTimeIfElse<true, LHS, RHS> { typedef LHS TYPE; }; 41 template<typename LHS, typename RHS> 42 struct CompileTimeIfElse<false, LHS, RHS> { typedef RHS TYPE; };
|
/external/llvm/include/llvm/MC/ |
MCTargetOptions.h | 36 inline bool operator==(const MCTargetOptions &LHS, const MCTargetOptions &RHS) { 37 #define ARE_EQUAL(X) LHS.X == RHS.X 50 inline bool operator!=(const MCTargetOptions &LHS, const MCTargetOptions &RHS) { 51 return !(LHS == RHS);
|
YAML.h | 49 friend bool operator==(const BinaryRef &LHS, const BinaryRef &RHS); 79 inline bool operator==(const BinaryRef &LHS, const BinaryRef &RHS) { 81 if (LHS.Data.empty() && RHS.Data.empty()) 84 return LHS.DataIsHexString == RHS.DataIsHexString && LHS.Data == RHS.Data;
|
MCExpr.h | 409 const MCExpr *LHS, *RHS; 412 : MCExpr(MCExpr::Binary), Op(_Op), LHS(_LHS), RHS(_RHS) {} 418 static const MCBinaryExpr *Create(Opcode Op, const MCExpr *LHS, 420 static const MCBinaryExpr *CreateAdd(const MCExpr *LHS, const MCExpr *RHS, 422 return Create(Add, LHS, RHS, Ctx); 424 static const MCBinaryExpr *CreateAnd(const MCExpr *LHS, const MCExpr *RHS, 426 return Create(And, LHS, RHS, Ctx); 428 static const MCBinaryExpr *CreateDiv(const MCExpr *LHS, const MCExpr *RHS, 430 return Create(Div, LHS, RHS, Ctx); 432 static const MCBinaryExpr *CreateEQ(const MCExpr *LHS, const MCExpr *RHS [all...] |
/external/clang/include/clang/Analysis/Analyses/ |
ThreadSafetyLogical.h | 56 LExpr *LHS, *RHS; 59 BinOp(LExpr *LHS, LExpr *RHS, Opcode Code) : LExpr(Code), LHS(LHS), RHS(RHS) {} 62 const LExpr *left() const { return LHS; } 63 LExpr *left() { return LHS; } 71 And(LExpr *LHS, LExpr *RHS) : BinOp(LHS, RHS, LExpr::And) {} 78 Or(LExpr *LHS, LExpr *RHS) : BinOp(LHS, RHS, LExpr::Or) { [all...] |
/external/llvm/include/llvm/Analysis/ |
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 { 55 return Fold(ConstantExpr::getFAdd(LHS, RHS)); 57 Constant *CreateSub(Constant *LHS, Constant *RHS, 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, 66 return Fold(ConstantExpr::getMul(LHS, RHS, HasNUW, HasNSW)) [all...] |
InstructionSimplify.h | 50 Value *SimplifyAddInst(Value *LHS, Value *RHS, bool isNSW, bool isNUW, 57 Value *SimplifySubInst(Value *LHS, Value *RHS, bool isNSW, bool isNUW, 64 Value *SimplifyFAddInst(Value *LHS, Value *RHS, FastMathFlags FMF, 71 Value *SimplifyFSubInst(Value *LHS, Value *RHS, FastMathFlags FMF, 78 Value *SimplifyFMulInst(Value *LHS, Value *RHS, 86 Value *SimplifyMulInst(Value *LHS, Value *RHS, const DataLayout *TD = nullptr, 92 Value *SimplifySDivInst(Value *LHS, Value *RHS, 99 Value *SimplifyUDivInst(Value *LHS, Value *RHS, 106 Value *SimplifyFDivInst(Value *LHS, Value *RHS, 113 Value *SimplifySRemInst(Value *LHS, Value *RHS [all...] |
/external/llvm/include/llvm/ADT/ |
Twine.h | 150 /// LHS - The prefix in the concatenation, which may be uninitialized for 152 Child LHS; 173 LHS.twine = &_LHS; 181 : LHS(_LHS), RHS(_RHS), LHSKind(_LHSKind), RHSKind(_RHSKind) { 225 // The RHS cannot be non-empty if the LHS is empty. 231 !LHS.twine->isBinary()) 270 LHS.cString = Str; 281 LHS.stdString = &Str; 288 LHS.stringRef = &Str; 295 LHS.character = Val [all...] |
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; } 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, [all...] |
/external/llvm/include/llvm/Support/ |
LineIterator.h | 70 friend bool operator==(const line_iterator &LHS, const line_iterator &RHS) { 71 return LHS.Buffer == RHS.Buffer && 72 LHS.CurrentLine.begin() == RHS.CurrentLine.begin(); 75 friend bool operator!=(const line_iterator &LHS, const line_iterator &RHS) { 76 return !(LHS == RHS);
|
/external/clang/test/SemaCXX/ |
warn-self-assign.cpp | 21 #define LHS a 26 LHS = a; 28 LHS OP RHS; 30 #undef LHS
|
/external/clang/include/clang/Lex/ |
PPConditionalDirectiveRecord.h | 46 bool operator()(const CondDirectiveLoc &LHS, 48 return SM.isBeforeInTranslationUnit(LHS.getLoc(), RHS.getLoc()); 50 bool operator()(const CondDirectiveLoc &LHS, SourceLocation RHS) { 51 return SM.isBeforeInTranslationUnit(LHS.getLoc(), RHS); 53 bool operator()(SourceLocation LHS, const CondDirectiveLoc &RHS) { 54 return SM.isBeforeInTranslationUnit(LHS, RHS.getLoc()); 80 bool areInDifferentConditionalDirectiveRegion(SourceLocation LHS, 82 return findConditionalDirectiveRegionLoc(LHS) !=
|
/external/clang/include/clang/AST/ |
BaseSubobject.h | 46 friend bool operator==(const BaseSubobject &LHS, const BaseSubobject &RHS) { 47 return LHS.Base == RHS.Base && LHS.BaseOffset == RHS.BaseOffset; 74 static bool isEqual(const clang::BaseSubobject &LHS, 76 return LHS == RHS;
|
TypeOrdering.h | 53 static bool isEqual(clang::QualType LHS, clang::QualType RHS) { 54 return LHS == RHS; 73 static bool isEqual(clang::CanQualType LHS, clang::CanQualType RHS) { 74 return LHS == RHS;
|
/external/llvm/lib/CodeGen/ |
MachineModuleInfoImpls.cpp | 27 static int SortSymbolPair(const void *LHS, const void *RHS) { 29 const MCSymbol *LHSS = ((const PairTy *)LHS)->first;
|
/external/compiler-rt/lib/ubsan/ |
ubsan_handlers.cc | 66 ValueHandle LHS, 76 << Value(Data->Type, LHS) << Operator << RHS << Data->Type; 80 ValueHandle LHS, ValueHandle RHS) { 81 HandleIntegerOverflow(Data, LHS, "+", Value(Data->Type, RHS)); 84 ValueHandle LHS, 86 __ubsan_handle_add_overflow(Data, LHS, RHS); 91 ValueHandle LHS, ValueHandle RHS) { 92 HandleIntegerOverflow(Data, LHS, "-", Value(Data->Type, RHS)); 95 ValueHandle LHS, 97 __ubsan_handle_sub_overflow(Data, LHS, RHS) [all...] |
ubsan_handlers.h | 44 RECOVERABLE(add_overflow, OverflowData *Data, ValueHandle LHS, ValueHandle RHS) 47 RECOVERABLE(sub_overflow, OverflowData *Data, ValueHandle LHS, ValueHandle RHS) 50 RECOVERABLE(mul_overflow, OverflowData *Data, ValueHandle LHS, ValueHandle RHS) 57 ValueHandle LHS, ValueHandle RHS) 66 /// the LHS is negative or overflows. 68 ValueHandle LHS, ValueHandle RHS)
|
/external/llvm/include/llvm/Transforms/Utils/ |
CmpInstAnalysis.h | 56 Value *getICmpValue(bool Sign, unsigned Code, Value *LHS, Value *RHS,
|