| /freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/ |
| H A D | SeparateConstOffsetFromGEP.cpp | 491 if (BO->getOpcode() != Instruction::Add && in CanTraceInto() 492 BO->getOpcode() != Instruction::Sub && in CanTraceInto() 493 BO->getOpcode() != Instruction::Or) { in CanTraceInto() 497 Value *LHS = BO->getOperand(0), *RHS = BO->getOperand(1); in CanTraceInto() 502 if (BO->getOpcode() == Instruction::Or && in CanTraceInto() 538 if (BO->getOpcode() == Instruction::Add || in CanTraceInto() 566 if (BO->getOpcode() == Instruction::Sub) in findInEitherOperand() 691 assert(BO->getNumUses() <= 1 && in removeConstOffset() 709 if (BO->getOpcode() == Instruction::Or) { in removeConstOffset() 732 NewBO->takeName(BO); in removeConstOffset() [all …]
|
| H A D | Reassociate.cpp | 581 BO = LowerNegateToMultiply(BO); in LinearizeExprTree() 695 if (BO && !NotRewritable.count(BO)) in RewriteExprTree() 701 if (BO && !NotRewritable.count(BO)) in RewriteExprTree() 726 if (BO && !NotRewritable.count(BO)) in RewriteExprTree() 740 if (BO && !NotRewritable.count(BO)) { in RewriteExprTree() 741 Op = BO; in RewriteExprTree() 1016 if (!BO) in RemoveFactorFromExpression() 1075 V = BO; in RemoveFactorFromExpression() 1091 if (!BO) { in FindSingleUseMultiplyFactors() 2106 if (BO->user_back() != BO && in OptimizeInst() [all …]
|
| H A D | CorrelatedValuePropagation.cpp | 537 if (auto *BinOp = dyn_cast<BinaryOperator>(BO)) in processUDivOrURem() 553 BO->setDebugLoc(SDI->getDebugLoc()); in processSRem() 554 SDI->replaceAllUsesWith(BO); in processSRem() 558 processUDivOrURem(BO, LVI); in processSRem() 575 BO->setDebugLoc(SDI->getDebugLoc()); in processSDiv() 576 BO->setIsExact(SDI->isExact()); in processSDiv() 577 SDI->replaceAllUsesWith(BO); in processSDiv() 581 processUDivOrURem(BO, LVI); in processSDiv() 598 BO->setDebugLoc(SDI->getDebugLoc()); in processAShr() 599 BO->setIsExact(SDI->isExact()); in processAShr() [all …]
|
| H A D | JumpThreading.cpp | 730 } else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) { in ComputeValueKnownInPredecessorsImpl() local 1778 BasicBlock *BB = BO->getParent(); in ProcessBranchOnXOR() 1782 if (isa<ConstantInt>(BO->getOperand(0)) || in ProcessBranchOnXOR() 1783 isa<ConstantInt>(BO->getOperand(1))) in ProcessBranchOnXOR() 1816 WantInteger, BO)) { in ProcessBranchOnXOR() 1819 WantInteger, BO)) in ProcessBranchOnXOR() 1863 BO->replaceAllUsesWith(UndefValue::get(BO->getType())); in ProcessBranchOnXOR() 1864 BO->eraseFromParent(); in ProcessBranchOnXOR() 1867 BO->replaceAllUsesWith(BO->getOperand(isLHS)); in ProcessBranchOnXOR() 1868 BO->eraseFromParent(); in ProcessBranchOnXOR() [all …]
|
| H A D | LoopRerollPass.cpp | 541 if (auto *BO = dyn_cast<BinaryOperator>(User)) { in isLoopControlIV() local 542 if (BO->getOpcode() == Instruction::Add) { in isLoopControlIV() 555 if (BO->hasNoSignedWrap() && UUser && UUser->hasOneUse() && in isLoopControlIV() 764 BinaryOperator *BO = dyn_cast<BinaryOperator>(U); in isLoopIncrement() local 766 if ((BO && BO->getOpcode() != Instruction::Add) || in isLoopIncrement() 767 (!BO && !isa<GetElementPtrInst>(U))) in isLoopIncrement() 791 if (auto *BO = dyn_cast<BinaryOperator>(I)) { in collectPossibleRoots() local 792 if (BO->getOpcode() == Instruction::Add || in collectPossibleRoots() 793 BO->getOpcode() == Instruction::Or) in collectPossibleRoots() 794 CI = dyn_cast<ConstantInt>(BO->getOperand(1)); in collectPossibleRoots()
|
| /freebsd-12.1/contrib/llvm/include/llvm/IR/ |
| H A D | NoFolder.h | 45 if (HasNUW) BO->setHasNoUnsignedWrap(); 46 if (HasNSW) BO->setHasNoSignedWrap(); 47 return BO; 65 if (HasNUW) BO->setHasNoUnsignedWrap(); 66 if (HasNSW) BO->setHasNoSignedWrap(); 67 return BO; 86 if (HasNSW) BO->setHasNoSignedWrap(); 87 return BO; 144 if (HasNSW) BO->setHasNoSignedWrap(); 145 return BO; [all …]
|
| H A D | InstrTypes.h | 169 return BO; 207 return BO; 213 return BO; 219 return BO; 226 return BO; 232 return BO; 238 return BO; 244 BO->setIsExact(true); 245 return BO; 251 return BO; [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Support/ |
| H A D | FormatVariadic.cpp | 96 std::size_t BO = Fmt.find_first_of('{', From); in splitLiteralAndReplacement() local 98 if (BO != 0) in splitLiteralAndReplacement() 99 return std::make_pair(ReplacementItem{Fmt.substr(0, BO)}, Fmt.substr(BO)); in splitLiteralAndReplacement() 102 Fmt.drop_front(BO).take_while([](char C) { return C == '{'; }); in splitLiteralAndReplacement() 107 StringRef Middle = Fmt.substr(BO, NumEscapedBraces); in splitLiteralAndReplacement() 108 StringRef Right = Fmt.drop_front(BO + NumEscapedBraces * 2); in splitLiteralAndReplacement() 114 std::size_t BC = Fmt.find_first_of('}', BO); in splitLiteralAndReplacement() 125 std::size_t BO2 = Fmt.find_first_of('{', BO + 1); in splitLiteralAndReplacement() 130 StringRef Spec = Fmt.slice(BO + 1, BC); in splitLiteralAndReplacement()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/ |
| H A D | ThreadSafetyCommon.cpp | 478 til::SExpr *E0 = translate(BO->getLHS(), Ctx); in translateBinOp() 479 til::SExpr *E1 = translate(BO->getRHS(), Ctx); in translateBinOp() 490 const Expr *LHS = BO->getLHS(); in translateBinAssign() 491 const Expr *RHS = BO->getRHS(); in translateBinAssign() 514 switch (BO->getOpcode()) { in translateBinaryOperator() 517 return new (Arena) til::Undefined(BO); in translateBinaryOperator() 519 case BO_Mul: return translateBinOp(til::BOP_Mul, BO, Ctx); in translateBinaryOperator() 520 case BO_Div: return translateBinOp(til::BOP_Div, BO, Ctx); in translateBinaryOperator() 521 case BO_Rem: return translateBinOp(til::BOP_Rem, BO, Ctx); in translateBinaryOperator() 553 return translate(BO->getRHS(), Ctx); in translateBinaryOperator() [all …]
|
| H A D | UninitializedValues.cpp | 351 void VisitBinaryOperator(BinaryOperator *BO); 412 if (const auto *BO = dyn_cast<BinaryOperator>(E)) { in classify() local 413 switch (BO->getOpcode()) { in classify() 416 classify(BO->getLHS(), C); in classify() 419 classify(BO->getRHS(), C); in classify() 446 if (BO->isCompoundAssignmentOp()) in VisitBinaryOperator() 447 classify(BO->getLHS(), Use); in VisitBinaryOperator() 448 else if (BO->getOpcode() == BO_Assign || BO->getOpcode() == BO_Comma) in VisitBinaryOperator() 449 classify(BO->getLHS(), Ignore); in VisitBinaryOperator() 765 if (BO->getOpcode() == BO_Assign) { in VisitBinaryOperator() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Analysis/ |
| H A D | ScalarEvolutionAliasAnalysis.cpp | 82 Value *BO = GetBaseValue(BS); in alias() local 83 if ((AO && AO != LocA.Ptr) || (BO && BO != LocB.Ptr)) in alias() 87 MemoryLocation(BO ? BO : LocB.Ptr, in alias() 88 BO ? LocationSize::unknown() : LocB.Size, in alias() 89 BO ? AAMDNodes() : LocB.AATags)) == NoAlias) in alias()
|
| H A D | PHITransAddr.cpp | 293 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(U)) in PHITranslateSubExpr() local 294 if (BO->getOpcode() == Instruction::Add && in PHITranslateSubExpr() 295 BO->getOperand(0) == LHS && BO->getOperand(1) == RHS && in PHITranslateSubExpr() 296 BO->getParent()->getParent() == CurBB->getParent() && in PHITranslateSubExpr() 297 (!DT || DT->dominates(BO->getParent(), PredBB))) in PHITranslateSubExpr() 298 return BO; in PHITranslateSubExpr()
|
| H A D | LazyValueInfo.cpp | 641 return solveBlockValueBinaryOp(Res, BO, BB); in solveBlockValueImpl() 1025 assert(BO->getOperand(0)->getType()->isSized() && in solveBlockValueBinaryOp() 1031 switch (BO->getOpcode()) { in solveBlockValueBinaryOp() 1068 Instruction::BinaryOps BinOp = BO->getOpcode(); in solveBlockValueBinaryOp() 1150 BinaryOperator *BO = dyn_cast<BinaryOperator>(Cond); in getValueFromConditionImpl() local 1151 if (!BO || (isTrueDest && BO->getOpcode() != BinaryOperator::And) || in getValueFromConditionImpl() 1159 Value *BL = BO->getOperand(0); in getValueFromConditionImpl() 1160 Value *BR = BO->getOperand(1); in getValueFromConditionImpl() 1217 } else if (auto *BO = dyn_cast<BinaryOperator>(Usr)) { in constantFoldUser() local 1218 bool Op0Match = BO->getOperand(0) == Op; in constantFoldUser() [all …]
|
| H A D | ScalarEvolution.cpp | 4981 if (!BO) in createSimpleAffineAddRec() 4988 if (BO->LHS == PN && L->isLoopInvariant(BO->RHS)) in createSimpleAffineAddRec() 4990 else if (BO->RHS == PN && L->isLoopInvariant(BO->LHS)) in createSimpleAffineAddRec() 4997 if (BO->IsNUW) in createSimpleAffineAddRec() 4999 if (BO->IsNSW) in createSimpleAffineAddRec() 5094 if (BO->Opcode == Instruction::Add && BO->LHS == PN) { in createAddRecFromPHI() 6189 BO = NewBO; in createSCEV() 6224 return getUDivExpr(getSCEV(BO->LHS), getSCEV(BO->RHS)); in createSCEV() 6226 return getURemExpr(getSCEV(BO->LHS), getSCEV(BO->RHS)); in createSCEV() 6229 if (BO->Op) in createSCEV() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyIndVar.cpp | 735 if (BO->hasNoUnsignedWrap() && BO->hasNoSignedWrap()) in strengthenOverflowingOperation() 740 switch (BO->getOpcode()) { in strengthenOverflowingOperation() 764 if (!BO->hasNoUnsignedWrap()) { in strengthenOverflowingOperation() 770 BO->setHasNoUnsignedWrap(); in strengthenOverflowingOperation() 771 SE->forgetValue(BO); in strengthenOverflowingOperation() 776 if (!BO->hasNoSignedWrap()) { in strengthenOverflowingOperation() 782 BO->setHasNoSignedWrap(); in strengthenOverflowingOperation() 783 SE->forgetValue(BO); in strengthenOverflowingOperation() 798 if (BO->getOpcode() == Instruction::Shl) { in strengthenRightShift() 801 for (auto *U : BO->users()) { in strengthenRightShift() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/ARCMigrate/ |
| H A D | TransZeroOutPropsInDealloc.cpp | 154 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) in isZeroingPropIvar() local 155 return isZeroingPropIvar(BO); in isZeroingPropIvar() 194 BinaryOperator *BO = dyn_cast<BinaryOperator>(PO->getSyntacticForm()); in isZeroingPropIvar() local 195 if (!BO) return false; in isZeroingPropIvar() 196 if (BO->getOpcode() != BO_Assign) return false; in isZeroingPropIvar() 199 dyn_cast<ObjCPropertyRefExpr>(BO->getLHS()->IgnoreParens()); in isZeroingPropIvar() 211 return isZero(cast<OpaqueValueExpr>(BO->getRHS())->getSourceExpr()); in isZeroingPropIvar()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineMulDivRem.cpp | 147 BO->setHasNoSignedWrap(); in visitMul() 148 return BO; in visitMul() 168 return BO; in visitMul() 302 if (BO) { in visitMul() 307 return BO; in visitMul() 657 return BO; in commonIDivTransforms() 890 BO->setIsExact(); in visitUDiv() 891 return BO; in visitUDiv() 1016 return BO; in visitSDiv() 1028 return BO; in visitSDiv() [all …]
|
| H A D | InstructionCombining.cpp | 808 auto *BO = cast<BinaryOperator>(&I); in foldOperationIntoSelectOperand() local 813 FPInst->copyFastMathFlags(BO); in foldOperationIntoSelectOperand() 1194 Value *LHS = BO->getOperand(0); in Descale() 1195 Value *RHS = BO->getOperand(1); in Descale() 1219 Parent = std::make_pair(BO, 0); in Descale() 1230 Value *LHS = BO->getOperand(0); in Descale() 1388 BO->copyIRFlags(&Inst); in foldVectorBinop() 1391 BO->copyIRFlags(&Inst); in foldVectorBinop() 1404 BO->copyIRFlags(&Inst); in foldVectorBinop() 1503 Value *Op0 = BO.getOperand(0), *Op1 = BO.getOperand(1); in narrowMathIfNoOverflow() [all …]
|
| H A D | InstCombineVectorOps.cpp | 298 BinaryOperator *BO; in visitExtractElementInst() local 301 Value *X = BO->getOperand(0), *Y = BO->getOperand(1); in visitExtractElementInst() 304 return BinaryOperator::CreateWithCopiedFlags(BO->getOpcode(), E0, E1, BO); in visitExtractElementInst() 1066 if (isa<OverflowingBinaryOperator>(BO)) { in buildNew() 1070 if (isa<PossiblyExactOperator>(BO)) { in buildNew() 1071 New->setIsExact(BO->isExact()); in buildNew() 1073 if (isa<FPMathOperator>(BO)) in buildNew() 1263 Value *BO0 = BO->getOperand(0), *BO1 = BO->getOperand(1); in getAlternateBinop() 1264 Type *Ty = BO->getType(); in getAlternateBinop() 1265 switch (BO->getOpcode()) { in getAlternateBinop() [all …]
|
| H A D | InstCombineSelect.cpp | 79 BinaryOperator *BO; in foldSelectBinOpIdentity() local 85 Type *Ty = BO->getType(); in foldSelectBinOpIdentity() 96 if (!BO->isCommutative() && !match(BO, m_BinOp(m_Value(Y), m_Specific(X)))) in foldSelectBinOpIdentity() 98 if (!match(BO, m_c_BinOp(m_Value(Y), m_Specific(X)))) in foldSelectBinOpIdentity() 103 if (isa<FPMathOperator>(BO)) in foldSelectBinOpIdentity() 387 if (auto *BO = dyn_cast<BinaryOperator>(TI)) { in foldSelectOpOp() local 440 BO->copyIRFlags(TVI); in foldSelectIntoOp() 441 return BO; in foldSelectIntoOp() 471 BO->copyIRFlags(FVI); in foldSelectIntoOp() 472 return BO; in foldSelectIntoOp() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | DirectIvarAssignment.cpp | 77 void VisitBinaryOperator(const BinaryOperator *BO); 165 const BinaryOperator *BO) { in VisitBinaryOperator() argument 166 if (!BO->isAssignmentOp()) in VisitBinaryOperator() 170 dyn_cast<ObjCIvarRefExpr>(BO->getLHS()->IgnoreParenCasts()); in VisitBinaryOperator()
|
| H A D | IvarInvalidationChecker.cpp | 162 void VisitBinaryOperator(const BinaryOperator *BO); 669 const BinaryOperator *BO) { in VisitBinaryOperator() argument 670 VisitStmt(BO); in VisitBinaryOperator() 674 BinaryOperatorKind Opcode = BO->getOpcode(); in VisitBinaryOperator() 680 if (isZero(BO->getRHS())) { in VisitBinaryOperator() 681 check(BO->getLHS()); in VisitBinaryOperator() 685 if (Opcode != BO_Assign && isZero(BO->getLHS())) { in VisitBinaryOperator() 686 check(BO->getRHS()); in VisitBinaryOperator()
|
| H A D | DeadStoresChecker.cpp | 105 const BinaryOperator *BO = in LookThroughTransitiveAssignmentsAndCommaOperators() local 107 if (!BO) in LookThroughTransitiveAssignmentsAndCommaOperators() 109 if (BO->getOpcode() == BO_Assign) { in LookThroughTransitiveAssignmentsAndCommaOperators() 110 Ex = BO->getRHS(); in LookThroughTransitiveAssignmentsAndCommaOperators() 113 if (BO->getOpcode() == BO_Comma) { in LookThroughTransitiveAssignmentsAndCommaOperators() 114 Ex = BO->getRHS(); in LookThroughTransitiveAssignmentsAndCommaOperators()
|
| /freebsd-12.1/sys/powerpc/powerpc/ |
| H A D | db_disasm.c | 639 u_int BO, BI; in disasm_fields() local 640 BO = extract_field(instr, 31 - 10, 5); in disasm_fields() 643 if (BO & 4) { in disasm_fields() 645 if (BO & 16) { in disasm_fields() 659 if (BO & 2) in disasm_fields() 663 if ((BO & 24) == 0) in disasm_fields() 665 else if ((BO & 24) == 8) in disasm_fields() 674 if ((BO & 20) != 20 && (func & Op_BO) == 0) in disasm_fields() 781 u_int BO; in disasm_fields() local 782 BO = extract_field(instr, 31 - 10, 5); in disasm_fields() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/AST/ |
| H A D | Expr.cpp | 44 if (BO->getOpcode() == BO_Comma) { in getBestDynamicClassTypeExpr() 45 E = BO->getRHS(); in getBestDynamicClassTypeExpr() 112 E = BO->getLHS(); in skipRValueSubobjectAdjustments() 119 E = BO->getRHS(); in skipRValueSubobjectAdjustments() 159 switch (BO->getOpcode()) { in isKnownToHaveBooleanValue() 1352 if (BO->isPtrMemOp()) in getReferencedDeclOfCallee() 2221 switch (BO->getOpcode()) { in isUnusedResultAWarning() 2242 if (BO->isAssignmentOp()) in isUnusedResultAWarning() 2245 Loc = BO->getOperatorLoc(); in isUnusedResultAWarning() 2832 if (BO->isPtrMemOp()) in isTemporaryObject() [all …]
|