Home
last modified time | relevance | path

Searched refs:BOp (Results 1 – 12 of 12) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DPointerArithChecker.cpp64 void checkPreStmt(const BinaryOperator *BOp, CheckerContext &C) const;
317 void PointerArithChecker::checkPreStmt(const BinaryOperator *BOp, in checkPreStmt() argument
319 BinaryOperatorKind OpKind = BOp->getOpcode(); in checkPreStmt()
320 if (!BOp->isAdditiveOp() && OpKind != BO_AddAssign && OpKind != BO_SubAssign) in checkPreStmt()
323 const Expr *Lhs = BOp->getLHS(); in checkPreStmt()
324 const Expr *Rhs = BOp->getRHS(); in checkPreStmt()
331 reportPointerArithMisuse(Lhs, C, !BOp->isAdditiveOp()); in checkPreStmt()
H A DMallocOverflowSecurityChecker.cpp190 if (const BinaryOperator *BOp = dyn_cast<BinaryOperator>(rhse)) { in CheckAssignmentExpr() local
191 if (BOp->getOpcode() == BO_Div) { in CheckAssignmentExpr()
192 const Expr *denom = BOp->getRHS()->IgnoreParenImpCasts(); in CheckAssignmentExpr()
198 const Expr *numerator = BOp->getLHS()->IgnoreParenImpCasts(); in CheckAssignmentExpr()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DIVDescriptors.cpp939 const SCEV *Step, BinaryOperator *BOp, in InductionDescriptor() argument
941 : StartValue(Start), IK(K), Step(Step), InductionBinOp(BOp) { in InductionDescriptor()
1007 BinaryOperator *BOp = dyn_cast<BinaryOperator>(BEValue); in isFPInductionPHI() local
1008 if (!BOp) in isFPInductionPHI()
1012 if (BOp->getOpcode() == Instruction::FAdd) { in isFPInductionPHI()
1013 if (BOp->getOperand(0) == Phi) in isFPInductionPHI()
1014 Addend = BOp->getOperand(1); in isFPInductionPHI()
1015 else if (BOp->getOperand(1) == Phi) in isFPInductionPHI()
1016 Addend = BOp->getOperand(0); in isFPInductionPHI()
1017 } else if (BOp->getOpcode() == Instruction::FSub) in isFPInductionPHI()
[all …]
H A DPHITransAddr.cpp264 if (BinaryOperator *BOp = dyn_cast<BinaryOperator>(LHS)) in PHITranslateSubExpr() local
265 if (BOp->getOpcode() == Instruction::Add) in PHITranslateSubExpr()
266 if (ConstantInt *CI = dyn_cast<ConstantInt>(BOp->getOperand(1))) { in PHITranslateSubExpr()
267 LHS = BOp->getOperand(0); in PHITranslateSubExpr()
272 if (is_contained(InstInputs, BOp)) { in PHITranslateSubExpr()
273 RemoveInstInputs(BOp, InstInputs); in PHITranslateSubExpr()
H A DBasicAliasAnalysis.cpp312 if (const BinaryOperator *BOp = dyn_cast<BinaryOperator>(Val.V)) { in GetLinearExpression() local
313 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(BOp->getOperand(1))) { in GetLinearExpression()
318 if (isa<OverflowingBinaryOperator>(BOp)) { in GetLinearExpression()
319 NUW &= BOp->hasNoUnsignedWrap(); in GetLinearExpression()
320 NSW &= BOp->hasNoSignedWrap(); in GetLinearExpression()
325 switch (BOp->getOpcode()) { in GetLinearExpression()
333 if (!MaskedValueIsZero(BOp->getOperand(0), RHSC->getValue(), DL, 0, AC, in GetLinearExpression()
334 BOp, DT)) in GetLinearExpression()
340 Val.withValue(BOp->getOperand(0)), DL, Depth + 1, AC, DT); in GetLinearExpression()
346 Val.withValue(BOp->getOperand(0)), DL, Depth + 1, AC, DT); in GetLinearExpression()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/M68k/
H A DM68kInstrData.td120 def NAME#REG.BOp.Letter#REG.Postfix : MxMove_RM<REG, REG.BOp, REG.BPat,
174 def NAME#TYPE.BOp.Letter#TYPE.Postfix
175 : MxMove_MM<TYPE.Prefix, TYPE.Load, DSTOpd, DSTPat, TYPE.BOp, TYPE.BPat,
209 def MOV8bd : MxMove_MR<MxType8.BOp, MxType8.BPat, MxType8d,
270 !cast<MxType>("MxType"#S).BOp,
314 !cast<MxType>("MxType"#S).BOp,
338 (MOV32bi MxType32.BOp :$dst, MxType32.IOp :$src)>;
375 defm MOV8b : MMxMove_MM<MxType8, MxType8.BOp, MxType8.BPat,
377 defm MOV16b : MMxMove_MM<MxType16, MxType16.BOp, MxType16.BPat,
379 defm MOV32b : MMxMove_MM<MxType32, MxType32.BOp, MxType32.BPat,
H A DM68kInstrInfo.td597 MxOperand BOp = bOp;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp370 if (const CmpInst *BOp = dyn_cast<CmpInst>(Cond)) { in emitBranchForMergedCondition() local
379 SwitchCG::CaseBlock CB(Condition, false, BOp->getOperand(0), in emitBranchForMergedCondition()
380 BOp->getOperand(1), nullptr, TBB, FBB, CurBB, in emitBranchForMergedCondition()
418 const Instruction *BOp = dyn_cast<Instruction>(Cond); in findMergedConditions() local
426 if (BOp) { in findMergedConditions()
427 BOpc = match(BOp, m_LogicalAnd(m_Value(BOpOp0), m_Value(BOpOp1))) in findMergedConditions()
429 : (match(BOp, m_LogicalOr(m_Value(BOpOp0), m_Value(BOpOp1))) in findMergedConditions()
442 bool BOpIsInOrAndTree = BOpc && BOpc == Opc && BOp->hasOneUse(); in findMergedConditions()
443 if (!BOpIsInOrAndTree || BOp->getParent() != CurBB->getBasicBlock() || in findMergedConditions()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp1631 BinaryOperator *BOp = in OptimizeAdd() local
1633 if (!BOp) in OptimizeAdd()
1638 FindSingleUseMultiplyFactors(BOp, Factors); in OptimizeAdd()
1703 BinaryOperator *BOp = in OptimizeAdd() local
1705 if (!BOp) in OptimizeAdd()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2145 if (const CmpInst *BOp = dyn_cast<CmpInst>(Cond)) { in EmitBranchForMergedCondition() local
2150 (isExportableFromCurrentBlock(BOp->getOperand(0), BB) && in EmitBranchForMergedCondition()
2151 isExportableFromCurrentBlock(BOp->getOperand(1), BB))) { in EmitBranchForMergedCondition()
2166 CaseBlock CB(Condition, BOp->getOperand(0), BOp->getOperand(1), nullptr, in EmitBranchForMergedCondition()
2199 const Instruction *BOp = dyn_cast<Instruction>(Cond); in FindMergedConditions() local
2207 if (BOp) { in FindMergedConditions()
2208 BOpc = match(BOp, m_LogicalAnd(m_Value(BOpOp0), m_Value(BOpOp1))) in FindMergedConditions()
2210 : (match(BOp, m_LogicalOr(m_Value(BOpOp0), m_Value(BOpOp1))) in FindMergedConditions()
2223 bool BOpIsInOrAndTree = BOpc && BOpc == Opc && BOp->hasOneUse(); in FindMergedConditions()
2224 if (!BOpIsInOrAndTree || BOp->getParent() != CurBB->getBasicBlock() || in FindMergedConditions()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp1118 if (auto *BOp = dyn_cast<BinaryOperator>(NotMask)) { in canonicalizeLowbitMask() local
1120 BOp->setHasNoSignedWrap(); in canonicalizeLowbitMask()
1121 BOp->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in canonicalizeLowbitMask()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCodeGenFunction.cpp1521 const BinaryOperator *BOp = dyn_cast<BinaryOperator>(C->IgnoreParens()); in isInstrumentedCondition() local
1522 return (!BOp || !BOp->isLogicalOp()); in isInstrumentedCondition()