Home
last modified time | relevance | path

Searched refs:Mul (Results 1 – 25 of 151) sorted by relevance

1234567

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86PartialReduction.cpp78 auto *Mul = dyn_cast<BinaryOperator>(Op); in tryMAddReplacement() local
79 if (!Mul || Mul->getOpcode() != Instruction::Mul) in tryMAddReplacement()
82 Value *LHS = Mul->getOperand(0); in tryMAddReplacement()
83 Value *RHS = Mul->getOperand(1); in tryMAddReplacement()
104 if (Cast->getParent() == Mul->getParent() && in tryMAddReplacement()
117 ComputeNumSignBits(Op, *DL, 0, nullptr, Mul) > 16) in tryMAddReplacement()
123 if (BO->getParent() == Mul->getParent() && in tryMAddReplacement()
126 ComputeNumSignBits(Op, *DL, 0, nullptr, Mul) > 16) in tryMAddReplacement()
137 IRBuilder<> Builder(Mul); in tryMAddReplacement()
153 Value *NewMul = Builder.CreateMul(Mul->getOperand(0), Mul->getOperand(1)); in tryMAddReplacement()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/
H A DARMParallelDSP.cpp106 if (I->getOpcode() == Instruction::Mul) in InsertMuls()
109 if (I->getOpcode() == Instruction::Mul) in InsertMuls()
124 if (auto *Mul = GetMulOperand(Add->getOperand(0))) in InsertMuls() local
125 InsertMul(Mul); in InsertMuls()
126 if (auto *Mul = GetMulOperand(Add->getOperand(1))) in InsertMuls() local
127 InsertMul(Mul); in InsertMuls()
189 for (auto &Mul : Muls) in dump()
190 LLVM_DEBUG(dbgs() << *Mul->Root << "\n" in dump()
191 << " " << *Mul->LHS << "\n" in dump()
192 << " " << *Mul->RHS << "\n"); in dump()
[all …]
H A DMVEGatherScatterLowering.cpp309 I->getOpcode() == Instruction::Mul) { in getIfConst()
316 if (I->getOpcode() == Instruction::Mul) in getIfConst()
842 Instruction::Mul, Phi->getIncomingValue(LoopIncrement == 1 ? 0 : 1), in pushOutMul()
846 BinaryOperator::Create(Instruction::Mul, IncrementPerRound, in pushOutMul()
876 if ((OpCode == Instruction::Add || OpCode == Instruction::Mul) && in hasAllGatScatUsers()
896 Offs->getOpcode() != Instruction::Mul) in optimiseOffsets()
1013 case Instruction::Mul: in optimiseOffsets()
H A DMVELaneInterleavingPass.cpp145 cast<Instruction>(*E->user_begin())->getOpcode() != Instruction::Mul) { in isProfitableToInterleave()
229 case Instruction::Mul: in tryInterleave()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DDivRemPairs.cpp270 Instruction *Mul = BinaryOperator::CreateMul(DivInst, Y); in optimizeDivRem() local
271 Instruction *Sub = BinaryOperator::CreateSub(X, Mul); in optimizeDivRem()
305 Mul->insertAfter(RemInst); in optimizeDivRem()
306 Sub->insertAfter(Mul); in optimizeDivRem()
328 Mul->setOperand(1, FrY); in optimizeDivRem()
H A DReassociate.cpp342 assert((Opcode == Instruction::Mul || Opcode == Instruction::FMul) && in IncorporateWeight()
584 if ((Opcode == Instruction::Mul && match(Tmp, m_Neg(m_Value()))) || in LinearizeExprTree()
983 for (auto Op : {Instruction::Add, Instruction::Sub, Instruction::Mul, in shouldConvertOrWithNoCommonBitsToAdd()
1077 BinaryOperator *Mul = in ConvertShiftToMul() local
1080 Mul->takeName(Shl); in ConvertShiftToMul()
1083 Shl->replaceAllUsesWith(Mul); in ConvertShiftToMul()
1084 Mul->setDebugLoc(Shl->getDebugLoc()); in ConvertShiftToMul()
1094 Mul->setHasNoSignedWrap(true); in ConvertShiftToMul()
1095 Mul->setHasNoUnsignedWrap(NUW); in ConvertShiftToMul()
1096 return Mul; in ConvertShiftToMul()
[all …]
H A DStraightLineStrengthReduce.cpp138 Mul, // (B + i) * S enumerator
328 if (C.CandidateKind == Candidate::Mul) { in isSimplestForm()
389 case Instruction::Mul: in allocateCandidatesAndFindBasis()
450 allocateCandidatesAndFindBasis(Candidate::Mul, SE->getSCEV(B), Idx, RHS, I); in allocateCandidatesAndFindBasisForMul()
456 allocateCandidatesAndFindBasis(Candidate::Mul, SE->getSCEV(B), Idx, RHS, I); in allocateCandidatesAndFindBasisForMul()
460 allocateCandidatesAndFindBasis(Candidate::Mul, SE->getSCEV(LHS), Zero, RHS, in allocateCandidatesAndFindBasisForMul()
654 case Candidate::Mul: { in rewriteCandidateWithBasis()
H A DNaryReassociate.cpp299 case Instruction::Mul: in tryReassociate()
511 case Instruction::Mul: in tryReassociatedBinaryOp()
526 case Instruction::Mul: in matchTernaryOp()
540 case Instruction::Mul: in getBinarySCEV()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp177 BinaryOperator *Mul = cast<BinaryOperator>(I.getOperand(0)); in visitMul() local
179 if (I.hasNoUnsignedWrap() && Mul->hasNoUnsignedWrap()) in visitMul()
181 if (I.hasNoSignedWrap() && Mul->hasNoSignedWrap() && in visitMul()
225 Value *Mul = Builder.CreateMul(C1, Op1); in visitMul() local
228 if (!match(Mul, m_Mul(m_Value(), m_Value()))) in visitMul()
229 return BinaryOperator::CreateAdd(Builder.CreateMul(X, Op1), Mul); in visitMul()
765 auto *Mul = BinaryOperator::Create(Instruction::Mul, X, in commonIDivTransforms() local
768 Mul->setHasNoUnsignedWrap(!IsSigned && OBO->hasNoUnsignedWrap()); in commonIDivTransforms()
769 Mul->setHasNoSignedWrap(OBO->hasNoSignedWrap()); in commonIDivTransforms()
770 return Mul; in commonIDivTransforms()
[all …]
H A DInstCombineCompares.cpp1950 BinaryOperator *Mul, in foldICmpMulConstant() argument
1953 if (!match(Mul->getOperand(1), m_APInt(MulC))) in foldICmpMulConstant()
1959 if (isSignTest(Pred, C) && Mul->hasNoSignedWrap()) { in foldICmpMulConstant()
1962 return new ICmpInst(Pred, Mul->getOperand(0), in foldICmpMulConstant()
1963 Constant::getNullValue(Mul->getType())); in foldICmpMulConstant()
1970 if (Mul->hasNoSignedWrap() && C.srem(*MulC).isNullValue()) { in foldICmpMulConstant()
1971 Constant *NewC = ConstantInt::get(Mul->getType(), C.sdiv(*MulC)); in foldICmpMulConstant()
1972 return new ICmpInst(Pred, Mul->getOperand(0), NewC); in foldICmpMulConstant()
1975 if (Mul->hasNoUnsignedWrap() && C.urem(*MulC).isNullValue()) { in foldICmpMulConstant()
1976 Constant *NewC = ConstantInt::get(Mul->getType(), C.udiv(*MulC)); in foldICmpMulConstant()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DIVDescriptors.cpp55 case RecurKind::Mul: in isIntegerRecurrenceKind()
77 case RecurKind::Mul: in isArithmeticRecurrenceKind()
605 case Instruction::Mul: in isRecurrenceInstr()
606 return InstDesc(Kind == RecurKind::Mul, I); in isRecurrenceInstr()
664 if (AddReductionVar(Phi, RecurKind::Mul, TheLoop, FMF, RedDes, DB, AC, DT)) { in isReductionPHI()
801 case RecurKind::Mul: in getRecurrenceIdentity()
843 case RecurKind::Mul: in getOpcode()
844 return Instruction::Mul; in getOpcode()
H A DScalarEvolution.cpp426 const SCEVMulExpr *Mul = dyn_cast<SCEVMulExpr>(this); in isNonConstantNegative() local
427 if (!Mul) return false; in isNonConstantNegative()
430 const SCEVConstant *SC = dyn_cast<SCEVConstant>(Mul->getOperand(0)); in isNonConstantNegative()
2196 const SCEVMulExpr *Mul = dyn_cast<SCEVMulExpr>(Ops[i]); in CollectAddOperandsWithScales() local
2197 if (Mul && isa<SCEVConstant>(Mul->getOperand(0))) { in CollectAddOperandsWithScales()
2199 Scale * cast<SCEVConstant>(Mul->getOperand(0))->getAPInt(); in CollectAddOperandsWithScales()
2200 if (Mul->getNumOperands() == 2 && isa<SCEVAddExpr>(Mul->getOperand(1))) { in CollectAddOperandsWithScales()
2202 const SCEVAddExpr *Add = cast<SCEVAddExpr>(Mul->getOperand(1)); in CollectAddOperandsWithScales()
2210 SmallVector<const SCEV *, 4> MulOps(drop_begin(Mul->operands())); in CollectAddOperandsWithScales()
2280 return Instruction::Mul; in StrengthenNoWrapFlags()
[all …]
H A DStackSafetyAnalysis.cpp162 APInt Mul = C->getValue(); in getStaticAllocaSizeRange() local
163 if (Mul.isNonPositive()) in getStaticAllocaSizeRange()
165 Mul = Mul.sextOrTrunc(PointerSize); in getStaticAllocaSizeRange()
166 APSize = APSize.smul_ov(Mul, Overflow); in getStaticAllocaSizeRange()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/AggressiveInstCombine/
H A DTruncInstCombine.cpp60 case Instruction::Mul: in getRelevantOperands()
126 case Instruction::Mul: in buildTruncExpressionDag()
356 case Instruction::Mul: in ReduceExpressionDag()
/netbsd-src/external/bsd/pcc/dist/pcc/arch/m16c/
H A DTODO1 * Mul/Div does not work.
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Mips/
H A DMips16ISelDAGToDAG.cpp48 SDNode *Mul = CurDAG->getMachineNode(Opc, DL, MVT::Glue, N->getOperand(0), in selectMULT() local
50 SDValue InFlag = SDValue(Mul, 0); in selectMULT()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DOperator.h103 I->getOpcode() == Instruction::Mul || in classof()
109 CE->getOpcode() == Instruction::Mul || in classof()
436 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Mul> {
H A DInstruction.h532 Opcode == Add || Opcode == Mul;
546 case Mul: case FMul:
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DVLASizeChecker.cpp117 SVal Mul = SVB.evalBinOpNN(State, BO_Mul, ArrSize, IndexLength, SizeTy); in checkVLA() local
118 if (auto MulNonLoc = Mul.getAs<NonLoc>()) in checkVLA()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DReplaceConstant.cpp35 case Instruction::Mul: in createReplacementInstr()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DVOP3PInstructions.td245 def Mul#Type#_Elt#Index : PatFrag<
272 def Mul#Type#Index#"_4bit" : PatFrag<
337 … (add_oneuse lhs, (!cast<PatFrag>("Mul"#Type#"_Elt"#y) i32:$src0, i32:$src1)))),
343 …!cast<dag>(!foldl((add_oneuse i32:$src2, (!cast<PatFrag>("Mul"#Type#"0_4bit") i32:$src0, i32:$src1…
345 … (NonACAdd_oneuse lhs, (!cast<PatFrag>("Mul"#Type#y#"_4bit") i32:$src0, i32:$src1)))),
353 …!cast<dag>(!foldl((add_oneuse i32:$src2, (!cast<PatFrag>("Mul"#Type#"0_4bit") i32:$src0, i32:$src1…
355 … (NonACAdd_oneuse lhs, (!cast<PatFrag>("Mul"#Type#y#"_4bit") i32:$src0, i32:$src1)))),
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp634 SDValue Mul; in TryExpandADDWithMul() local
637 Mul = N->getOperand(0); in TryExpandADDWithMul()
640 Mul = N->getOperand(1); in TryExpandADDWithMul()
648 Mul.getOperand(0), DAG.getConstant(0, dl, MVT::i32)); in TryExpandADDWithMul()
650 Mul.getOperand(1), DAG.getConstant(0, dl, MVT::i32)); in TryExpandADDWithMul()
656 unsigned LHSSB = DAG.ComputeNumSignBits(Mul.getOperand(0)); in TryExpandADDWithMul()
657 unsigned RHSSB = DAG.ComputeNumSignBits(Mul.getOperand(1)); in TryExpandADDWithMul()
658 if (DAG.MaskedValueIsZero(Mul.getOperand(0), HighMask) && in TryExpandADDWithMul()
659 DAG.MaskedValueIsZero(Mul.getOperand(1), HighMask)) { in TryExpandADDWithMul()
677 Mul.getOperand(0), DAG.getConstant(1, dl, MVT::i32)); in TryExpandADDWithMul()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp754 unsigned Mul = OrigSize * TargetSize; in getLCMSize() local
756 return Mul / GCDSize; in getLCMSize()
776 int Mul = OrigTy.getNumElements() * TargetTy.getNumElements(); in getLCMType() local
777 return LLT::vector(Mul / GCDElts, OrigTy.getElementType()); in getLCMType()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp59 case Instruction::Mul: in getIntImmCostInst()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/FuzzMutate/
H A DOperations.cpp21 Ops.push_back(binOpDescriptor(1, Instruction::Mul)); in describeFuzzerIntOps()
99 case Instruction::Mul: in binOpDescriptor()

1234567