Searched defs:BO (Results 1 - 25 of 42) sorted by relevance

12

/external/clang/lib/Analysis/
H A DPseudoConstantAnalysis.cpp94 const BinaryOperator *BO = cast<BinaryOperator>(Head); local
96 const Decl *LHSDecl = getDecl(BO->getLHS()->IgnoreParenCasts());
103 switch (BO->getOpcode()) {
107 const Decl *RHSDecl = getDecl(BO->getRHS()->IgnoreParenCasts());
H A DReachableCode.cpp91 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(S))
92 return BO->getOpcode() != BO_Comma;
191 const BinaryOperator *BO = cast<BinaryOperator>(S); local
192 return BO->getOperatorLoc();
H A DUninitializedValues.cpp329 void VisitBinaryOperator(BinaryOperator *BO);
386 void ClassifyRefs::VisitBinaryOperator(BinaryOperator *BO) { argument
392 if (BO->isCompoundAssignmentOp())
393 classify(BO->getLHS(), Use);
394 else if (BO->getOpcode() == BO_Assign)
395 classify(BO->getLHS(), Ignore);
671 void TransferFunctions::VisitBinaryOperator(BinaryOperator *BO) { argument
672 if (BO->getOpcode() == BO_Assign) {
673 FindVarResult Var = findVar(BO->getLHS());
/external/llvm/lib/Analysis/
H A DScalarEvolutionAliasAnalysis.cpp161 Value *BO = GetBaseValue(BS); local
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)
H A DLazyValueInfo.cpp545 BinaryOperator *BO = dyn_cast<BinaryOperator>(BBI); local
546 if (BO && !isa<ConstantInt>(BO->getOperand(1))) {
H A DValueTracking.cpp1009 OverflowingBinaryOperator *BO = cast<OverflowingBinaryOperator>(V); local
1010 if (BO->hasNoUnsignedWrap())
1023 PossiblyExactOperator *BO = cast<PossiblyExactOperator>(V); local
1024 if (BO->isExact())
1075 OverflowingBinaryOperator *BO = cast<OverflowingBinaryOperator>(V); local
1078 if ((BO->hasNoSignedWrap() || BO->hasNoUnsignedWrap()) &&
H A DScalarEvolutionExpander.cpp193 Instruction *BO = cast<Instruction>(Builder.CreateBinOp(Opcode, LHS, RHS)); local
194 BO->setDebugLoc(SaveInsertPt->getDebugLoc());
195 rememberInstruction(BO);
201 return BO;
/external/clang/lib/ARCMigrate/
H A DTransZeroOutPropsInDealloc.cpp156 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(E))
157 return isZeroingPropIvar(BO);
196 BinaryOperator *BO = dyn_cast<BinaryOperator>(PO->getSyntacticForm()); local
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/clang/lib/StaticAnalyzer/Checkers/
H A DDirectIvarAssignment.cpp82 void VisitBinaryOperator(const BinaryOperator *BO);
179 const BinaryOperator *BO) {
180 if (!BO->isAssignmentOp())
184 dyn_cast<ObjCIvarRefExpr>(BO->getLHS()->IgnoreParenCasts());
178 VisitBinaryOperator( const BinaryOperator *BO) argument
H A DDeadStoresChecker.cpp106 const BinaryOperator *BO = local
108 if (!BO)
110 if (BO->getOpcode() == BO_Assign) {
111 Ex = BO->getRHS();
114 if (BO->getOpcode() == BO_Comma) {
115 Ex = BO->getRHS();
H A DIvarInvalidationChecker.cpp162 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());
681 VisitBinaryOperator( const BinaryOperator *BO) argument
/external/llvm/include/llvm/Support/
H A DNoFolder.h42 BinaryOperator *BO = BinaryOperator::CreateAdd(LHS, RHS); local
43 if (HasNUW) BO->setHasNoUnsignedWrap();
44 if (HasNSW) BO->setHasNoSignedWrap();
45 return BO;
58 BinaryOperator *BO = BinaryOperator::CreateSub(LHS, RHS); local
59 if (HasNUW) BO->setHasNoUnsignedWrap();
60 if (HasNSW) BO->setHasNoSignedWrap();
61 return BO;
74 BinaryOperator *BO = BinaryOperator::CreateMul(LHS, RHS); local
75 if (HasNUW) BO
120 BinaryOperator *BO = BinaryOperator::CreateShl(LHS, RHS); local
158 BinaryOperator *BO = BinaryOperator::CreateNeg(C); local
[all...]
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp187 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(), local
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;
270 BinaryOperator *BO = BinaryOperator::Create(FVI_BO->getOpcode(), local
[all...]
H A DInstCombineShifts.cpp212 BinaryOperator *BO = cast<BinaryOperator>(I); local
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);
254 BinaryOperator *BO = cast<BinaryOperator>(I); local
[all...]
H A DInstCombineVectorOps.cpp44 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 local
[all...]
H A DInstCombineMulDivRem.cpp214 BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0); local
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
[all...]
/external/llvm/include/llvm/IR/
H A DInstrTypes.h196 BinaryOperator *BO = Create(Opc, V1, V2, Name); local
197 BO->setHasNoSignedWrap(true);
198 return BO;
202 BinaryOperator *BO = Create(Opc, V1, V2, Name, BB); local
203 BO->setHasNoSignedWrap(true);
204 return BO;
208 BinaryOperator *BO = Create(Opc, V1, V2, Name, I); local
209 BO->setHasNoSignedWrap(true);
210 return BO;
215 BinaryOperator *BO local
221 BinaryOperator *BO = Create(Opc, V1, V2, Name, BB); local
227 BinaryOperator *BO = Create(Opc, V1, V2, Name, I); local
234 BinaryOperator *BO = Create(Opc, V1, V2, Name); local
240 BinaryOperator *BO = Create(Opc, V1, V2, Name, BB); local
246 BinaryOperator *BO = Create(Opc, V1, V2, Name, I); local
[all...]
/external/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp351 BinaryOperator *BO = dyn_cast<BinaryOperator>(Builder.GetInsertPoint()); local
352 if (!BO || BO->getOpcode() != Instruction::URem)
355 Rem = BO;
404 BinaryOperator *BO = dyn_cast<BinaryOperator>(Builder.GetInsertPoint()); local
405 if (!BO || BO->getOpcode() != Instruction::UDiv)
408 Div = BO;
/external/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp130 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);
1207 bool JumpThreading::ProcessBranchOnXOR(BinaryOperator *BO) { argument
1208 BasicBlock *BB = BO->getParent();
1212 if (isa<ConstantInt>(BO->getOperand(0)) ||
1213 isa<ConstantInt>(BO->getOperand(1)))
1241 if (!ComputeValueKnownInPredecessors(BO
[all...]
H A DReassociate.cpp554 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); local
623 if (Opcode == Instruction::Mul && BO && BinaryOperator::isNeg(BO)) {
625 BO = LowerNegateToMultiply(BO);
626 DEBUG(dbgs() << *BO << '
738 BinaryOperator *BO = isReassociableOp(OldLHS, Opcode); local
744 BinaryOperator *BO = isReassociableOp(OldRHS, Opcode); local
769 BinaryOperator *BO = isReassociableOp(Op->getOperand(1), Opcode); local
783 BinaryOperator *BO = isReassociableOp(Op->getOperand(0), Opcode); local
999 BinaryOperator *BO = isReassociableOp(V, Instruction::Mul); local
1062 BinaryOperator *BO = isReassociableOp(V, Instruction::Mul); local
[all...]
/external/clang/lib/AST/
H A DItaniumMangle.cpp2903 const BinaryOperator *BO = cast<BinaryOperator>(E); local
2904 if (BO->getOpcode() == BO_PtrMemD)
2907 mangleOperatorName(BinaryOperator::getOverloadedOperator(BO->getOpcode()),
2909 mangleExpression(BO->getLHS());
2910 mangleExpression(BO->getRHS());
/external/clang/lib/CodeGen/
H A DCGExprCXX.cpp323 const BinaryOperator *BO = local
325 const Expr *BaseExpr = BO->getLHS();
326 const Expr *MemFnExpr = BO->getRHS();
342 if (BO->getOpcode() == BO_PtrMemI)
/external/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp549 const BinaryOperator *BO = cast<BinaryOperator>(Term); local
550 if (!BO->isLogicalOp())
553 Str = BO->getOpcodeStr();
554 Range = BO->getLHS()->getSourceRange();
556 if ((BO->getOpcode() == BO_LAnd && I->Output) ||
557 (BO->getOpcode() == BO_LOr && !I->Output))
559 Fixit1 = FixItHint::CreateRemoval(SourceRange(BO->getLocStart(),
560 BO->getOperatorLoc()));
563 Fixit1 = FixItHint::CreateReplacement(BO->getSourceRange(), FixitStr);
/external/clang/lib/StaticAnalyzer/Core/
H A DPathDiagnostic.cpp604 PathDiagnosticLocation::createOperatorLoc(const BinaryOperator *BO, argument
606 return PathDiagnosticLocation(BO->getOperatorLoc(), SM, SingleLocK);
/external/llvm/lib/IR/
H A DConstants.cpp2787 BinaryOperator *BO = local
2790 if (isa<OverflowingBinaryOperator>(BO)) {
2791 BO->setHasNoUnsignedWrap(SubclassOptionalData &
2793 BO->setHasNoSignedWrap(SubclassOptionalData &
2796 if (isa<PossiblyExactOperator>(BO))
2797 BO->setIsExact(SubclassOptionalData & PossiblyExactOperator::IsExact);
2798 return BO;

Completed in 455 milliseconds

12