/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | PointerArithChecker.cpp | 65 void checkPreStmt(const BinaryOperator *BOp, CheckerContext &C) const; 311 void PointerArithChecker::checkPreStmt(const BinaryOperator *BOp, in checkPreStmt() argument 313 BinaryOperatorKind OpKind = BOp->getOpcode(); in checkPreStmt() 314 if (!BOp->isAdditiveOp() && OpKind != BO_AddAssign && OpKind != BO_SubAssign) in checkPreStmt() 317 const Expr *Lhs = BOp->getLHS(); in checkPreStmt() 318 const Expr *Rhs = BOp->getRHS(); in checkPreStmt() 325 reportPointerArithMisuse(Lhs, C, !BOp->isAdditiveOp()); in checkPreStmt()
|
H A D | MallocOverflowSecurityChecker.cpp | 192 if (const BinaryOperator *BOp = dyn_cast<BinaryOperator>(rhse)) { in CheckAssignmentExpr() local 193 if (BOp->getOpcode() == BO_Div) { in CheckAssignmentExpr() 194 const Expr *denom = BOp->getRHS()->IgnoreParenImpCasts(); in CheckAssignmentExpr() 200 const Expr *numerator = BOp->getLHS()->IgnoreParenImpCasts(); in CheckAssignmentExpr()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | PHITransAddr.cpp | 252 if (BinaryOperator *BOp = dyn_cast<BinaryOperator>(LHS)) in translateSubExpr() local 253 if (BOp->getOpcode() == Instruction::Add) in translateSubExpr() 254 if (ConstantInt *CI = dyn_cast<ConstantInt>(BOp->getOperand(1))) { in translateSubExpr() 255 LHS = BOp->getOperand(0); in translateSubExpr() 260 if (is_contained(InstInputs, BOp)) { in translateSubExpr() 261 RemoveInstInputs(BOp, InstInputs); in translateSubExpr()
|
H A D | IVDescriptors.cpp | 1301 BinaryOperator *BOp = dyn_cast<BinaryOperator>(BEValue); in isFPInductionPHI() local 1302 if (!BOp) in isFPInductionPHI() 1306 if (BOp->getOpcode() == Instruction::FAdd) { in isFPInductionPHI() 1307 if (BOp->getOperand(0) == Phi) in isFPInductionPHI() 1308 Addend = BOp->getOperand(1); in isFPInductionPHI() 1309 else if (BOp->getOperand(1) == Phi) in isFPInductionPHI() 1310 Addend = BOp->getOperand(0); in isFPInductionPHI() 1311 } else if (BOp->getOpcode() == Instruction::FSub) in isFPInductionPHI() 1312 if (BOp->getOperand(0) == Phi) in isFPInductionPHI() 1313 Addend = BOp->getOperand(1); in isFPInductionPHI() [all …]
|
H A D | BasicAliasAnalysis.cpp | 375 if (const BinaryOperator *BOp = dyn_cast<BinaryOperator>(Val.V)) { in GetLinearExpression() local 376 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(BOp->getOperand(1))) { in GetLinearExpression() 381 if (isa<OverflowingBinaryOperator>(BOp)) { in GetLinearExpression() 382 NUW &= BOp->hasNoUnsignedWrap(); in GetLinearExpression() 383 NSW &= BOp->hasNoSignedWrap(); in GetLinearExpression() 394 switch (BOp->getOpcode()) { in GetLinearExpression() 401 if (!cast<PossiblyDisjointInst>(BOp)->isDisjoint()) in GetLinearExpression() 406 E = GetLinearExpression(Val.withValue(BOp->getOperand(0)), DL, in GetLinearExpression() 413 E = GetLinearExpression(Val.withValue(BOp->getOperand(0)), DL, in GetLinearExpression() 420 E = GetLinearExpression(Val.withValue(BOp->getOperand(0)), DL, in GetLinearExpression() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | SILoadStoreOptimizer.cpp | 846 for (const auto &BOp : B.operands()) { in canSwapInstructions() local 847 if (!BOp.isReg()) in canSwapInstructions() 849 if ((BOp.isDef() || BOp.readsReg()) && ARegDefs.contains(BOp.getReg())) in canSwapInstructions() 851 if (BOp.isDef() && ARegUses.contains(BOp.getReg())) in canSwapInstructions()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | Reassociate.cpp | 1673 BinaryOperator *BOp = in OptimizeAdd() local 1675 if (!BOp) in OptimizeAdd() 1680 FindSingleUseMultiplyFactors(BOp, Factors); in OptimizeAdd() 1744 BinaryOperator *BOp = in OptimizeAdd() local 1746 if (!BOp) in OptimizeAdd()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | IRTranslator.cpp | 389 if (const CmpInst *BOp = dyn_cast<CmpInst>(Cond)) { in emitBranchForMergedCondition() local 398 SwitchCG::CaseBlock CB(Condition, false, BOp->getOperand(0), in emitBranchForMergedCondition() 399 BOp->getOperand(1), nullptr, TBB, FBB, CurBB, in emitBranchForMergedCondition() 437 const Instruction *BOp = dyn_cast<Instruction>(Cond); in findMergedConditions() local 445 if (BOp) { in findMergedConditions() 446 BOpc = match(BOp, m_LogicalAnd(m_Value(BOpOp0), m_Value(BOpOp1))) in findMergedConditions() 448 : (match(BOp, m_LogicalOr(m_Value(BOpOp0), m_Value(BOpOp1))) in findMergedConditions() 461 bool BOpIsInOrAndTree = BOpc && BOpc == Opc && BOp->hasOneUse(); in findMergedConditions() 462 if (!BOpIsInOrAndTree || BOp->getParent() != CurBB->getBasicBlock() || in findMergedConditions()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAGBuilder.cpp | 2400 if (const CmpInst *BOp = dyn_cast<CmpInst>(Cond)) { in EmitBranchForMergedCondition() local 2405 (isExportableFromCurrentBlock(BOp->getOperand(0), BB) && in EmitBranchForMergedCondition() 2406 isExportableFromCurrentBlock(BOp->getOperand(1), BB))) { in EmitBranchForMergedCondition() 2421 CaseBlock CB(Condition, BOp->getOperand(0), BOp->getOperand(1), nullptr, in EmitBranchForMergedCondition() 2454 const Instruction *BOp = dyn_cast<Instruction>(Cond); in FindMergedConditions() local 2462 if (BOp) { in FindMergedConditions() 2478 bool BOpIsInOrAndTree = BOpc && BOpc == Opc && BOp->hasOneUse(); in FindMergedConditions() 2638 const Instruction *BOp = dyn_cast<Instruction>(CondVal); in visitBr() local 2639 if (!DAG.getTargetLoweringInfo().isJumpExpensive() && BOp && in visitBr() 2644 if (match(BOp, m_LogicalAnd(m_Value(BOp0), m_Value(BOp1)))) in visitBr() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CodeGenFunction.cpp | 1653 const BinaryOperator *BOp = dyn_cast<BinaryOperator>(stripCond(C)); in isInstrumentedCondition() local 1654 return (!BOp || !BOp->isLogicalOp()); in isInstrumentedCondition()
|
H A D | CodeGenFunction.h | 1565 const BinaryOperator *BOp = dyn_cast<BinaryOperator>(E->IgnoreParens()); 1566 return (BOp && BOp->isLogicalOp());
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineAddSub.cpp | 1180 if (auto *BOp = dyn_cast<BinaryOperator>(NotMask)) { in canonicalizeLowbitMask() local 1182 BOp->setHasNoSignedWrap(); in canonicalizeLowbitMask() 1183 BOp->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in canonicalizeLowbitMask()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/ |
H A D | M68kInstrData.td | 240 (MOV32bi MxType32.BOp :$dst, MxType32.IOp :$src)>;
|
H A D | M68kInstrInfo.td | 646 MxOperand BOp = bOp;
|
H A D | M68kInstrArithmetic.td | 296 def NAME#"32ab" : MxBiArOp_R_RM<MN, NODE, MxType32a, MxType32.BOp, MxType32.BPat,
|