/external/clang/test/SemaCXX/ |
warn-self-assign.cpp | 18 #define LHS a 23 LHS = a; 25 LHS OP RHS; 27 #undef LHS
|
/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);
|
/external/clang/lib/ARCMigrate/ |
TransZeroOutPropsInDealloc.cpp | 152 Expr *LHS = BOE->getLHS(); 153 if (ObjCIvarRefExpr *IV = dyn_cast<ObjCIvarRefExpr>(LHS)) { 170 else if (ObjCPropertyRefExpr *PropRefExp = dyn_cast<ObjCPropertyRefExpr>(LHS)) {
|
/external/llvm/lib/Analysis/ |
PHITransAddr.cpp | 263 // PHI translate the LHS. 268 Value *LHS = PHITranslateSubExpr(Inst->getOperand(0), CurBB, PredBB, DT); 269 if (LHS == 0) return 0; 271 // If the PHI translated LHS is an add of a constant, fold the immediates. 272 if (BinaryOperator *BOp = dyn_cast<BinaryOperator>(LHS)) 275 LHS = BOp->getOperand(0); 279 // If the old 'LHS' was an input, add the new 'LHS' as an input. 282 AddAsInput(LHS); 287 if (Value *Res = SimplifyAddInst(LHS, RHS, isNSW, isNUW, TD, DT)) [all...] |
/external/clang/lib/Lex/ |
PreprocessingRecord.cpp | 104 SourceLocation LHS = getLoc(L); 106 return SM.isBeforeInTranslationUnit(LHS, RHS); 110 SourceLocation LHS = getLoc(L); 111 return SM.isBeforeInTranslationUnit(LHS, RHS); 114 bool operator()(SourceLocation LHS, PreprocessedEntity *R) const { 116 return SM.isBeforeInTranslationUnit(LHS, RHS);
|
/external/clang/lib/Rewrite/ |
DeltaTree.cpp | 56 DeltaTreeNode *LHS, *RHS; 136 Children[0] = IR.LHS; 139 FullDelta = IR.LHS->getFullDelta()+IR.RHS->getFullDelta()+IR.Split.Delta; 222 InsertRes->LHS->DoInsertion(FileIndex, Delta, 0 /*can't fail*/); 242 IN->Children[i] = InsertRes->LHS; 255 IN->Children[i] = InsertRes->LHS; 265 InsertSide = cast<DeltaTreeInteriorNode>(InsertRes->LHS); 300 // the first 'WidthFactor-1' values to the LHS child (which we leave in this 329 InsertRes.LHS = this;
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
IdempotentOperationChecker.cpp | 84 static bool isSelfAssign(const Expr *LHS, const Expr *RHS); 86 static bool isTruncationExtensionAssignment(const Expr *LHS, 128 const Expr *LHS = B->getLHS(); 138 LHSContainsFalsePositive = !CanVary(LHS, AC) 139 || containsNonLocalVarDecl(LHS); 146 SVal LHSVal = state->getSVal(LHS); 156 // Dereference the LHS SVal if this is an assign operation 177 LHSVal = state->getSVal(cast<Loc>(LHSVal), LHS->getType()); 194 if (isSelfAssign(LHS, RHS)) { 195 if (!isUnused(LHS, AC) && !isTruncationExtensionAssignment(LHS, RHS)) [all...] |
/external/clang/lib/StaticAnalyzer/Core/ |
ExprEngineC.cpp | 26 Expr *LHS = B->getLHS()->IgnoreParens(); 34 // With both the LHS and RHS evaluated, process the operation itself. 39 SVal LeftV = state->getSVal(LHS); 53 // to the L-Value represented by the LHS. 55 evalStore(Tmp2, B, LHS, *it, state->BindExpr(B, ExprVal), LeftV, RightV); 90 // Perform a load (the LHS). This performs the checks for 94 evalLoad(Tmp, LHS, *it, state, location); 100 SVal V = state->getSVal(LHS); 111 QualType LTy = getContext().getCanonicalType(LHS->getType()); 113 // Promote LHS [all...] |
/external/llvm/examples/Kaleidoscope/Chapter2/ |
toy.cpp | 101 ExprAST *LHS, *RHS; 103 BinaryExprAST(char op, ExprAST *lhs, ExprAST *rhs) 104 : Op(op), LHS(lhs), RHS(rhs) {} 240 static ExprAST *ParseBinOpRHS(int ExprPrec, ExprAST *LHS) { 248 return LHS; 259 // the pending operator take RHS as its LHS. 266 // Merge LHS/RHS. 267 LHS = new BinaryExprAST(BinOp, LHS, RHS) [all...] |
/external/llvm/include/llvm/ADT/ |
Twine.h | 149 /// LHS - The prefix in the concatenation, which may be uninitialized for 151 Child LHS; 172 LHS.twine = &_LHS; 180 : LHS(_LHS), RHS(_RHS), LHSKind(_LHSKind), RHSKind(_RHSKind) { 220 // The RHS cannot be non-empty if the LHS is empty. 226 !LHS.twine->isBinary()) 265 LHS.cString = Str; 276 LHS.stdString = &Str; 283 LHS.stringRef = &Str; 290 LHS.character = Val [all...] |
/external/llvm/include/llvm/Analysis/ |
ScalarEvolutionExpressions.h | 257 const SCEV *LHS; 259 SCEVUDivExpr(const FoldingSetNodeIDRef ID, const SCEV *lhs, const SCEV *rhs) 260 : SCEV(ID, scUDivExpr), LHS(lhs), RHS(rhs) {} 263 const SCEV *getLHS() const { return LHS; } 267 // In most cases the types of LHS and RHS will be the same, but in some 270 // avoid extra casts in the SCEVExpander. The LHS is more likely to be
|
/external/llvm/lib/CodeGen/ |
IntrinsicLowering.cpp | 282 Value *LHS = Builder.CreateAnd(PartValue, MaskCst, "cppop.and1"); 287 PartValue = Builder.CreateAdd(LHS, RHS, "ctpop.step");
|
/external/llvm/lib/MC/ |
MCExpr.cpp | 86 // Only print parens around the LHS if it is non-trivial. 125 // Only print parens around the LHS if it is non-trivial. 145 const MCBinaryExpr *MCBinaryExpr::Create(Opcode Opc, const MCExpr *LHS, 147 return new (Ctx) MCBinaryExpr(Opc, LHS, RHS); 349 /// from two MCValue's LHS and RHS where 350 /// Result = LHS + RHS 368 const MCValue &LHS,const MCSymbolRefExpr *RHS_A, 373 const MCSymbolRefExpr *LHS_A = LHS.getSymA(); 374 const MCSymbolRefExpr *LHS_B = LHS.getSymB(); 375 int64_t LHS_Cst = LHS.getConstant() [all...] |
/external/llvm/lib/Target/Mips/ |
MipsISelDAGToDAG.cpp | 228 SDValue LHS = Node->getOperand(0); 231 EVT VT = LHS.getValueType(); 237 LHS, SDValue(AddCarry,0));
|
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineAddSub.cpp | 61 /// (sext (add LHS, RHS)) === (add (sext LHS), (sext RHS)) 64 bool InstCombiner::WillNotOverflowSignedAdd(Value *LHS, Value *RHS) { 69 // have one carry bit which can change a sign. As such, if LHS and RHS each 72 if (ComputeNumSignBits(LHS) > 1 && ComputeNumSignBits(RHS) > 1) 88 Value *LHS = I.getOperand(0), *RHS = I.getOperand(1); 90 if (Value *V = SimplifyAddInst(LHS, RHS, I.hasNoSignedWrap(), 102 return BinaryOperator::CreateXor(LHS, RHS); 110 if (ZExtInst *ZI = dyn_cast<ZExtInst>(LHS)) 115 if (match(LHS, m_Xor(m_Value(XorLHS), m_ConstantInt(XorRHS)))) [all...] |
InstCombineSelect.cpp | 25 MatchSelectPattern(Value *V, Value *&LHS, Value *&RHS) { 32 LHS = ICI->getOperand(0); 594 Value *LHS = IC->getOperand(0); 595 if (LHS->getType() != SI.getType() || 596 !match(LHS, m_And(m_Value(), m_ConstantInt(AndRHS)))) 630 Value *V = LHS; 842 Value *LHS, *RHS, *LHS2, *RHS2 [all...] |
InstCombineSimplifyDemanded.cpp | 158 // If either the LHS or the RHS are Zero, the result is zero. 182 // If either the LHS or the RHS are One, the result is One. 225 // If either the LHS or the RHS are Zero, the result is zero. 251 // Output known-1 bits are only known if set in both the LHS & RHS. 253 // Output known-0 are known to be clear if zero in either the LHS | RHS. 257 // If either the LHS or the RHS are One, the result is One. 288 // Output known-0 bits are only known if clear in both the LHS & RHS. 290 // Output known-1 are known to be set if set in either the LHS | RHS. 338 // If our LHS is an 'and' and if it has one use, and if any of the bits we 362 // Output known-0 bits are known if clear or set in both the LHS & RHS [all...] |
InstCombineVectorOps.cpp | 194 EI.getName()+".lhs"); 248 /// elements from either LHS or RHS, return the shuffle mask and true. 250 static bool CollectSingleShuffleElements(Value *V, Value *LHS, Value *RHS, 252 assert(V->getType() == LHS->getType() && V->getType() == RHS->getType() && 261 if (V == LHS) { 287 if (CollectSingleShuffleElements(VecOp, LHS, RHS, Mask)) { 298 // This must be extracting from either LHS or RHS. 299 if (EI->getOperand(0) == LHS || EI->getOperand(0) == RHS) { 302 if (CollectSingleShuffleElements(VecOp, LHS, RHS, Mask)) { 304 if (EI->getOperand(0) == LHS) { [all...] |
/external/llvm/lib/Transforms/Scalar/ |
Reassociate.cpp | 54 inline bool operator<(const ValueEntry &LHS, const ValueEntry &RHS) { 55 return LHS.Rank > RHS.Rank; // Sort so that highest rank goes to start. 122 Value *LHS = Op->getOperand(0), *RHS = Op->getOperand(1); 126 RemoveDeadBinaryOp(LHS); 180 // If this is an expression, return the 1+MAX(rank(LHS), rank(RHS)) so that 230 BinaryOperator *LHS = cast<BinaryOperator>(I->getOperand(0)); 232 assert(isReassociableOp(LHS, I->getOpcode()) && 236 DEBUG(dbgs() << "Linear" << *LHS << '\n' << *RHS << '\n' << *I << '\n'); 244 RHS->setOperand(0, LHS); 250 LHS->clearSubclassOptionalData() [all...] |
/frameworks/base/include/private/ui/ |
RegionHelper.h | 40 static const uint32_t LHS = 0x5; // 0b101 43 op_nand = LHS & ~RHS, 44 op_and = LHS & RHS, 45 op_or = LHS | RHS, 46 op_xor = LHS ^ RHS 69 inline region_operator(int op, const region& lhs, const region& rhs) 70 : op_mask(op), spanner(lhs, rhs) 77 SpannerInner spannerInner(spanner.lhs, spanner.rhs); 156 region lhs; member in class:android::region_operator::Spanner 160 inline Spanner(const region& lhs, const region& rhs 213 region lhs; member in class:android::region_operator::SpannerInner [all...] |
/external/clang/lib/Frontend/ |
PrintPreprocessedOutput.cpp | 550 const id_macro_pair *LHS = static_cast<const id_macro_pair*>(a); 552 return LHS->first->getName().compare(RHS->first->getName());
|
/external/llvm/examples/Kaleidoscope/Chapter3/ |
toy.cpp | 109 ExprAST *LHS, *RHS; 111 BinaryExprAST(char op, ExprAST *lhs, ExprAST *rhs) 112 : Op(op), LHS(lhs), RHS(rhs) {} 252 static ExprAST *ParseBinOpRHS(int ExprPrec, ExprAST *LHS) { 260 return LHS; 271 // the pending operator take RHS as its LHS. 278 // Merge LHS/RHS. 279 LHS = new BinaryExprAST(BinOp, LHS, RHS) [all...] |
/external/llvm/examples/Kaleidoscope/Chapter4/ |
toy.cpp | 116 ExprAST *LHS, *RHS; 118 BinaryExprAST(char op, ExprAST *lhs, ExprAST *rhs) 119 : Op(op), LHS(lhs), RHS(rhs) {} 259 static ExprAST *ParseBinOpRHS(int ExprPrec, ExprAST *LHS) { 267 return LHS; 278 // the pending operator take RHS as its LHS. 285 // Merge LHS/RHS. 286 LHS = new BinaryExprAST(BinOp, LHS, RHS) [all...] |
/external/llvm/lib/CodeGen/SelectionDAG/ |
LegalizeVectorOps.cpp | 472 SDValue LHS = Op.getOperand(0), RHS = Op.getOperand(1), CC = Op.getOperand(2); 473 EVT TmpEltVT = LHS.getValueType().getVectorElementType(); 477 SDValue LHSElem = DAG.getNode(ISD::EXTRACT_VECTOR_ELT, dl, TmpEltVT, LHS,
|
/external/llvm/lib/Target/SystemZ/ |
SystemZISelLowering.cpp | 609 SDValue SystemZTargetLowering::EmitCmp(SDValue LHS, SDValue RHS, 640 if (LHS.getValueType().isFloatingPoint()) { 650 if (LHS.getValueType().isFloatingPoint()) { 660 if (LHS.getValueType().isFloatingPoint()) { 670 if (LHS.getValueType().isFloatingPoint()) { 683 DebugLoc dl = LHS.getDebugLoc(); 685 dl, MVT::i64, LHS, RHS); 692 SDValue LHS = Op.getOperand(2); 698 SDValue Flag = EmitCmp(LHS, RHS, CC, SystemZCC, DAG); 705 SDValue LHS = Op.getOperand(0) [all...] |