Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DPHITransAddr.cpp256 if (BinaryOperator *BOp = dyn_cast<BinaryOperator>(LHS)) in translateSubExpr() local
257 if (BOp->getOpcode() == Instruction::Add) in translateSubExpr()
258 if (ConstantInt *CI = dyn_cast<ConstantInt>(BOp->getOperand(1))) { in translateSubExpr()
259 LHS = BOp->getOperand(0); in translateSubExpr()
264 if (is_contained(InstInputs, BOp)) { in translateSubExpr()
265 RemoveInstInputs(BOp, InstInputs); in translateSubExpr()
H A DIVDescriptors.cpp1345 const SCEV *Step, BinaryOperator *BOp, in InductionDescriptor() argument
1347 : StartValue(Start), IK(K), Step(Step), InductionBinOp(BOp) { in InductionDescriptor()
1408 BinaryOperator *BOp = dyn_cast<BinaryOperator>(BEValue); in isFPInductionPHI() local
1409 if (!BOp) in isFPInductionPHI()
1413 if (BOp->getOpcode() == Instruction::FAdd) { in isFPInductionPHI()
1414 if (BOp->getOperand(0) == Phi) in isFPInductionPHI()
1415 Addend = BOp->getOperand(1); in isFPInductionPHI()
1416 else if (BOp->getOperand(1) == Phi) in isFPInductionPHI()
1417 Addend = BOp->getOperand(0); in isFPInductionPHI()
1418 } else if (BOp->getOpcode() == Instruction::FSub) in isFPInductionPHI()
[all …]
H A DBasicAliasAnalysis.cpp427 if (const BinaryOperator *BOp = dyn_cast<BinaryOperator>(Val.V)) { in GetLinearExpression() local
428 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(BOp->getOperand(1))) { in GetLinearExpression()
433 if (isa<OverflowingBinaryOperator>(BOp)) { in GetLinearExpression()
434 NUW &= BOp->hasNoUnsignedWrap(); in GetLinearExpression()
435 NSW &= BOp->hasNoSignedWrap(); in GetLinearExpression()
446 switch (BOp->getOpcode()) { in GetLinearExpression()
453 if (!cast<PossiblyDisjointInst>(BOp)->isDisjoint()) in GetLinearExpression()
458 E = GetLinearExpression(Val.withValue(BOp->getOperand(0), false), DL, in GetLinearExpression()
466 E = GetLinearExpression(Val.withValue(BOp->getOperand(0), false), DL, in GetLinearExpression()
474 E = GetLinearExpression(Val.withValue(BOp->getOperand(0), false), DL, in GetLinearExpression()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonLoadStoreWidening.cpp294 for (const auto &BOp : B->operands()) { in canSwapInstructions() local
295 if (!BOp.isReg()) in canSwapInstructions()
297 if ((BOp.isDef() || BOp.readsReg()) && ARegDefs.contains(BOp.getReg())) in canSwapInstructions()
299 if (BOp.isDef() && ARegUses.contains(BOp.getReg())) in canSwapInstructions()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSILoadStoreOptimizer.cpp922 for (const auto &BOp : B.operands()) { in canSwapInstructions() local
923 if (!BOp.isReg()) in canSwapInstructions()
925 if ((BOp.isDef() || BOp.readsReg()) && ARegDefs.contains(BOp.getReg())) in canSwapInstructions()
927 if (BOp.isDef() && ARegUses.contains(BOp.getReg())) in canSwapInstructions()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp1589 BinaryOperator *BOp = in OptimizeAdd() local
1591 if (!BOp) in OptimizeAdd()
1596 FindSingleUseMultiplyFactors(BOp, Factors); in OptimizeAdd()
1660 BinaryOperator *BOp = in OptimizeAdd() local
1662 if (!BOp) in OptimizeAdd()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp403 if (const CmpInst *BOp = dyn_cast<CmpInst>(Cond)) { in emitBranchForMergedCondition() local
412 SwitchCG::CaseBlock CB(Condition, false, BOp->getOperand(0), in emitBranchForMergedCondition()
413 BOp->getOperand(1), nullptr, TBB, FBB, CurBB, in emitBranchForMergedCondition()
451 const Instruction *BOp = dyn_cast<Instruction>(Cond); in findMergedConditions() local
459 if (BOp) { in findMergedConditions()
460 BOpc = match(BOp, m_LogicalAnd(m_Value(BOpOp0), m_Value(BOpOp1))) in findMergedConditions()
462 : (match(BOp, m_LogicalOr(m_Value(BOpOp0), m_Value(BOpOp1))) in findMergedConditions()
475 bool BOpIsInOrAndTree = BOpc && BOpc == Opc && BOp->hasOneUse(); in findMergedConditions()
476 if (!BOpIsInOrAndTree || BOp->getParent() != CurBB->getBasicBlock() || in findMergedConditions()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2407 if (const CmpInst *BOp = dyn_cast<CmpInst>(Cond)) { in EmitBranchForMergedCondition() local
2412 (isExportableFromCurrentBlock(BOp->getOperand(0), BB) && in EmitBranchForMergedCondition()
2413 isExportableFromCurrentBlock(BOp->getOperand(1), BB))) { in EmitBranchForMergedCondition()
2428 CaseBlock CB(Condition, BOp->getOperand(0), BOp->getOperand(1), nullptr, in EmitBranchForMergedCondition()
2607 const Instruction *BOp = dyn_cast<Instruction>(Cond); in FindMergedConditions() local
2615 if (BOp) { in FindMergedConditions()
2616 BOpc = match(BOp, m_LogicalAnd(m_Value(BOpOp0), m_Value(BOpOp1))) in FindMergedConditions()
2618 : (match(BOp, m_LogicalOr(m_Value(BOpOp0), m_Value(BOpOp1))) in FindMergedConditions()
2631 bool BOpIsInOrAndTree = BOpc && BOpc == Opc && BOp->hasOneUse(); in FindMergedConditions()
2632 if (!BOpIsInOrAndTree || BOp->getParent() != CurBB->getBasicBlock() || in FindMergedConditions()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.cpp1806 const BinaryOperator *BOp = dyn_cast<BinaryOperator>(stripCond(C)); in isInstrumentedCondition() local
1807 return (!BOp || !BOp->isLogicalOp()); in isInstrumentedCondition()
H A DCodeGenFunction.h1676 const BinaryOperator *BOp = dyn_cast<BinaryOperator>(E->IgnoreParens());
1677 return (BOp && BOp->isLogicalOp());
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp1230 if (auto *BOp = dyn_cast<BinaryOperator>(NotMask)) { in canonicalizeLowbitMask() local
1232 BOp->setHasNoSignedWrap(); in canonicalizeLowbitMask()
1233 BOp->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in canonicalizeLowbitMask()
H A DInstCombineSelect.cpp1905 if (BinaryOperator *BOp = dyn_cast<BinaryOperator>(TrueVal)) { in foldSelectWithConstOpToBinOp() local
1906 Opcode = BOp->getOpcode(); in foldSelectWithConstOpToBinOp()
1915 if (!match(BOp, m_BinOp(m_Specific(X), m_Constant(C2)))) in foldSelectWithConstOpToBinOp()
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kInstrData.td241 (MOV32bi MxType32.BOp :$dst, MxType32.IOp :$src)>;
H A DM68kInstrInfo.td664 MxOperand BOp = bOp;
H A DM68kInstrArithmetic.td296 def NAME#"32ab" : MxBiArOp_R_RM<MN, NODE, MxType32a, MxType32.BOp, MxType32.BPat,