Home
last modified time | relevance | path

Searched refs:SDiv (Results 1 – 25 of 71) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandLargeDivRem.cpp54 return Opcode == Instruction::SDiv || Opcode == Instruction::SRem; in isSigned()
95 case Instruction::SDiv: in runImpl()
135 I->getOpcode() == Instruction::SDiv) { in runImpl()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DDivRemPairs.cpp66 M.Key.SignedOp = Div->getOpcode() == Instruction::SDiv; in matchExpandedRem()
87 DivInst->getOpcode() == Instruction::SDiv) && in DivRemPairWorklistEntry()
98 bool isSigned() const { return DivInst->getOpcode() == Instruction::SDiv; } in isSigned()
131 if (I.getOpcode() == Instruction::SDiv) in getWorklist()
H A DCorrelatedValuePropagation.cpp748 assert(Instr->getOpcode() == Instruction::SDiv || in narrowSDivOrSRem()
784 if (BinOp->getOpcode() == Instruction::SDiv) in narrowSDivOrSRem()
987 assert(SDI->getOpcode() == Instruction::SDiv); in processSDiv()
1043 assert(Instr->getOpcode() == Instruction::SDiv || in processSDivOrSRem()
1050 if (Instr->getOpcode() == Instruction::SDiv) in processSDivOrSRem()
1234 case Instruction::SDiv: in runImpl()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp408 assert((Div->getOpcode() == Instruction::SDiv || in expandDivision()
417 if (Div->getOpcode() == Instruction::SDiv) { in expandDivision()
553 assert((Div->getOpcode() == Instruction::SDiv || in expandDivisionUpTo32Bits()
577 if (Div->getOpcode() == Instruction::SDiv) { in expandDivisionUpTo32Bits()
601 assert((Div->getOpcode() == Instruction::SDiv || in expandDivisionUpTo64Bits()
623 if (Div->getOpcode() == Instruction::SDiv) { in expandDivisionUpTo64Bits()
H A DSimplifyIndVar.cpp105 bool eliminateSDiv(BinaryOperator *SDiv);
298 bool SimplifyIndvar::eliminateSDiv(BinaryOperator *SDiv) { in eliminateSDiv() argument
300 auto *N = SE->getSCEV(SDiv->getOperand(0)); in eliminateSDiv()
301 auto *D = SE->getSCEV(SDiv->getOperand(1)); in eliminateSDiv()
304 const Loop *L = LI->getLoopFor(SDiv->getParent()); in eliminateSDiv()
311 BinaryOperator::UDiv, SDiv->getOperand(0), SDiv->getOperand(1), in eliminateSDiv()
312 SDiv->getName() + ".udiv", SDiv->getIterator()); in eliminateSDiv()
313 UDiv->setIsExact(SDiv->isExact()); in eliminateSDiv()
314 SDiv->replaceAllUsesWith(UDiv); in eliminateSDiv()
315 UDiv->setDebugLoc(SDiv->getDebugLoc()); in eliminateSDiv()
[all …]
H A DBypassSlowDivision.cpp91 return SlowDivOrRem->getOpcode() == Instruction::SDiv || in isSignedOp()
96 return SlowDivOrRem->getOpcode() == Instruction::SDiv || in isDivisionOp()
114 case Instruction::SDiv: in FastDivInsertionTask()
H A DSCCPSolver.cpp208 case Instruction::SDiv: in replaceSignedInst()
215 auto NewOpcode = Inst.getOpcode() == Instruction::SDiv ? Instruction::UDiv in replaceSignedInst()
218 if (Inst.getOpcode() == Instruction::SDiv) in replaceSignedInst()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanAnalysis.cpp96 case Instruction::SDiv: in inferScalarTypeForRecipe()
162 case Instruction::SDiv: in inferScalarTypeForRecipe()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp395 I.getOpcode() == Instruction::SDiv || I.getOpcode() == Instruction::SRem; in isSigned()
469 if (I.getOpcode() == Instruction::SDiv || in promoteUniformOpToI32()
1377 Opc == Instruction::SRem || Opc == Instruction::SDiv); in expandDivRem32()
1386 bool IsDiv = Opc == Instruction::UDiv || Opc == Instruction::SDiv; in expandDivRem32()
1387 bool IsSigned = Opc == Instruction::SRem || Opc == Instruction::SDiv; in expandDivRem32()
1505 bool IsDiv = Opc == Instruction::SDiv || Opc == Instruction::UDiv; in shrinkDivRem64()
1506 bool IsSigned = Opc == Instruction::SDiv || Opc == Instruction::SRem; in shrinkDivRem64()
1531 if (Opc == Instruction::UDiv || Opc == Instruction::SDiv) { in expandDivRem64()
1564 Opc == Instruction::SRem || Opc == Instruction::SDiv) && in visitBinaryOperator()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp665 case Instruction::SDiv: in ConstantFoldBinaryInstruction()
740 case Instruction::SDiv: in ConstantFoldBinaryInstruction()
823 case Instruction::SDiv: in ConstantFoldBinaryInstruction()
858 case Instruction::SDiv: in ConstantFoldBinaryInstruction()
967 case Instruction::SDiv: in ConstantFoldBinaryInstruction()
H A DOperator.cpp36 case Instruction::SDiv: in hasPoisonGeneratingFlags()
H A DInstruction.cpp421 case Instruction::SDiv: in dropPoisonGeneratingFlags()
727 case SDiv: return "sdiv"; in getOpcodeName()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp207 case Instruction::SDiv: in getIntImmCostInst()
453 Opcode == Instruction::SDiv || Opcode == Instruction::SRem; in getArithmeticInstrCost()
1095 UserI->getOpcode() == Instruction::SDiv || in isFoldableLoad()
1120 case Instruction::SDiv:// SE: 32->64 in isFoldableLoad()
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DOperations.cpp22 Ops.push_back(binOpDescriptor(1, Instruction::SDiv)); in describeFuzzerIntOps()
125 case Instruction::SDiv: in binOpDescriptor()
H A DIRMutator.cpp256 case Instruction::SDiv: in mutate()
298 case Instruction::SDiv: in mutate()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPoisonChecking.cpp157 case Instruction::SDiv: { in generateCreationChecksForBinOp()
/freebsd/contrib/llvm-project/lldb/source/Expression/
H A DIRInterpreter.cpp623 case Instruction::SDiv: in CanInterpret()
771 case Instruction::SDiv: in Interpret()
834 case Instruction::SDiv: in Interpret()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstruction.def154 HANDLE_BINARY_INST(20, SDiv , BinaryOperator)
H A DOperator.h176 return OpC == Instruction::SDiv ||
H A DInstruction.h304 return Opcode == UDiv || Opcode == SDiv || Opcode == URem || Opcode == SRem;
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h311 case Instruction::SDiv: // 0 / X = 0 in getSafeVectorConstantForBinop()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp400 Div->getOpcode() != Instruction::SDiv)) { in visitMul()
408 Div->getOpcode() == Instruction::SDiv)) { in visitMul()
1082 assert((I.getOpcode() == Instruction::SDiv || in foldIDivShl()
1086 bool IsSigned = I.getOpcode() == Instruction::SDiv; in foldIDivShl()
1170 bool IsSigned = I.getOpcode() == Instruction::SDiv; in commonIDivTransforms()
H A DInstCombineNegator.cpp277 case Instruction::SDiv: in visitImpl()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h568 case Instruction::SDiv:
1245 case Instruction::SDiv: in getInstructionCost()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DObjCARCInstKind.cpp258 case Instruction::SDiv: in GetARCInstKind()

123