/external/llvm/include/llvm/Support/ |
NoFolder.h | 42 BinaryOperator *BO = BinaryOperator::CreateAdd(LHS, RHS); 43 if (HasNUW) BO->setHasNoUnsignedWrap(); 44 if (HasNSW) BO->setHasNoSignedWrap(); 45 return BO; 58 BinaryOperator *BO = BinaryOperator::CreateSub(LHS, RHS); 59 if (HasNUW) BO->setHasNoUnsignedWrap(); 60 if (HasNSW) BO->setHasNoSignedWrap(); 61 return BO; 74 BinaryOperator *BO = BinaryOperator::CreateMul(LHS, RHS); 75 if (HasNUW) BO->setHasNoUnsignedWrap() [all...] |
/external/llvm/lib/Analysis/ |
ScalarEvolutionAliasAnalysis.cpp | 161 Value *BO = GetBaseValue(BS); 162 if ((AO && AO != LocA.Ptr) || (BO && BO != LocB.Ptr)) 166 Location(BO ? BO : LocB.Ptr, 167 BO ? +UnknownSize : LocB.Size, 168 BO ? 0 : LocB.TBAATag)) == NoAlias)
|
PHITransAddr.cpp | 302 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(*UI)) 303 if (BO->getOpcode() == Instruction::Add && 304 BO->getOperand(0) == LHS && BO->getOperand(1) == RHS && 305 BO->getParent()->getParent() == CurBB->getParent() && 306 (!DT || DT->dominates(BO->getParent(), PredBB))) 307 return BO;
|
/external/llvm/include/llvm/IR/ |
InstrTypes.h | 196 BinaryOperator *BO = Create(Opc, V1, V2, Name); 197 BO->setHasNoSignedWrap(true); 198 return BO; 202 BinaryOperator *BO = Create(Opc, V1, V2, Name, BB); 203 BO->setHasNoSignedWrap(true); 204 return BO; 208 BinaryOperator *BO = Create(Opc, V1, V2, Name, I); 209 BO->setHasNoSignedWrap(true); 210 return BO; 215 BinaryOperator *BO = Create(Opc, V1, V2, Name) [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineShifts.cpp | 212 BinaryOperator *BO = cast<BinaryOperator>(I); 213 unsigned TypeWidth = BO->getType()->getScalarSizeInBits(); 216 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1)); 225 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt)); 226 BO->setHasNoUnsignedWrap(false); 227 BO->setHasNoSignedWrap(false); 235 V = IC.Builder->CreateAnd(BO->getOperand(0), 236 ConstantInt::get(BO->getContext(), Mask)); 238 VI->moveBefore(BO); [all...] |
InstCombineSelect.cpp | 187 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(TI)) { 189 return BinaryOperator::Create(BO->getOpcode(), MatchOp, NewSI); 191 return BinaryOperator::Create(BO->getOpcode(), NewSI, MatchOp); 235 BinaryOperator *BO = BinaryOperator::Create(TVI_BO->getOpcode(), 237 if (isa<PossiblyExactOperator>(BO)) 238 BO->setIsExact(TVI_BO->isExact()); 239 if (isa<OverflowingBinaryOperator>(BO)) { 240 BO->setHasNoUnsignedWrap(TVI_BO->hasNoUnsignedWrap()); 241 BO->setHasNoSignedWrap(TVI_BO->hasNoSignedWrap()); 243 return BO; [all...] |
InstCombineVectorOps.cpp | 44 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) 45 if (BO->hasOneUse() && 46 (CheapToScalarize(BO->getOperand(0), isConstant) || 47 CheapToScalarize(BO->getOperand(1), isConstant))) 232 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) { 234 CheapToScalarize(BO, isa<ConstantInt>(EI.getOperand(1)))) { 236 Builder->CreateExtractElement(BO->getOperand(0), EI.getOperand(1), 239 Builder->CreateExtractElement(BO->getOperand(1), EI.getOperand(1), 241 return BinaryOperator::Create(BO->getOpcode(), newEI0, newEI1); 597 BinaryOperator *BO = cast<BinaryOperator>(I) [all...] |
InstCombineCompares.cpp | [all...] |
InstCombineMulDivRem.cpp | 214 BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0); 215 if (!BO || 216 (BO->getOpcode() != Instruction::UDiv && 217 BO->getOpcode() != Instruction::SDiv)) { 219 BO = dyn_cast<BinaryOperator>(Op1); 222 if (BO && BO->hasOneUse() && 223 (BO->getOperand(1) == Op1C || BO->getOperand(1) == Neg) && 224 (BO->getOpcode() == Instruction::UDiv | [all...] |
InstructionCombining.cpp | 569 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(&I)) 570 return IC->Builder->CreateBinOp(BO->getOpcode(), Op0, Op1, [all...] |
/external/clang/lib/ARCMigrate/ |
TransZeroOutPropsInDealloc.cpp | 156 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) 157 return isZeroingPropIvar(BO); 196 BinaryOperator *BO = dyn_cast<BinaryOperator>(PO->getSyntacticForm()); 197 if (!BO) return false; 198 if (BO->getOpcode() != BO_Assign) return false; 201 dyn_cast<ObjCPropertyRefExpr>(BO->getLHS()->IgnoreParens()); 213 return isZero(cast<OpaqueValueExpr>(BO->getRHS())->getSourceExpr());
|
/external/llvm/lib/Transforms/Scalar/ |
Reassociate.cpp | 554 if (BinaryOperator *BO = isReassociableOp(Op, Opcode)) { 557 Worklist.push_back(std::make_pair(BO, Weight)); 593 if (BinaryOperator *BO = isReassociableOp(Op, Opcode)) { 595 Worklist.push_back(std::make_pair(BO, It->second)); 622 BinaryOperator *BO = dyn_cast<BinaryOperator>(Op); 623 if (Opcode == Instruction::Mul && BO && BinaryOperator::isNeg(BO)) { 625 BO = LowerNegateToMultiply(BO); 626 DEBUG(dbgs() << *BO << 'n') [all...] |
JumpThreading.cpp | 130 bool ProcessBranchOnXOR(BinaryOperator *BO); 460 } else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) { 463 if (ConstantInt *CI = dyn_cast<ConstantInt>(BO->getOperand(1))) { 465 ComputeValueKnownInPredecessors(BO->getOperand(0), BB, LHSVals, 471 Constant *Folded = ConstantExpr::get(BO->getOpcode(), V, CI); [all...] |
/external/clang/lib/Analysis/ |
PseudoConstantAnalysis.cpp | 94 const BinaryOperator *BO = cast<BinaryOperator>(Head); 96 const Decl *LHSDecl = getDecl(BO->getLHS()->IgnoreParenCasts()); 103 switch (BO->getOpcode()) { 107 const Decl *RHSDecl = getDecl(BO->getRHS()->IgnoreParenCasts());
|
ReachableCode.cpp | 91 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(S)) 92 return BO->getOpcode() != BO_Comma; 191 const BinaryOperator *BO = cast<BinaryOperator>(S); 192 return BO->getOperatorLoc();
|
UninitializedValues.cpp | 329 void VisitBinaryOperator(BinaryOperator *BO); 386 void ClassifyRefs::VisitBinaryOperator(BinaryOperator *BO) { 392 if (BO->isCompoundAssignmentOp()) 393 classify(BO->getLHS(), Use); 394 else if (BO->getOpcode() == BO_Assign) 395 classify(BO->getLHS(), Ignore); 453 void VisitBinaryOperator(BinaryOperator *bo); 671 void TransferFunctions::VisitBinaryOperator(BinaryOperator *BO) { 672 if (BO->getOpcode() == BO_Assign) { 673 FindVarResult Var = findVar(BO->getLHS()) [all...] |
/external/clang/lib/StaticAnalyzer/Checkers/ |
CheckObjCDealloc.cpp | 80 if (BinaryOperator* BO = dyn_cast<BinaryOperator>(S)) 81 if (BO->isAssignmentOp()) 83 dyn_cast<ObjCPropertyRefExpr>(BO->getLHS()->IgnoreParenCasts())) 85 if (BO->getRHS()->isNullPointerConstant(Ctx,
|
DirectIvarAssignment.cpp | 82 void VisitBinaryOperator(const BinaryOperator *BO); 179 const BinaryOperator *BO) { 180 if (!BO->isAssignmentOp()) 184 dyn_cast<ObjCIvarRefExpr>(BO->getLHS()->IgnoreParenCasts());
|
DeadStoresChecker.cpp | 106 const BinaryOperator *BO = 108 if (!BO) 110 if (BO->getOpcode() == BO_Assign) { 111 Ex = BO->getRHS(); 114 if (BO->getOpcode() == BO_Comma) { 115 Ex = BO->getRHS();
|
IvarInvalidationChecker.cpp | 162 void VisitBinaryOperator(const BinaryOperator *BO); 682 const BinaryOperator *BO) { 683 VisitStmt(BO); 687 BinaryOperatorKind Opcode = BO->getOpcode(); 693 if (isZero(BO->getRHS())) { 694 check(BO->getLHS()); 698 if (Opcode != BO_Assign && isZero(BO->getLHS())) { 699 check(BO->getRHS());
|
DereferenceChecker.cpp | 113 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(S)) { 114 if (BO->isAssignmentOp()) 115 S = BO->getRHS();
|
/external/llvm/lib/Transforms/Utils/ |
IntegerDivision.cpp | 351 BinaryOperator *BO = dyn_cast<BinaryOperator>(Builder.GetInsertPoint()); 352 if (!BO || BO->getOpcode() != Instruction::URem) 355 Rem = BO; 404 BinaryOperator *BO = dyn_cast<BinaryOperator>(Builder.GetInsertPoint()); 405 if (!BO || BO->getOpcode() != Instruction::UDiv) 408 Div = BO;
|
/external/llvm/lib/TableGen/ |
Record.cpp | 238 Init *StringRecTy::convertValue(UnOpInit *BO) { 239 if (BO->getOpcode() == UnOpInit::CAST) { 240 Init *L = BO->getOperand()->convertInitializerTo(this); 242 if (L != BO->getOperand()) 244 return BO; 247 return convertValue((TypedInit*)BO); 250 Init *StringRecTy::convertValue(BinOpInit *BO) { 251 if (BO->getOpcode() == BinOpInit::STRCONCAT) { 252 Init *L = BO->getLHS()->convertInitializerTo(this); 253 Init *R = BO->getRHS()->convertInitializerTo(this) [all...] |
/external/clang/lib/AST/ |
Expr.cpp | 86 } else if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) { 87 if (BO->isPtrMemOp()) { 88 assert(BO->getRHS()->isRValue()); 89 E = BO->getLHS(); 91 BO->getRHS()->getType()->getAs<MemberPointerType>(); 92 Adjustments.push_back(SubobjectAdjustment(MPT, BO->getRHS())); 94 } else if (BO->getOpcode() == BO_Comma) { 95 CommaLHSs.push_back(BO->getLHS()); 96 E = BO->getRHS(); 164 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) [all...] |
/external/llvm/lib/Target/PowerPC/ |
PPCJITInfo.cpp | 38 #define BUILD_BCCTRx(BO,BI,LINK) \ 39 ((19 << 26) | ((BO) << 21) | ((BI) << 16) | (528 << 1) | ((LINK) & 1))
|