Home
last modified time | relevance | path

Searched refs:BO (Results 1 – 25 of 219) sorted by relevance

123456789

/external/llvm/include/llvm/Support/
DNoFolder.h42 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/include/llvm/
DInstrTypes.h198 BinaryOperator *BO = Create(Opc, V1, V2, Name);
199 BO->setHasNoSignedWrap(true);
200 return BO;
204 BinaryOperator *BO = Create(Opc, V1, V2, Name, BB);
205 BO->setHasNoSignedWrap(true);
206 return BO;
210 BinaryOperator *BO = Create(Opc, V1, V2, Name, I);
211 BO->setHasNoSignedWrap(true);
212 return BO;
217 BinaryOperator *BO = Create(Opc, V1, V2, Name);
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp212 BinaryOperator *BO = cast<BinaryOperator>(I); in GetShiftedValue() local
213 unsigned TypeWidth = BO->getType()->getScalarSizeInBits(); in GetShiftedValue()
216 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1)); in GetShiftedValue()
225 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt)); in GetShiftedValue()
226 BO->setHasNoUnsignedWrap(false); in GetShiftedValue()
227 BO->setHasNoSignedWrap(false); in GetShiftedValue()
235 V = IC.Builder->CreateAnd(BO->getOperand(0), in GetShiftedValue()
236 ConstantInt::get(BO->getContext(), Mask)); in GetShiftedValue()
238 VI->moveBefore(BO); in GetShiftedValue()
239 VI->takeName(BO); in GetShiftedValue()
[all …]
DInstCombineMulDivRem.cpp183 BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0); in visitMul() local
184 if (!BO || in visitMul()
185 (BO->getOpcode() != Instruction::UDiv && in visitMul()
186 BO->getOpcode() != Instruction::SDiv)) { in visitMul()
188 BO = dyn_cast<BinaryOperator>(Op1); in visitMul()
191 if (BO && BO->hasOneUse() && in visitMul()
192 (BO->getOperand(1) == Op1C || BO->getOperand(1) == Neg) && in visitMul()
193 (BO->getOpcode() == Instruction::UDiv || in visitMul()
194 BO->getOpcode() == Instruction::SDiv)) { in visitMul()
195 Value *Op0BO = BO->getOperand(0), *Op1BO = BO->getOperand(1); in visitMul()
[all …]
DInstCombineSelect.cpp180 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(TI)) { in FoldSelectOpOp() local
182 return BinaryOperator::Create(BO->getOpcode(), MatchOp, NewSI); in FoldSelectOpOp()
184 return BinaryOperator::Create(BO->getOpcode(), NewSI, MatchOp); in FoldSelectOpOp()
228 BinaryOperator *BO = BinaryOperator::Create(TVI_BO->getOpcode(), in FoldSelectIntoOp() local
230 if (isa<PossiblyExactOperator>(BO)) in FoldSelectIntoOp()
231 BO->setIsExact(TVI_BO->isExact()); in FoldSelectIntoOp()
232 if (isa<OverflowingBinaryOperator>(BO)) { in FoldSelectIntoOp()
233 BO->setHasNoUnsignedWrap(TVI_BO->hasNoUnsignedWrap()); in FoldSelectIntoOp()
234 BO->setHasNoSignedWrap(TVI_BO->hasNoSignedWrap()); in FoldSelectIntoOp()
236 return BO; in FoldSelectIntoOp()
[all …]
DInstCombineVectorOps.cpp42 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) in CheapToScalarize() local
43 if (BO->hasOneUse() && in CheapToScalarize()
44 (CheapToScalarize(BO->getOperand(0), isConstant) || in CheapToScalarize()
45 CheapToScalarize(BO->getOperand(1), isConstant))) in CheapToScalarize()
148 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) { in visitExtractElementInst() local
150 CheapToScalarize(BO, isa<ConstantInt>(EI.getOperand(1)))) { in visitExtractElementInst()
152 Builder->CreateExtractElement(BO->getOperand(0), EI.getOperand(1), in visitExtractElementInst()
155 Builder->CreateExtractElement(BO->getOperand(1), EI.getOperand(1), in visitExtractElementInst()
157 return BinaryOperator::Create(BO->getOpcode(), newEI0, newEI1); in visitExtractElementInst()
DInstCombineCompares.cpp1329 BinaryOperator *BO = cast<BinaryOperator>(LHSI); in visitICmpInstWithInstAndIntCst() local
1331 if (Instruction *Res = FoldICmpShrCst(ICI, BO, ShAmt)) in visitICmpInstWithInstAndIntCst()
1336 if (ICI.isEquality() && BO->isExact() && BO->hasOneUse()) { in visitICmpInstWithInstAndIntCst()
1338 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), RHS); in visitICmpInstWithInstAndIntCst()
1394 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(LHSI)) { in visitICmpInstWithInstAndIntCst() local
1395 switch (BO->getOpcode()) { in visitICmpInstWithInstAndIntCst()
1398 if (RHSV == 0 && isa<ConstantInt>(BO->getOperand(1)) &&BO->hasOneUse()){ in visitICmpInstWithInstAndIntCst()
1399 const APInt &V = cast<ConstantInt>(BO->getOperand(1))->getValue(); in visitICmpInstWithInstAndIntCst()
1402 Builder->CreateURem(BO->getOperand(0), BO->getOperand(1), in visitICmpInstWithInstAndIntCst()
1403 BO->getName()); in visitICmpInstWithInstAndIntCst()
[all …]
DInstCombinePHI.cpp35 if (OverflowingBinaryOperator *BO = in FoldPHIArgBinOpIntoPHI() local
37 isNUW = BO->hasNoUnsignedWrap(); in FoldPHIArgBinOpIntoPHI()
38 isNSW = BO->hasNoSignedWrap(); in FoldPHIArgBinOpIntoPHI()
423 if (OverflowingBinaryOperator *BO = in FoldPHIArgOpIntoPHI() local
425 isNUW = BO->hasNoUnsignedWrap(); in FoldPHIArgOpIntoPHI()
426 isNSW = BO->hasNoSignedWrap(); in FoldPHIArgOpIntoPHI()
/external/llvm/lib/Analysis/
DScalarEvolutionAliasAnalysis.cpp161 Value *BO = GetBaseValue(BS); in alias() local
162 if ((AO && AO != LocA.Ptr) || (BO && BO != LocB.Ptr)) in alias()
166 Location(BO ? BO : LocB.Ptr, in alias()
167 BO ? +UnknownSize : LocB.Size, in alias()
168 BO ? 0 : LocB.TBAATag)) == NoAlias) in alias()
DPHITransAddr.cpp300 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(*UI)) in PHITranslateSubExpr() local
301 if (BO->getOpcode() == Instruction::Add && in PHITranslateSubExpr()
302 BO->getOperand(0) == LHS && BO->getOperand(1) == RHS && in PHITranslateSubExpr()
303 BO->getParent()->getParent() == CurBB->getParent() && in PHITranslateSubExpr()
304 (!DT || DT->dominates(BO->getParent(), PredBB))) in PHITranslateSubExpr()
305 return BO; in PHITranslateSubExpr()
/external/clang/lib/ARCMigrate/
DTransZeroOutPropsInDealloc.cpp155 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) in isZeroingPropIvar() local
156 return isZeroingPropIvar(BO); in isZeroingPropIvar()
195 BinaryOperator *BO = dyn_cast<BinaryOperator>(PO->getSyntacticForm()); in isZeroingPropIvar() local
196 if (!BO) return false; in isZeroingPropIvar()
197 if (BO->getOpcode() != BO_Assign) return false; in isZeroingPropIvar()
200 dyn_cast<ObjCPropertyRefExpr>(BO->getLHS()->IgnoreParens()); in isZeroingPropIvar()
212 return isZero(cast<OpaqueValueExpr>(BO->getRHS())->getSourceExpr()); in isZeroingPropIvar()
/external/clang/lib/Analysis/
DPseudoConstantAnalysis.cpp93 const BinaryOperator *BO = cast<BinaryOperator>(Head); in RunAnalysis() local
95 const Decl *LHSDecl = getDecl(BO->getLHS()->IgnoreParenCasts()); in RunAnalysis()
102 switch (BO->getOpcode()) { in RunAnalysis()
106 const Decl *RHSDecl = getDecl(BO->getRHS()->IgnoreParenCasts()); in RunAnalysis()
DReachableCode.cpp91 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(S)) in isValidDeadStmt() local
92 return BO->getOpcode() != BO_Comma; in isValidDeadStmt()
191 const BinaryOperator *BO = cast<BinaryOperator>(S); in GetUnreachableLoc() local
192 return BO->getOperatorLoc(); in GetUnreachableLoc()
DThreadSafety.cpp605 void VisitBinaryOperator(BinaryOperator *BO);
630 void VarMapBuilder::VisitBinaryOperator(BinaryOperator *BO) { in VisitBinaryOperator() argument
631 if (!BO->isAssignmentOp()) in VisitBinaryOperator()
634 Expr *LHSExp = BO->getLHS()->IgnoreParenCasts(); in VisitBinaryOperator()
640 if (BO->getOpcode() == BO_Assign) in VisitBinaryOperator()
641 Ctx = VMap->updateDefinition(VDec, BO->getRHS(), Ctx); in VisitBinaryOperator()
645 VMap->saveContext(BO, Ctx); in VisitBinaryOperator()
972 void VisitBinaryOperator(BinaryOperator *BO);
1349 void BuildLockset::VisitBinaryOperator(BinaryOperator *BO) { in VisitBinaryOperator() argument
1350 if (!BO->isAssignmentOp()) in VisitBinaryOperator()
[all …]
DLiveVariables.cpp212 void VisitBinaryOperator(BinaryOperator *BO);
509 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(cs->getStmt())) { in computeLiveness() local
510 if (BO->getOpcode() == BO_Assign) { in computeLiveness()
512 dyn_cast<DeclRefExpr>(BO->getLHS()->IgnoreParens())) { in computeLiveness()
/external/llvm/lib/Transforms/Scalar/
DReassociate.cpp575 BinaryOperator *BO = isReassociableOp(V, Instruction::Mul); in RemoveFactorFromExpression() local
576 if (!BO) return 0; in RemoveFactorFromExpression()
579 LinearizeExprTree(BO, Factors); in RemoveFactorFromExpression()
602 RewriteExprTree(BO, Factors); in RemoveFactorFromExpression()
606 BasicBlock::iterator InsertPt = BO; ++InsertPt; in RemoveFactorFromExpression()
611 ValueRankMap.erase(BO); in RemoveFactorFromExpression()
612 DeadInsts.push_back(BO); in RemoveFactorFromExpression()
615 RewriteExprTree(BO, Factors); in RemoveFactorFromExpression()
616 V = BO; in RemoveFactorFromExpression()
633 BinaryOperator *BO; in FindSingleUseMultiplyFactors() local
[all …]
DJumpThreading.cpp129 bool ProcessBranchOnXOR(BinaryOperator *BO);
449 } else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) { in ComputeValueKnownInPredecessors() local
452 if (ConstantInt *CI = dyn_cast<ConstantInt>(BO->getOperand(1))) { in ComputeValueKnownInPredecessors()
454 ComputeValueKnownInPredecessors(BO->getOperand(0), BB, LHSVals, in ComputeValueKnownInPredecessors()
460 Constant *Folded = ConstantExpr::get(BO->getOpcode(), V, CI); in ComputeValueKnownInPredecessors()
1190 bool JumpThreading::ProcessBranchOnXOR(BinaryOperator *BO) { in ProcessBranchOnXOR() argument
1191 BasicBlock *BB = BO->getParent(); in ProcessBranchOnXOR()
1195 if (isa<ConstantInt>(BO->getOperand(0)) || in ProcessBranchOnXOR()
1196 isa<ConstantInt>(BO->getOperand(1))) in ProcessBranchOnXOR()
1224 if (!ComputeValueKnownInPredecessors(BO->getOperand(0), BB, XorOpValues, in ProcessBranchOnXOR()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DCheckObjCDealloc.cpp79 if (BinaryOperator* BO = dyn_cast<BinaryOperator>(S)) in scan_ivar_release() local
80 if (BO->isAssignmentOp()) in scan_ivar_release()
82 dyn_cast<ObjCPropertyRefExpr>(BO->getLHS()->IgnoreParenCasts())) in scan_ivar_release()
84 if (BO->getRHS()->isNullPointerConstant(Ctx, in scan_ivar_release()
DDeadStoresChecker.cpp73 const BinaryOperator *BO = in LookThroughTransitiveAssignments() local
75 if (!BO) in LookThroughTransitiveAssignments()
77 if (BO->getOpcode() == BO_Assign) { in LookThroughTransitiveAssignments()
78 Ex = BO->getRHS(); in LookThroughTransitiveAssignments()
/external/llvm/lib/TableGen/
DRecord.cpp261 Init *StringRecTy::convertValue(UnOpInit *BO) { in convertValue() argument
262 if (BO->getOpcode() == UnOpInit::CAST) { in convertValue()
263 Init *L = BO->getOperand()->convertInitializerTo(this); in convertValue()
265 if (L != BO->getOperand()) in convertValue()
267 return BO; in convertValue()
270 return convertValue((TypedInit*)BO); in convertValue()
273 Init *StringRecTy::convertValue(BinOpInit *BO) { in convertValue() argument
274 if (BO->getOpcode() == BinOpInit::STRCONCAT) { in convertValue()
275 Init *L = BO->getLHS()->convertInitializerTo(this); in convertValue()
276 Init *R = BO->getRHS()->convertInitializerTo(this); in convertValue()
[all …]
/external/clang/lib/Sema/
DSemaChecking.cpp2811 const BinaryOperator * BO = dyn_cast<BinaryOperator>(Ex); in ignoreLiteralAdditions() local
2812 if (!BO || !BO->isAdditiveOp()) in ignoreLiteralAdditions()
2815 const Expr *RHS = BO->getRHS()->IgnoreParenCasts(); in ignoreLiteralAdditions()
2816 const Expr *LHS = BO->getLHS()->IgnoreParenCasts(); in ignoreLiteralAdditions()
3593 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) { in GetExprRange() local
3594 switch (BO->getOpcode()) { in GetExprRange()
3623 return GetExprRange(C, BO->getRHS(), MaxWidth); in GetExprRange()
3633 return IntRange::meet(GetExprRange(C, BO->getLHS(), MaxWidth), in GetExprRange()
3634 GetExprRange(C, BO->getRHS(), MaxWidth)); in GetExprRange()
3641 = dyn_cast<IntegerLiteral>(BO->getLHS()->IgnoreParenCasts())) { in GetExprRange()
[all …]
/external/clang/lib/AST/
DExpr.cpp62 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) { in isKnownToHaveBooleanValue() local
63 switch (BO->getOpcode()) { in isKnownToHaveBooleanValue()
79 return BO->getLHS()->isKnownToHaveBooleanValue() && in isKnownToHaveBooleanValue()
80 BO->getRHS()->isKnownToHaveBooleanValue(); in isKnownToHaveBooleanValue()
84 return BO->getRHS()->isKnownToHaveBooleanValue(); in isKnownToHaveBooleanValue()
876 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(CEE)) { in getCalleeDecl() local
877 if (BO->isPtrMemOp()) in getCalleeDecl()
878 CEE = BO->getRHS()->IgnoreParenCasts(); in getCalleeDecl()
1709 const BinaryOperator *BO = cast<BinaryOperator>(this); in isUnusedResultAWarning() local
1710 switch (BO->getOpcode()) { in isUnusedResultAWarning()
[all …]
/external/icu4c/data/region/
Dkk.txt54 BO{"Боливия"}
Dfa_AF.txt22 BO{"بولیویا"}
/external/llvm/lib/Target/PowerPC/
DPPCJITInfo.cpp38 #define BUILD_BCCTRx(BO,BI,LINK) \ argument
39 ((19 << 26) | ((BO) << 21) | ((BI) << 16) | (528 << 1) | ((LINK) & 1))

123456789