/external/clang/lib/Lex/ |
PPExpressions.cpp | 57 static bool EvaluateDirectiveSubExpr(PPValue &LHS, unsigned MinPrec, 452 /// PeekTok, and whose precedence is PeekPrec. This returns the result in LHS. 457 static bool EvaluateDirectiveSubExpr(PPValue &LHS, unsigned MinPrec, 464 << LHS.getRange(); 482 if (Operator == tok::ampamp && LHS.Val == 0) 484 else if (Operator == tok::pipepipe && LHS.Val != 0) 486 else if (Operator == tok::question && LHS.Val == 0) 495 PPValue RHS(LHS.getBitWidth()); 517 // the LHS of the '?'. The grammar rule is: 538 llvm::APSInt Res(LHS.getBitWidth()) [all...] |
/external/llvm/utils/TableGen/ |
DAGISelEmitter.cpp | 75 // PatternSortingPredicate - return true if we prefer to match LHS before RHS. 82 bool operator()(const PatternToMatch *LHS, const PatternToMatch *RHS) { 83 const TreePatternNode *LHSSrc = LHS->getSrcPattern(); 97 unsigned LHSSize = LHS->getPatternComplexity(CGP); 99 if (LHSSize > RHSSize) return true; // LHS -> bigger -> less cost 103 unsigned LHSCost = getResultPatternCost(LHS->getDstPattern(), CGP); 108 unsigned LHSPatSize = getResultPatternSize(LHS->getDstPattern(), CGP); 115 assert(LHS == RHS || LHS->ID != RHS->ID); 116 return LHS->ID < RHS->ID [all...] |
/external/llvm/include/llvm/Target/ |
TargetOptions.h | 230 inline bool operator==(const TargetOptions &LHS, 232 #define ARE_EQUAL(X) LHS.X == RHS.X 256 inline bool operator!=(const TargetOptions &LHS, 258 return !(LHS == RHS);
|
/external/llvm/lib/Transforms/Utils/ |
CmpInstAnalysis.cpp | 72 Value *llvm::getICmpValue(bool Sign, unsigned Code, Value *LHS, Value *RHS, 77 return ConstantInt::get(CmpInst::makeCmpResultType(LHS->getType()), 0); 85 return ConstantInt::get(CmpInst::makeCmpResultType(LHS->getType()), 1);
|
/external/llvm/lib/Analysis/ |
InstructionSimplify.cpp | 78 /// isSameCompare - Is V equivalent to the comparison "LHS Pred RHS"? 79 static bool isSameCompare(Value *V, CmpInst::Predicate Pred, Value *LHS, 86 if (CPred == Pred && CLHS == LHS && CRHS == RHS) 89 CRHS == LHS; 125 /// given by OpcodeToExpand, while "A" corresponds to LHS and "B op' C" to RHS. 128 static Value *ExpandBinOp(unsigned Opcode, Value *LHS, Value *RHS, 137 if (BinaryOperator *Op0 = dyn_cast<BinaryOperator>(LHS)) 145 // If "L op' R" equals "A op' B" then "L op' R" is just the LHS. 149 return LHS; 163 Value *A = LHS, *B = Op1->getOperand(0), *C = Op1->getOperand(1) [all...] |
/external/clang/include/clang/AST/ |
DeclarationName.h | 286 friend bool operator==(DeclarationName LHS, DeclarationName RHS) { 287 return LHS.Ptr == RHS.Ptr; 291 friend bool operator!=(DeclarationName LHS, DeclarationName RHS) { 292 return LHS.Ptr != RHS.Ptr; 303 static int compare(DeclarationName LHS, DeclarationName RHS); 312 inline bool operator<(DeclarationName LHS, DeclarationName RHS) { 313 return DeclarationName::compare(LHS, RHS) < 0; 318 inline bool operator>(DeclarationName LHS, DeclarationName RHS) { 319 return DeclarationName::compare(LHS, RHS) > 0; 324 inline bool operator<=(DeclarationName LHS, DeclarationName RHS) [all...] |
GlobalDecl.h | 72 friend bool operator==(const GlobalDecl &LHS, const GlobalDecl &RHS) { 73 return LHS.Value == RHS.Value; 110 static bool isEqual(clang::GlobalDecl LHS, 112 return LHS == RHS;
|
RawCommentList.h | 171 bool operator()(const RawComment &LHS, const RawComment &RHS) { 172 return SM.isBeforeInTranslationUnit(LHS.getLocStart(), RHS.getLocStart()); 175 bool operator()(const RawComment *LHS, const RawComment *RHS) { 176 return operator()(*LHS, *RHS);
|
/external/llvm/include/llvm/ADT/ |
Triple.h | 297 unsigned LHS[3]; 298 getOSVersion(LHS[0], LHS[1], LHS[2]); 300 if (LHS[0] != Major) 301 return LHS[0] < Major; 302 if (LHS[1] != Minor) 303 return LHS[1] < Minor; 304 if (LHS[2] != Micro) 305 return LHS[1] < Micro [all...] |
StringRef.h | 62 static int compareMemory(const char *Lhs, const char *Rhs, size_t Length) { 64 return ::memcmp(Lhs,Rhs,Length); 436 /// If \p Separator is in the string, then the result is a pair (LHS, RHS) 437 /// such that (*this == LHS + Separator + RHS) is true and RHS is 439 /// pair (LHS, RHS) where (*this == LHS) and (RHS == ""). 453 /// If \p Separator is in the string, then the result is a pair (LHS, RHS) 454 /// such that (*this == LHS + Separator + RHS) is true and RHS is 456 /// pair (LHS, RHS) where (*this == LHS) and (RHS == "") [all...] |
/external/clang/include/clang/Basic/ |
SourceLocation.h | 179 inline bool operator==(const SourceLocation &LHS, const SourceLocation &RHS) { 180 return LHS.getRawEncoding() == RHS.getRawEncoding(); 183 inline bool operator!=(const SourceLocation &LHS, const SourceLocation &RHS) { 184 return !(LHS == RHS); 187 inline bool operator<(const SourceLocation &LHS, const SourceLocation &RHS) { 188 return LHS.getRawEncoding() < RHS.getRawEncoding(); 326 bool operator()(const FullSourceLoc& lhs, const FullSourceLoc& rhs) const { 327 return lhs.isBeforeInTranslationUnitThan(rhs); 337 operator==(const FullSourceLoc &LHS, const FullSourceLoc &RHS) { 338 return LHS.getRawEncoding() == RHS.getRawEncoding() & [all...] |
/external/clang/lib/Parse/ |
ParseExpr.cpp | 39 /// production. C99 specifies that the LHS of an assignment operator should be 42 /// LHS of an assignment has to be an l-value, which productions between 44 /// consistency, we parse the LHS as a conditional-expression, then check for 121 ExprResult LHS(ParseAssignmentExpression(isTypeCast)); 122 return ParseRHSOfBinaryExpression(LHS, prec::Comma); 132 ExprResult LHS(ParseObjCAtExpression(AtLoc)); 133 return ParseRHSOfBinaryExpression(LHS, prec::Comma); 141 ExprResult LHS(true); 146 LHS = ParseCastExpression(false); 149 if (!LHS.isInvalid() [all...] |
/external/llvm/utils/PerfectShuffle/ |
PerfectShuffle.cpp | 56 /// isOnlyLHSMask - Return true if this mask only refers to its LHS, not 62 /// getLHSOnlyMask - Given a mask that refers to its LHS and RHS, modify it to 63 /// refer to the LHS only (for when one argument value is passed into the same 67 return Mask & 0xBBBB; // Keep only LHS and Undefs. 149 return "LHS"; 220 // Seed the table with accesses to the LHS and RHS. 294 for (unsigned LHS = 0; LHS != 0x8889; ++LHS) { 295 if (!isValidMask(LHS)) continue [all...] |
/external/llvm/lib/IR/ |
LLVMContextImpl.h | 67 static bool isEqual(const KeyTy &LHS, const KeyTy &RHS) { 68 return LHS == RHS; 95 static bool isEqual(const KeyTy &LHS, const KeyTy &RHS) { 96 return LHS == RHS; 134 static bool isEqual(const KeyTy& LHS, const StructType *RHS) { 137 return LHS == KeyTy(RHS); 139 static bool isEqual(const StructType *LHS, const StructType *RHS) { 140 return LHS == RHS; 183 static bool isEqual(const KeyTy& LHS, const FunctionType *RHS) { 186 return LHS == KeyTy(RHS) [all...] |
/external/llvm/lib/Support/ |
DeltaAlgorithm.cpp | 32 changeset_ty LHS, RHS; 36 ((idx < N) ? LHS : RHS).insert(*it); 37 if (!LHS.empty()) 38 Res.push_back(LHS);
|
Twine.cpp | 19 return *LHS.stdString; 43 return StringRef(LHS.cString); 45 const std::string *str = LHS.stdString; 153 printOneChild(OS, LHS, getLHSKind()); 159 printOneChildRepr(OS, LHS, getLHSKind());
|
/external/llvm/include/llvm/Analysis/ |
ScalarEvolution.h | 510 ExitLimit HowManyLessThans(const SCEV *LHS, const SCEV *RHS, 512 ExitLimit HowManyGreaterThans(const SCEV *LHS, const SCEV *RHS, 522 /// isImpliedCond - Test whether the condition described by Pred, LHS, and 525 const SCEV *LHS, const SCEV *RHS, 530 /// LHS, and RHS is true whenever the condition described by Pred, FoundLHS, 533 const SCEV *LHS, const SCEV *RHS, 537 /// Pred, LHS, and RHS is true whenever the condition described by Pred, 540 const SCEV *LHS, const SCEV *RHS, 553 /// of LHS and RHS. 556 const SCEV *LHS, const SCEV *RHS) [all...] |
/art/runtime/base/ |
logging.h | 36 #define CHECK_OP(LHS, RHS, OP) \ 37 for (auto _values = ::art::MakeEagerEvaluator(LHS, RHS); \ 38 UNLIKELY(!(_values.lhs OP _values.rhs)); /* empty */) \ 40 << "Check failed: " << #LHS << " " << #OP << " " << #RHS \ 41 << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " 152 template <typename LHS, typename RHS> 154 EagerEvaluator(LHS lhs, RHS rhs) : lhs(lhs), rhs(rhs) { 155 LHS lhs; member in struct:art::EagerEvaluator [all...] |
/external/clang/lib/CodeGen/ |
CGExprScalar.cpp | 44 Value *LHS; 414 return Builder.CreateMul(Ops.LHS, Ops.RHS, "mul"); 417 return Builder.CreateNSWMul(Ops.LHS, Ops.RHS, "mul"); 427 if (Ops.LHS->getType()->isFPOrFPVectorTy()) 428 return Builder.CreateFMul(Ops.LHS, Ops.RHS, "mul"); 429 return Builder.CreateMul(Ops.LHS, Ops.RHS, "mul"); 438 // Common helper for getting how wide LHS of shift is. 439 static Value *GetWidthMinusOneValue(Value* LHS,Value* RHS); 447 return Builder.CreateAnd(Ops.LHS, Ops.RHS, "and"); 450 return Builder.CreateXor(Ops.LHS, Ops.RHS, "xor") 2270 llvm::Value *lhs = Builder.CreateSExt(Ops.LHS, CGF.Int64Ty); local [all...] |
CGExprComplex.cpp | 214 ComplexPairTy LHS; 529 if (Op.LHS.first->getType()->isFloatingPointTy()) { 530 ResR = Builder.CreateFAdd(Op.LHS.first, Op.RHS.first, "add.r"); 531 ResI = Builder.CreateFAdd(Op.LHS.second, Op.RHS.second, "add.i"); 533 ResR = Builder.CreateAdd(Op.LHS.first, Op.RHS.first, "add.r"); 534 ResI = Builder.CreateAdd(Op.LHS.second, Op.RHS.second, "add.i"); 541 if (Op.LHS.first->getType()->isFloatingPointTy()) { 542 ResR = Builder.CreateFSub(Op.LHS.first, Op.RHS.first, "sub.r"); 543 ResI = Builder.CreateFSub(Op.LHS.second, Op.RHS.second, "sub.i"); 545 ResR = Builder.CreateSub(Op.LHS.first, Op.RHS.first, "sub.r") [all...] |
/external/llvm/include/llvm/IR/ |
DebugLoc.h | 119 static bool isEqual(DebugLoc LHS, DebugLoc RHS) { return LHS == RHS; }
|
/external/llvm/include/llvm/MC/ |
MachineLocation.h | 77 inline bool operator!=(const MachineLocation &LHS, const MachineLocation &RHS) { 78 return !(LHS == RHS);
|
/external/llvm/include/llvm/Transforms/Utils/ |
ValueMapper.h | 65 static inline RemapFlags operator|(RemapFlags LHS, RemapFlags RHS) { 66 return RemapFlags(unsigned(LHS)|unsigned(RHS));
|
/external/compiler-rt/make/ |
util.mk | 6 # Function: streq LHS RHS 8 # Return "true" if LHS == RHS, otherwise "". 10 # LHS == RHS <=> (LHS subst RHS is empty) and (RHS subst LHS is empty) 13 # Function: strneq LHS RHS 15 # Return "true" if LHS != RHS, otherwise "".
|
/external/llvm/lib/MC/ |
MCExternalSymbolizer.cpp | 114 const MCExpr *LHS; 116 LHS = MCBinaryExpr::CreateSub(Add, Sub, Ctx); 118 LHS = MCUnaryExpr::CreateMinus(Sub, Ctx); 120 Expr = MCBinaryExpr::CreateAdd(LHS, Off, Ctx); 122 Expr = LHS;
|