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

123

/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/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;
/external/llvm/include/llvm/
H A DInstrTypes.h198 BinaryOperator *BO = Create(Opc, V1, V2, Name); local
199 BO->setHasNoSignedWrap(true);
200 return BO;
204 BinaryOperator *BO = Create(Opc, V1, V2, Name, BB); local
205 BO->setHasNoSignedWrap(true);
206 return BO;
210 BinaryOperator *BO = Create(Opc, V1, V2, Name, I); local
211 BO->setHasNoSignedWrap(true);
212 return BO;
217 BinaryOperator *BO local
223 BinaryOperator *BO = Create(Opc, V1, V2, Name, BB); local
229 BinaryOperator *BO = Create(Opc, V1, V2, Name, I); local
236 BinaryOperator *BO = Create(Opc, V1, V2, Name); local
242 BinaryOperator *BO = Create(Opc, V1, V2, Name, BB); local
248 BinaryOperator *BO = Create(Opc, V1, V2, Name, I); local
[all...]
/external/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.cpp186 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(TI)) {
188 return BinaryOperator::Create(BO->getOpcode(), MatchOp, NewSI);
190 return BinaryOperator::Create(BO->getOpcode(), NewSI, MatchOp);
234 BinaryOperator *BO = BinaryOperator::Create(TVI_BO->getOpcode(), local
236 if (isa<PossiblyExactOperator>(BO))
237 BO->setIsExact(TVI_BO->isExact());
238 if (isa<OverflowingBinaryOperator>(BO)) {
239 BO->setHasNoUnsignedWrap(TVI_BO->hasNoUnsignedWrap());
240 BO->setHasNoSignedWrap(TVI_BO->hasNoSignedWrap());
242 return BO;
269 BinaryOperator *BO = BinaryOperator::Create(FVI_BO->getOpcode(), local
[all...]
H A DInstCombineMulDivRem.cpp183 BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0); local
184 if (!BO ||
185 (BO->getOpcode() != Instruction::UDiv &&
186 BO->getOpcode() != Instruction::SDiv)) {
188 BO = dyn_cast<BinaryOperator>(Op1);
191 if (BO && BO->hasOneUse() &&
192 (BO->getOperand(1) == Op1C || BO->getOperand(1) == Neg) &&
193 (BO
[all...]
H A DInstCombineVectorOps.cpp42 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I))
43 if (BO->hasOneUse() &&
44 (CheapToScalarize(BO->getOperand(0), isConstant) ||
45 CheapToScalarize(BO->getOperand(1), isConstant)))
148 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) {
150 CheapToScalarize(BO, isa<ConstantInt>(EI.getOperand(1)))) {
152 Builder->CreateExtractElement(BO->getOperand(0), EI.getOperand(1),
155 Builder->CreateExtractElement(BO->getOperand(1), EI.getOperand(1),
157 return BinaryOperator::Create(BO->getOpcode(), newEI0, newEI1);
H A DInstCombineCompares.cpp1330 BinaryOperator *BO = cast<BinaryOperator>(LHSI); local
1332 if (Instruction *Res = FoldICmpShrCst(ICI, BO, ShAmt))
1337 if (ICI.isEquality() && BO->isExact() && BO->hasOneUse()) {
1339 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), RHS);
1395 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(LHSI)) {
1396 switch (BO->getOpcode()) {
1399 if (RHSV == 0 && isa<ConstantInt>(BO->getOperand(1)) &&BO->hasOneUse()){
1400 const APInt &V = cast<ConstantInt>(BO
[all...]
H A DInstCombinePHI.cpp35 if (OverflowingBinaryOperator *BO =
37 isNUW = BO->hasNoUnsignedWrap();
38 isNSW = BO->hasNoSignedWrap();
423 if (OverflowingBinaryOperator *BO =
425 isNUW = BO->hasNoUnsignedWrap();
426 isNSW = BO->hasNoSignedWrap();
/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/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.cpp315 void VisitBinaryOperator(BinaryOperator *BO);
362 void ClassifyRefs::VisitBinaryOperator(BinaryOperator *BO) { argument
368 if (BO->isCompoundAssignmentOp())
369 classify(BO->getLHS(), Use);
370 else if (BO->getOpcode() == BO_Assign)
371 classify(BO->getLHS(), Ignore);
635 void TransferFunctions::VisitBinaryOperator(BinaryOperator *BO) { argument
636 if (BO->getOpcode() == BO_Assign) {
637 FindVarResult Var = findVar(BO->getLHS());
H A DLiveVariables.cpp212 void VisitBinaryOperator(BinaryOperator *BO);
528 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(cs->getStmt())) {
529 if (BO->getOpcode() == BO_Assign) {
531 dyn_cast<DeclRefExpr>(BO->getLHS()->IgnoreParens())) {
H A DThreadSafety.cpp1129 void VisitBinaryOperator(BinaryOperator *BO);
1154 void VarMapBuilder::VisitBinaryOperator(BinaryOperator *BO) { argument
1155 if (!BO->isAssignmentOp())
1158 Expr *LHSExp = BO->getLHS()->IgnoreParenCasts();
1164 if (BO->getOpcode() == BO_Assign)
1165 Ctx = VMap->updateDefinition(VDec, BO->getRHS(), Ctx);
1169 VMap->saveContext(BO, Ctx);
1727 void VisitBinaryOperator(BinaryOperator *BO);
1993 void BuildLockset::VisitBinaryOperator(BinaryOperator *BO) { argument
1994 if (!BO
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp518 if (BinaryOperator *BO = isReassociableOp(Op, Opcode)) {
521 Worklist.push_back(std::make_pair(BO, Weight));
557 if (BinaryOperator *BO = isReassociableOp(Op, Opcode)) {
559 Worklist.push_back(std::make_pair(BO, It->second));
586 BinaryOperator *BO = dyn_cast<BinaryOperator>(Op); local
587 if (Opcode == Instruction::Mul && BO && BinaryOperator::isNeg(BO)) {
589 BO = LowerNegateToMultiply(BO);
590 DEBUG(dbgs() << *BO << '
963 BinaryOperator *BO = isReassociableOp(V, Instruction::Mul); local
1026 BinaryOperator *BO = isReassociableOp(V, Instruction::Mul); local
[all...]
H A DJumpThreading.cpp129 bool ProcessBranchOnXOR(BinaryOperator *BO);
449 } else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) {
452 if (ConstantInt *CI = dyn_cast<ConstantInt>(BO->getOperand(1))) {
454 ComputeValueKnownInPredecessors(BO->getOperand(0), BB, LHSVals,
460 Constant *Folded = ConstantExpr::get(BO->getOpcode(), V, CI);
1192 bool JumpThreading::ProcessBranchOnXOR(BinaryOperator *BO) { argument
1193 BasicBlock *BB = BO->getParent();
1197 if (isa<ConstantInt>(BO->getOperand(0)) ||
1198 isa<ConstantInt>(BO->getOperand(1)))
1226 if (!ComputeValueKnownInPredecessors(BO
[all...]
/external/clang/lib/StaticAnalyzer/Checkers/
H A DCheckObjCDealloc.cpp79 if (BinaryOperator* BO = dyn_cast<BinaryOperator>(S))
80 if (BO->isAssignmentOp())
82 dyn_cast<ObjCPropertyRefExpr>(BO->getLHS()->IgnoreParenCasts()))
84 if (BO->getRHS()->isNullPointerConstant(Ctx,
H A DDereferenceChecker.cpp102 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(S)) {
103 if (BO->isAssignmentOp())
104 S = BO->getRHS();
H A DDeadStoresChecker.cpp107 const BinaryOperator *BO = local
109 if (!BO)
111 if (BO->getOpcode() == BO_Assign) {
112 Ex = BO->getRHS();
/external/llvm/lib/TableGen/
H A DRecord.cpp219 Init *StringRecTy::convertValue(UnOpInit *BO) { argument
220 if (BO->getOpcode() == UnOpInit::CAST) {
221 Init *L = BO->getOperand()->convertInitializerTo(this);
223 if (L != BO->getOperand())
225 return BO;
228 return convertValue((TypedInit*)BO);
231 Init *StringRecTy::convertValue(BinOpInit *BO) { argument
232 if (BO->getOpcode() == BinOpInit::STRCONCAT) {
233 Init *L = BO->getLHS()->convertInitializerTo(this);
234 Init *R = BO
288 convertValue(UnOpInit *BO) argument
299 convertValue(BinOpInit *BO) argument
[all...]
/external/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))
/external/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp546 const BinaryOperator *BO = cast<BinaryOperator>(Term); local
547 if (!BO->isLogicalOp())
550 Str = BO->getOpcodeStr();
551 Range = BO->getLHS()->getSourceRange();
553 if ((BO->getOpcode() == BO_LAnd && I->Output) ||
554 (BO->getOpcode() == BO_LOr && !I->Output))
556 Fixit1 = FixItHint::CreateRemoval(SourceRange(BO->getLocStart(),
557 BO->getOperatorLoc()));
560 Fixit1 = FixItHint::CreateReplacement(BO->getSourceRange(), FixitStr);
/external/clang/lib/AST/
H A DExpr.cpp77 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) {
78 switch (BO->getOpcode()) {
94 return BO->getLHS()->isKnownToHaveBooleanValue() &&
95 BO->getRHS()->isKnownToHaveBooleanValue();
99 return BO->getRHS()->isKnownToHaveBooleanValue();
1006 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(CEE)) {
1007 if (BO->isPtrMemOp())
1008 CEE = BO->getRHS()->IgnoreParenCasts();
1848 const BinaryOperator *BO = cast<BinaryOperator>(this); local
1849 switch (BO
[all...]

Completed in 673 milliseconds

123