Searched refs:BO (Results 1 - 25 of 77) sorted by relevance

1234

/freebsd-9.3-release/contrib/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...]
/freebsd-9.3-release/contrib/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 DPHITransAddr.cpp302 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;
/freebsd-9.3-release/contrib/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...]
/freebsd-9.3-release/contrib/llvm/lib/Transforms/InstCombine/
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 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 DInstCombineVectorOps.cpp46 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I))
47 if (BO->hasOneUse() &&
48 (CheapToScalarize(BO->getOperand(0), isConstant) ||
49 CheapToScalarize(BO->getOperand(1), isConstant)))
234 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) {
236 CheapToScalarize(BO, isa<ConstantInt>(EI.getOperand(1)))) {
238 Builder->CreateExtractElement(BO->getOperand(0), EI.getOperand(1),
241 Builder->CreateExtractElement(BO->getOperand(1), EI.getOperand(1),
243 return BinaryOperator::Create(BO->getOpcode(), newEI0, newEI1);
631 BinaryOperator *BO local
[all...]
H A DInstCombineCompares.cpp1520 BinaryOperator *BO = cast<BinaryOperator>(LHSI); local
1522 if (Instruction *Res = FoldICmpShrCst(ICI, BO, ShAmt))
1527 if (ICI.isEquality() && BO->isExact() && BO->hasOneUse()) {
1529 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), RHS);
1627 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(LHSI)) {
1628 switch (BO->getOpcode()) {
1631 if (RHSV == 0 && isa<ConstantInt>(BO->getOperand(1)) &&BO->hasOneUse()){
1632 const APInt &V = cast<ConstantInt>(BO
[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...]
H A DInstructionCombining.cpp569 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(&I))
570 return IC->Builder->CreateBinOp(BO->getOpcode(), Op0, Op1,
903 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Op)) {
905 if (BO->getOpcode() == Instruction::Mul) {
907 NoSignedWrap = BO->hasNoSignedWrap();
914 Value *LHS = BO->getOperand(0);
915 Value *RHS = BO->getOperand(1);
930 Parent = std::make_pair(BO, 1);
939 Parent = std::make_pair(BO, 0);
943 if (logScale > 0 && BO
[all...]
/freebsd-9.3-release/contrib/llvm/tools/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());
/freebsd-9.3-release/contrib/llvm/lib/Transforms/Scalar/
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...]
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);
1212 bool JumpThreading::ProcessBranchOnXOR(BinaryOperator *BO) { argument
1213 BasicBlock *BB = BO->getParent();
1217 if (isa<ConstantInt>(BO->getOperand(0)) ||
1218 isa<ConstantInt>(BO->getOperand(1)))
1246 if (!ComputeValueKnownInPredecessors(BO
[all...]
/freebsd-9.3-release/contrib/llvm/tools/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;
194 const BinaryOperator *BO = cast<BinaryOperator>(S); local
195 return BO->getOperatorLoc();
H A DUninitializedValues.cpp328 void VisitBinaryOperator(BinaryOperator *BO);
385 void ClassifyRefs::VisitBinaryOperator(BinaryOperator *BO) { argument
391 if (BO->isCompoundAssignmentOp())
392 classify(BO->getLHS(), Use);
393 else if (BO->getOpcode() == BO_Assign)
394 classify(BO->getLHS(), Ignore);
685 void TransferFunctions::VisitBinaryOperator(BinaryOperator *BO) { argument
686 if (BO->getOpcode() == BO_Assign) {
687 FindVarResult Var = findVar(BO->getLHS());
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DCheckObjCDealloc.cpp80 if (BinaryOperator* BO = dyn_cast<BinaryOperator>(S))
81 if (BO->isAssignmentOp())
83 dyn_cast<ObjCPropertyRefExpr>(BO->getLHS()->IgnoreParenCasts()))
85 if (BO->getRHS()->isNullPointerConstant(Ctx,
H A DDirectIvarAssignment.cpp76 void VisitBinaryOperator(const BinaryOperator *BO);
173 const BinaryOperator *BO) {
174 if (!BO->isAssignmentOp())
178 dyn_cast<ObjCIvarRefExpr>(BO->getLHS()->IgnoreParenCasts());
172 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.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
H A DDereferenceChecker.cpp113 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(S)) {
114 if (BO->isAssignmentOp())
115 S = BO->getRHS();
/freebsd-9.3-release/contrib/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;
/freebsd-9.3-release/contrib/llvm/lib/TableGen/
H A DRecord.cpp238 Init *StringRecTy::convertValue(UnOpInit *BO) { argument
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) { argument
251 if (BO->getOpcode() == BinOpInit::STRCONCAT) {
252 Init *L = BO->getLHS()->convertInitializerTo(this);
253 Init *R = BO
311 convertValue(UnOpInit *BO) argument
322 convertValue(BinOpInit *BO) argument
[all...]
/freebsd-9.3-release/contrib/llvm/lib/Target/PowerPC/
H A DPPCJITInfo.cpp38 #define BUILD_BCCTRx(BO,BI,LINK) \
39 ((19 << 26) | ((BO) << 21) | ((BI) << 16) | (528 << 1) | ((LINK) & 1))
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/AST/
H A DExpr.cpp87 } else if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) {
88 if (BO->isPtrMemOp()) {
89 assert(BO->getRHS()->isRValue());
90 E = BO->getLHS();
92 BO->getRHS()->getType()->getAs<MemberPointerType>();
93 Adjustments.push_back(SubobjectAdjustment(MPT, BO->getRHS()));
95 } else if (BO->getOpcode() == BO_Comma) {
96 CommaLHSs.push_back(BO->getLHS());
97 E = BO->getRHS();
165 if (const BinaryOperator *BO
2019 const BinaryOperator *BO = cast<BinaryOperator>(this); local
[all...]

Completed in 158 milliseconds

1234