/external/clang/include/clang/Frontend/ |
H A D | ASTUnit.h | 245 friend bool operator==(const PreambleFileHash &LHS, 248 friend bool operator!=(const PreambleFileHash &LHS, argument 250 return !(LHS == RHS);
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | SymbolManager.h | 369 const SymExpr *LHS; member in class:clang::ento::SymIntExpr 375 : BinarySymExpr(SymIntKind, op, t), LHS(lhs), RHS(rhs) {} 379 const SymExpr *getLHS() const { return LHS; } 393 Profile(ID, LHS, getOpcode(), RHS, getType()); 404 const llvm::APSInt& LHS; member in class:clang::ento::IntSymExpr 410 : BinarySymExpr(IntSymKind, op, t), LHS(lhs), RHS(rhs) {} 415 const llvm::APSInt &getLHS() const { return LHS; } 428 Profile(ID, LHS, getOpcode(), RHS, getType()); 439 const SymExpr *LHS; member in class:clang::ento::SymSymExpr 445 : BinarySymExpr(SymSymKind, op, t), LHS(lh [all...] |
/external/clang/lib/ARCMigrate/ |
H A D | TransformActions.cpp | 98 static RangeComparison compare(SourceRange LHS, SourceRange RHS, argument 100 return CharRange(CharSourceRange::getTokenRange(LHS), SrcMgr, PP)
|
/external/clang/lib/Analysis/ |
H A D | ThreadSafetyCommon.cpp | 283 const Expr *LHS = BO->getLHS(); local 285 til::SExpr *E0 = translate(LHS, Ctx); 290 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(LHS)) {
|
/external/clang/lib/Frontend/ |
H A D | PrintPreprocessedOutput.cpp | 670 static int MacroIDCompare(const id_macro_pair *LHS, const id_macro_pair *RHS) { argument 671 return LHS->first->getName().compare(RHS->first->getName());
|
/external/clang/lib/Parse/ |
H A D | 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 222 ParseRHSOfBinaryExpression(ExprResult LHS, prec::Level MinPrec) argument 1199 ParsePostfixExpressionSuffix(ExprResult LHS) argument [all...] |
H A D | ParseStmt.cpp | 642 ExprResult LHS; local 644 LHS = ParseConstantExpression(); 645 if (LHS.isInvalid()) { 655 LHS = Expr; 692 Actions.ActOnCaseStmt(CaseLoc, LHS.get(), DotDotDotLoc,
|
/external/clang/lib/Sema/ |
H A D | SemaPseudoObject.cpp | 23 // If it is used as the LHS of a simple assignment, it is treated 26 // If it is used as the LHS of a compound assignment, or the operand 108 Expr *LHS = ce->getLHS(), *RHS = ce->getRHS(); local 109 Expr *&rebuiltExpr = ce->isConditionTrue() ? LHS : RHS; 114 LHS, RHS, 223 Expr *LHS, Expr *RHS); 279 Expr *LHS, Expr *RHS); 319 Expr *LHS, Expr *RHS); 407 Expr *LHS, Expr *RHS) { 410 Expr *syntacticLHS = rebuildAndCaptureObject(LHS); 860 buildAssignmentOperation(Scope *Sc, SourceLocation opcLoc, BinaryOperatorKind opcode, Expr *LHS, Expr *RHS) argument 968 buildAssignmentOperation(Scope *Sc, SourceLocation opcLoc, BinaryOperatorKind opcode, Expr *LHS, Expr *RHS) argument 1536 checkPseudoObjectAssignment(Scope *S, SourceLocation opcLoc, BinaryOperatorKind opcode, Expr *LHS, Expr *RHS) argument [all...] |
/external/clang/test/SemaCXX/ |
H A D | overloaded-operator.cpp | 406 inline bool operator==(StringRef LHS, StringRef RHS) { // expected-error{{overloaded 'operator==' must be a binary operator (has 3 parameters)}} argument 407 return !(LHS == RHS); // expected-error{{invalid operands to binary expression ('rdar9222009::StringRef' and 'rdar9222009::StringRef')}}
|
/external/llvm/examples/Kaleidoscope/Chapter5/ |
H A D | toy.cpp | 126 ExprAST *LHS, *RHS; member in class:__anon25453::BinaryExprAST 129 : Op(op), LHS(lhs), RHS(rhs) {} 362 static ExprAST *ParseBinOpRHS(int ExprPrec, ExprAST *LHS) { argument 370 return LHS; 381 // the pending operator take RHS as its LHS. 388 // Merge LHS/RHS. 389 LHS = new BinaryExprAST(BinOp, LHS, RHS); 397 ExprAST *LHS = ParsePrimary(); local 398 if (!LHS) retur [all...] |
/external/llvm/examples/Kaleidoscope/Chapter6/ |
H A D | toy.cpp | 141 ExprAST *LHS, *RHS; member in class:__anon25454::BinaryExprAST 144 : Op(op), LHS(lhs), RHS(rhs) {} 406 static ExprAST *ParseBinOpRHS(int ExprPrec, ExprAST *LHS) { argument 414 return LHS; 425 // the pending operator take RHS as its LHS. 432 // Merge LHS/RHS. 433 LHS = new BinaryExprAST(BinOp, LHS, RHS); 441 ExprAST *LHS = ParseUnary(); local 442 if (!LHS) retur [all...] |
/external/llvm/include/llvm/ADT/ |
H A D | Triple.h | 297 unsigned LHS[3]; local 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[ [all...] |
H A D | ilist.h | 252 bool operator!=(const T* LHS, const ilist_iterator<const T> &RHS) { argument 253 return LHS != RHS.getNodePtrUnchecked(); 256 bool operator==(const T* LHS, const ilist_iterator<const T> &RHS) { argument 257 return LHS == RHS.getNodePtrUnchecked(); 260 bool operator!=(T* LHS, const ilist_iterator<T> &RHS) { argument 261 return LHS != RHS.getNodePtrUnchecked(); 264 bool operator==(T* LHS, const ilist_iterator<T> &RHS) { argument 265 return LHS == RHS.getNodePtrUnchecked();
|
/external/llvm/include/llvm/CodeGen/ |
H A D | SelectionDAG.h | 684 SDValue getSetCC(SDLoc DL, EVT VT, SDValue LHS, SDValue RHS, argument 686 assert(LHS.getValueType().isVector() == RHS.getValueType().isVector() && 688 assert(LHS.getValueType().isVector() == VT.isVector() && 692 return getNode(ISD::SETCC, DL, VT, LHS, RHS, getCondCode(Cond)); 698 SDValue LHS, SDValue RHS) { 699 assert(LHS.getValueType() == RHS.getValueType() && 701 assert(VT.isVector() == LHS.getValueType().isVector() && 704 Cond, LHS, RHS); 710 SDValue getSelectCC(SDLoc DL, SDValue LHS, SDValue RHS, argument 713 LHS, RH 697 getSelect(SDLoc DL, EVT VT, SDValue Cond, SDValue LHS, SDValue RHS) argument [all...] |
/external/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 1177 Constant *LHS = local 1185 Constant *Ops[] = { LHS, RHS }; 1186 return ConstantFoldInstOperands(OpC, LHS->getType(), Ops, TD, TLI);
|
/external/llvm/lib/Analysis/IPA/ |
H A D | InlineCost.cpp | 497 Value *LHS = I.getOperand(0), *RHS = I.getOperand(1); local 499 if (!isa<Constant>(LHS)) 500 if (Constant *SimpleLHS = SimplifiedValues.lookup(LHS)) 501 LHS = SimpleLHS; 505 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { 520 std::tie(LHSBase, LHSOffset) = ConstantOffsetPtrs.lookup(LHS); 526 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); 567 Value *LHS = I.getOperand(0), *RHS = I.getOperand(1); local 570 std::tie(LHSBase, LHSOffset) = ConstantOffsetPtrs.lookup(LHS); 576 Constant *CLHS = ConstantInt::get(LHS 592 Value *LHS = I.getOperand(0), *RHS = I.getOperand(1); local [all...] |
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | LegalizeFloatTypes.cpp | 182 SDValue LHS = GetSoftenedFloat(N->getOperand(0)); local 186 EVT LVT = LHS.getValueType(); 217 LHS = DAG.getNode(ISD::AND, dl, LVT, LHS, Mask); 220 return DAG.getNode(ISD::OR, dl, LVT, LHS, SignBit); 544 SDValue LHS = GetSoftenedFloat(N->getOperand(1)); local 547 LHS.getValueType(), N->getOperand(0), LHS, RHS); 551 SDValue LHS = GetSoftenedFloat(N->getOperand(2)); local 554 LHS [all...] |
H A D | LegalizeVectorOps.cpp | 942 SDValue LHS = Op.getOperand(0), RHS = Op.getOperand(1), CC = Op.getOperand(2); local 943 EVT TmpEltVT = LHS.getValueType().getVectorElementType(); 947 SDValue LHSElem = DAG.getNode(ISD::EXTRACT_VECTOR_ELT, dl, TmpEltVT, LHS,
|
/external/llvm/lib/ExecutionEngine/ |
H A D | ExecutionEngine.cpp | 772 GenericValue LHS = getConstantValue(Op0); local 780 case Instruction::Add: GV.IntVal = LHS.IntVal + RHS.IntVal; break; 781 case Instruction::Sub: GV.IntVal = LHS.IntVal - RHS.IntVal; break; 782 case Instruction::Mul: GV.IntVal = LHS.IntVal * RHS.IntVal; break; 783 case Instruction::UDiv:GV.IntVal = LHS.IntVal.udiv(RHS.IntVal); break; 784 case Instruction::SDiv:GV.IntVal = LHS.IntVal.sdiv(RHS.IntVal); break; 785 case Instruction::URem:GV.IntVal = LHS.IntVal.urem(RHS.IntVal); break; 786 case Instruction::SRem:GV.IntVal = LHS.IntVal.srem(RHS.IntVal); break; 787 case Instruction::And: GV.IntVal = LHS.IntVal & RHS.IntVal; break; 788 case Instruction::Or: GV.IntVal = LHS [all...] |
/external/llvm/lib/IR/ |
H A D | ConstantFold.cpp | 233 Constant *LHS = ExtractConstantBytes(CE->getOperand(0), ByteStart,ByteSize); 234 if (!LHS) 236 return ConstantExpr::getOr(LHS, RHS); 247 Constant *LHS = ExtractConstantBytes(CE->getOperand(0), ByteStart,ByteSize); 248 if (!LHS) 250 return ConstantExpr::getAnd(LHS, RHS); 1155 Constant *LHS = local 1160 Result.push_back(ConstantExpr::get(Opcode, LHS, RHS)); 1318 // Ok, the LHS is known to be a constantexpr. The RHS can be any of a 1442 // Ok, the LHS i [all...] |
H A D | ConstantsContext.h | 248 unsigned short pred, Constant* LHS, Constant* RHS) 250 Op<0>() = LHS; 665 static bool isEqual(const ConstantClass *LHS, const ConstantClass *RHS) { argument 666 return LHS == RHS; 672 static bool isEqual(const LookupKey &LHS, const ConstantClass *RHS) { argument 675 if (LHS.first != RHS->getType() 676 || LHS.second.size() != RHS->getNumOperands()) 679 if (LHS.second[I] != RHS->getOperand(I)) 247 CompareConstantExpr(Type *ty, Instruction::OtherOps opc, unsigned short pred, Constant* LHS, Constant* RHS) argument
|
H A D | LLVMContextImpl.h | 67 static bool isEqual(const KeyTy &LHS, const KeyTy &RHS) { argument 68 return LHS == RHS; 95 static bool isEqual(const KeyTy &LHS, const KeyTy &RHS) { argument 96 return LHS == RHS; 134 static bool isEqual(const KeyTy& LHS, const StructType *RHS) { argument 137 return LHS == KeyTy(RHS); 139 static bool isEqual(const StructType *LHS, const StructType *RHS) { argument 140 return LHS == RHS; 183 static bool isEqual(const KeyTy& LHS, const FunctionType *RHS) { argument 186 return LHS 188 isEqual(const FunctionType *LHS, const FunctionType *RHS) argument [all...] |
/external/llvm/lib/Target/MSP430/ |
H A D | MSP430ISelLowering.cpp | 811 static SDValue EmitCMP(SDValue &LHS, SDValue &RHS, SDValue &TargetCC, argument 815 assert(!LHS.getValueType().isFloatingPoint() && "We don't handle FP yet"); 823 // Minor optimization: if LHS is a constant, swap operands, then the 825 if (LHS.getOpcode() == ISD::Constant) 826 std::swap(LHS, RHS); 830 // Minor optimization: if LHS is a constant, swap operands, then the 832 if (LHS.getOpcode() == ISD::Constant) 833 std::swap(LHS, RHS); 836 std::swap(LHS, RHS); // FALLTHROUGH 840 if (const ConstantSDNode * C = dyn_cast<ConstantSDNode>(LHS)) { 897 SDValue LHS = Op.getOperand(2); local 910 SDValue LHS = Op.getOperand(0); local 991 SDValue LHS = Op.getOperand(0); local [all...] |
/external/llvm/lib/Target/NVPTX/ |
H A D | NVPTXISelDAGToDAG.cpp | 3267 SDValue LHS = N->getOperand(0); local 3277 if (isa<ConstantSDNode>(LHS) && !isa<ConstantSDNode>(RHS)) { 3278 std::swap(LHS, RHS); 3300 if (LHS.getOpcode() == ISD::SRL || LHS.getOpcode() == ISD::SRA) { 3302 Val = LHS.getNode()->getOperand(0); 3303 Start = LHS.getNode()->getOperand(1); 3325 // Do not handle the case where the LHS of the and is not a shift. While 3331 if (LHS->getOpcode() == ISD::AND) { 3340 SDValue AndLHS = LHS [all...] |
/external/llvm/lib/Target/R600/ |
H A D | AMDGPUISelDAGToDAG.cpp | 658 SDValue LHS = N->getOperand(0); local 667 DL, MVT::i32, LHS, Sub0); 669 DL, MVT::i32, LHS, Sub1);
|