Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp1027 constexpr unsigned MulOp = FP ? Instruction::FMul : Instruction::Mul; in matchesSquareSum() local
1033 AddOp, m_OneUse(m_BinOp(MulOp, m_Value(A), m_Deferred(A))), in matchesSquareSum()
1035 MulOp, in matchesSquareSum()
1049 Mul2Op, m_BinOp(MulOp, m_Value(A), m_Value(B)), M2Rhs)), in matchesSquareSum()
1050 m_OneUse(m_c_BinOp(MulOp, m_BinOp(Mul2Op, m_Value(A), M2Rhs), in matchesSquareSum()
1053 m_c_BinOp(AddOp, m_BinOp(MulOp, m_Deferred(A), m_Deferred(A)), in matchesSquareSum()
1054 m_BinOp(MulOp, m_Deferred(B), m_Deferred(B)))))); in matchesSquareSum()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp2763 Value *MulOp; in optimizeSqrt() local
2764 if (match(Op0, m_FMul(m_Value(MulOp), m_Deferred(MulOp))) && in optimizeSqrt()
2767 RepeatOp = MulOp; in optimizeSqrt()
2769 } else if (match(Op1, m_FMul(m_Value(MulOp), m_Deferred(MulOp))) && in optimizeSqrt()
2772 RepeatOp = MulOp; in optimizeSqrt()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanTransforms.cpp2601 Instruction::BinaryOps MulOp; in expandVPWidenIntOrFpInduction() local
2607 MulOp = Instruction::Mul; in expandVPWidenIntOrFpInduction()
2610 MulOp = Instruction::FMul; in expandVPWidenIntOrFpInduction()
2634 Init = Builder.createNaryOp(MulOp, {Init, SplatStep}, Flags); in expandVPWidenIntOrFpInduction()
2663 Inc = Builder.createNaryOp(MulOp, {Step, VF}, Flags); in expandVPWidenIntOrFpInduction()
H A DVPlanRecipes.cpp2181 Instruction::BinaryOps MulOp; in execute() local
2184 MulOp = Instruction::Mul; in execute()
2187 MulOp = Instruction::FMul; in execute()
2230 auto *Mul = Builder.CreateBinOp(MulOp, InitVec, SplatStep); in execute()
2249 auto *Mul = Builder.CreateBinOp(MulOp, StartIdx, Step); in execute()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMInstrNEON.td2865 ValueType Ty, SDPatternOperator MulOp, SDPatternOperator OpNode>
2870 (Ty (MulOp DPR:$Vn, DPR:$Vm)))))]>;
2874 ValueType Ty, SDPatternOperator MulOp, SDPatternOperator ShOp>
2882 (Ty (MulOp DPR:$Vn,
2887 ValueType Ty, SDPatternOperator MulOp, SDPatternOperator ShOp>
2895 (Ty (MulOp DPR:$Vn,
2901 SDPatternOperator MulOp, SDPatternOperator OpNode>
2906 (Ty (MulOp QPR:$Vn, QPR:$Vm)))))]>;
2909 SDPatternOperator MulOp, SDPatternOperator ShOp>
2917 (ResTy (MulOp QPR:$Vn,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolution.cpp2759 for (auto &MulOp : MulOpLists) { in getAddExpr() local
2760 if (MulOp.first == 1) { in getAddExpr()
2761 Ops.push_back(getAddExpr(MulOp.second, SCEV::FlagAnyWrap, Depth + 1)); in getAddExpr()
2762 } else if (MulOp.first != 0) { in getAddExpr()
2764 getConstant(MulOp.first), in getAddExpr()
2765 getAddExpr(MulOp.second, SCEV::FlagAnyWrap, Depth + 1), in getAddExpr()
2782 for (unsigned MulOp = 0, e = Mul->getNumOperands(); MulOp != e; ++MulOp) { in getAddExpr() local
2783 const SCEV *MulOpSCEV = Mul->getOperand(MulOp); in getAddExpr()
2789 const SCEV *InnerMul = Mul->getOperand(MulOp == 0); in getAddExpr()
2794 Mul->operands().take_front(MulOp)); in getAddExpr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp8229 auto FindReplicatedReg = [&](SDValue MulOp) { in combineSTORE() argument
8230 EVT MulVT = MulOp.getValueType(); in combineSTORE()
8231 if (MulOp->getOpcode() == ISD::MUL && in combineSTORE()
8234 SDValue LHS = MulOp->getOperand(0); in combineSTORE()
8242 if (auto *C = dyn_cast<ConstantSDNode>(MulOp->getOperand(1))) { in combineSTORE()
8926 SDValue MulOp = ShiftOperand.getOperand(0); in combineShiftToMulAddHigh() local
8928 if (MulOp.getOpcode() != ISD::MUL) { in combineShiftToMulAddHigh()
8931 std::swap(MulOp, AddOp); in combineShiftToMulAddHigh()
8935 SDValue LeftOp = MulOp.getOperand(0); in combineShiftToMulAddHigh()
8936 SDValue RightOp = MulOp.getOperand(1); in combineShiftToMulAddHigh()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp4329 static Value* buildFMulAdd(llvm::Instruction *MulOp, Value *Addend, in buildFMulAdd() argument
4332 Value *MulOp0 = MulOp->getOperand(0); in buildFMulAdd()
4333 Value *MulOp1 = MulOp->getOperand(1); in buildFMulAdd()
4341 assert(isa<llvm::ConstrainedFPIntrinsic>(MulOp) && in buildFMulAdd()
4353 MulOp->eraseFromParent(); in buildFMulAdd()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp19089 SDValue MulOp = N->getOperand(1); in combineToVWMACC() local
19108 if (!IsVWMulOpc(MulOp.getOpcode())) in combineToVWMACC()
19109 std::swap(Addend, MulOp); in combineToVWMACC()
19111 if (!IsVWMulOpc(MulOp.getOpcode())) in combineToVWMACC()
19114 SDValue MulPassthruOp = MulOp.getOperand(2); in combineToVWMACC()
19129 SDValue MulMask = MulOp.getOperand(3); in combineToVWMACC()
19130 SDValue MulVL = MulOp.getOperand(4); in combineToVWMACC()
19137 unsigned Opc = TSInfo.getMAccOpcode(MulOp.getOpcode()); in combineToVWMACC()
19141 SDValue Ops[] = {MulOp.getOperand(0), MulOp.getOperand(1), Addend, AddMask, in combineToVWMACC()
/freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/DirectToLLVM/
H A DLowerToLLVM.cpp1585 rewriter.replaceOpWithNewOp<mlir::LLVM::MulOp>(op, llvmTy, lhs, rhs, in matchAndRewrite()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeIntegerTypes.cpp4487 unsigned MulOp = Signed ? ISD::SMULO : ISD::UMULO; in ExpandIntRes_MULFIX() local
4488 Result = DAG.getNode(MulOp, dl, DAG.getVTList(VT, BoolVT), LHS, RHS); in ExpandIntRes_MULFIX()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64InstrInfo.cpp7579 MachineOperand &MulOp = Root.getOperand(IdxMulOp); in genIndexedMultiply() local
7585 .add(MulOp) in genIndexedMultiply()