Searched defs:BO (Results 1 - 25 of 46) 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.cpp409 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(S))
410 return BO->getOpcode() != BO_Comma;
514 const BinaryOperator *BO = cast<BinaryOperator>(S); local
515 return BO->getOperatorLoc();
H A DThreadSafetyCommon.cpp268 const BinaryOperator *BO,
270 til::SExpr *E0 = translate(BO->getLHS(), Ctx);
271 til::SExpr *E1 = translate(BO->getRHS(), Ctx);
280 const BinaryOperator *BO,
283 const Expr *LHS = BO->getLHS();
284 const Expr *RHS = BO->getRHS();
306 til::SExpr *SExprBuilder::translateBinaryOperator(const BinaryOperator *BO, argument
308 switch (BO->getOpcode()) {
311 return new (Arena) til::Undefined(BO);
313 case BO_Mul: return translateBinOp(til::BOP_Mul, BO, Ct
267 translateBinOp(til::TIL_BinaryOpcode Op, const BinaryOperator *BO, CallingContext *Ctx, bool Reverse) argument
279 translateBinAssign(til::TIL_BinaryOpcode Op, const BinaryOperator *BO, CallingContext *Ctx, bool Assign) argument
[all...]
H A DUninitializedValues.cpp328 void VisitBinaryOperator(BinaryOperator *BO);
384 void ClassifyRefs::VisitBinaryOperator(BinaryOperator *BO) { argument
390 if (BO->isCompoundAssignmentOp())
391 classify(BO->getLHS(), Use);
392 else if (BO->getOpcode() == BO_Assign)
393 classify(BO->getLHS(), Ignore);
686 void TransferFunctions::VisitBinaryOperator(BinaryOperator *BO) { argument
687 if (BO->getOpcode() == BO_Assign) {
688 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 ? nullptr : LocB.TBAATag)) == NoAlias)
H A DLazyValueInfo.cpp546 BinaryOperator *BO = dyn_cast<BinaryOperator>(BBI); local
547 if (BO && !isa<ConstantInt>(BO->getOperand(1))) {
H A DValueTracking.cpp1018 OverflowingBinaryOperator *BO = cast<OverflowingBinaryOperator>(V); local
1019 if (BO->hasNoUnsignedWrap())
1032 PossiblyExactOperator *BO = cast<PossiblyExactOperator>(V); local
1033 if (BO->isExact())
1084 OverflowingBinaryOperator *BO = cast<OverflowingBinaryOperator>(V); local
1087 if ((BO->hasNoSignedWrap() || BO->hasNoUnsignedWrap()) &&
/external/clang/lib/ARCMigrate/
H A DTransZeroOutPropsInDealloc.cpp154 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(E))
155 return isZeroingPropIvar(BO);
194 BinaryOperator *BO = dyn_cast<BinaryOperator>(PO->getSyntacticForm()); local
195 if (!BO) return false;
196 if (BO->getOpcode() != BO_Assign) return false;
199 dyn_cast<ObjCPropertyRefExpr>(BO->getLHS()->IgnoreParens());
211 return isZero(cast<OpaqueValueExpr>(BO->getRHS())->getSourceExpr());
/external/clang/lib/StaticAnalyzer/Checkers/
H A DDirectIvarAssignment.cpp78 void VisitBinaryOperator(const BinaryOperator *BO);
166 const BinaryOperator *BO) {
167 if (!BO->isAssignmentOp())
171 dyn_cast<ObjCIvarRefExpr>(BO->getLHS()->IgnoreParenCasts());
165 VisitBinaryOperator( const BinaryOperator *BO) argument
H A DDeadStoresChecker.cpp105 const BinaryOperator *BO = local
107 if (!BO)
109 if (BO->getOpcode() == BO_Assign) {
110 Ex = BO->getRHS();
113 if (BO->getOpcode() == BO_Comma) {
114 Ex = BO->getRHS();
H A DIvarInvalidationChecker.cpp165 void VisitBinaryOperator(const BinaryOperator *BO);
672 const BinaryOperator *BO) {
673 VisitStmt(BO);
677 BinaryOperatorKind Opcode = BO->getOpcode();
683 if (isZero(BO->getRHS())) {
684 check(BO->getLHS());
688 if (Opcode != BO_Assign && isZero(BO->getLHS())) {
689 check(BO->getRHS());
671 VisitBinaryOperator( const BinaryOperator *BO) argument
/external/llvm/include/llvm/IR/
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...]
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/InstCombine/
H A DInstCombineSelect.cpp211 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(TI)) {
213 return BinaryOperator::Create(BO->getOpcode(), MatchOp, NewSI);
215 return BinaryOperator::Create(BO->getOpcode(), NewSI, MatchOp);
259 BinaryOperator *BO = BinaryOperator::Create(TVI_BO->getOpcode(), local
261 if (isa<PossiblyExactOperator>(BO))
262 BO->setIsExact(TVI_BO->isExact());
263 if (isa<OverflowingBinaryOperator>(BO)) {
264 BO->setHasNoUnsignedWrap(TVI_BO->hasNoUnsignedWrap());
265 BO->setHasNoSignedWrap(TVI_BO->hasNoSignedWrap());
267 return BO;
294 BinaryOperator *BO = BinaryOperator::Create(FVI_BO->getOpcode(), local
[all...]
H A DInstCombineShifts.cpp214 BinaryOperator *BO = cast<BinaryOperator>(I); local
215 unsigned TypeWidth = BO->getType()->getScalarSizeInBits();
218 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1));
227 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt));
228 BO->setHasNoUnsignedWrap(false);
229 BO->setHasNoSignedWrap(false);
237 V = IC.Builder->CreateAnd(BO->getOperand(0),
238 ConstantInt::get(BO->getContext(), Mask));
240 VI->moveBefore(BO);
256 BinaryOperator *BO = cast<BinaryOperator>(I); local
[all...]
H A DInstCombineVectorOps.cpp48 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I))
49 if (BO->hasOneUse() &&
50 (CheapToScalarize(BO->getOperand(0), isConstant) ||
51 CheapToScalarize(BO->getOperand(1), isConstant)))
236 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) {
238 CheapToScalarize(BO, isa<ConstantInt>(EI.getOperand(1)))) {
240 Builder->CreateExtractElement(BO->getOperand(0), EI.getOperand(1),
243 Builder->CreateExtractElement(BO->getOperand(1), EI.getOperand(1),
245 return BinaryOperator::Create(BO->getOpcode(), newEI0, newEI1);
690 BinaryOperator *BO local
[all...]
H A DInstCombineMulDivRem.cpp223 BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0); local
224 if (!BO ||
225 (BO->getOpcode() != Instruction::UDiv &&
226 BO->getOpcode() != Instruction::SDiv)) {
228 BO = dyn_cast<BinaryOperator>(Op1);
231 if (BO && BO->hasOneUse() &&
232 (BO->getOperand(1) == Op1C || BO->getOperand(1) == Neg) &&
233 (BO
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp153 APInt findInEitherOperand(BinaryOperator *BO, bool SignExtended,
201 /// of binary operator BO for a constant offset.
203 /// \p SignExtended Whether BO is surrounded by sext
204 /// \p ZeroExtended Whether BO is surrounded by zext
205 /// \p NonNegative Whether BO is known to be non-negative, e.g., an in-bound
207 bool CanTraceInto(bool SignExtended, bool ZeroExtended, BinaryOperator *BO,
315 BinaryOperator *BO,
320 if (BO->getOpcode() != Instruction::Add &&
321 BO->getOpcode() != Instruction::Sub &&
322 BO
313 CanTraceInto(bool SignExtended, bool ZeroExtended, BinaryOperator *BO, bool NonNegative) argument
375 findInEitherOperand(BinaryOperator *BO, bool SignExtended, bool ZeroExtended) argument
489 BinaryOperator *BO = cast<BinaryOperator>(U); local
512 BinaryOperator *BO = cast<BinaryOperator>(UserChain[ChainIndex]); local
[all...]
H A DJumpThreading.cpp131 bool ProcessBranchOnXOR(BinaryOperator *BO);
474 } else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) {
477 if (ConstantInt *CI = dyn_cast<ConstantInt>(BO->getOperand(1))) {
479 ComputeValueKnownInPredecessors(BO->getOperand(0), BB, LHSVals,
485 Constant *Folded = ConstantExpr::get(BO->getOpcode(), V, CI);
1226 bool JumpThreading::ProcessBranchOnXOR(BinaryOperator *BO) { argument
1227 BasicBlock *BB = BO->getParent();
1231 if (isa<ConstantInt>(BO->getOperand(0)) ||
1232 isa<ConstantInt>(BO->getOperand(1)))
1260 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
998 BinaryOperator *BO = isReassociableOp(V, Instruction::Mul); local
1061 BinaryOperator *BO = isReassociableOp(V, Instruction::Mul); local
[all...]
H A DScalarizer.cpp92 // BinarySpliiter(BO)(Builder, X, Y, Name) uses Builder to create
93 // a binary operator like BO called Name with operands X and Y.
95 BinarySplitter(BinaryOperator &bo) : BO(bo) {}
98 return Builder.CreateBinOp(BO.getOpcode(), Op0, Op1, Name);
100 BinaryOperator &BO; member in struct:__anon25499::BinarySplitter
421 bool Scalarizer::visitBinaryOperator(BinaryOperator &BO) { argument
422 return splitBinary(BO, BinarySplitter(BO));
/external/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp402 BinaryOperator *BO = dyn_cast<BinaryOperator>(Builder.GetInsertPoint()); local
403 if (!BO || BO->getOpcode() != Instruction::URem)
406 Rem = BO;
460 BinaryOperator *BO = dyn_cast<BinaryOperator>(Builder.GetInsertPoint()); local
461 if (!BO || BO->getOpcode() != Instruction::UDiv)
464 Div = BO;
/external/clang/lib/CodeGen/
H A DCodeGenPGO.cpp344 const BinaryOperator *BO = cast<BinaryOperator>(S); local
345 if (BO->getOpcode() == BO_LAnd)
347 if (BO->getOpcode() == BO_LOr)
H A DCGExprCXX.cpp236 const BinaryOperator *BO = local
238 const Expr *BaseExpr = BO->getLHS();
239 const Expr *MemFnExpr = BO->getRHS();
255 if (BO->getOpcode() == BO_PtrMemI)
265 CGM.getCXXABI().EmitLoadOfMemberFunctionPointer(*this, BO, This, MemFnPtr, MPT);
/external/clang/lib/AST/
H A DItaniumMangle.cpp2950 const BinaryOperator *BO = cast<BinaryOperator>(E); local
2951 if (BO->getOpcode() == BO_PtrMemD)
2954 mangleOperatorName(BinaryOperator::getOverloadedOperator(BO->getOpcode()),
2956 mangleExpression(BO->getLHS());
2957 mangleExpression(BO->getRHS());

Completed in 380 milliseconds

12