Searched refs:Div (Results 1 - 18 of 18) sorted by relevance

/freebsd-11.0-release/contrib/llvm/include/llvm/Transforms/Utils/
H A DIntegerDivision.h35 /// Generate code to divide two integers, replacing Div with the generated
41 /// @brief Replace Div with generated code.
42 bool expandDivision(BinaryOperator* Div);
58 /// Generate code to divide two integers, replacing Div with the generated
59 /// code. Uses ExpandDivision with a 32bit Div which makes it useful for
63 bool expandDivisionUpTo32Bits(BinaryOperator *Div);
65 /// Generate code to divide two integers, replacing Div with the generated
66 /// code. Uses ExpandDivision with a 64bit Div.
69 bool expandDivisionUpTo64Bits(BinaryOperator *Div);
/freebsd-11.0-release/contrib/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp383 assert(!Rem->getType()->isVectorTy() && "Div over vectors not supported");
386 "Div of bitwidth other than 32 or 64 not supported");
425 /// Generate code to divide two integers, replacing Div with the generated
431 /// @brief Replace Div with generated code.
432 bool llvm::expandDivision(BinaryOperator *Div) { argument
433 assert((Div->getOpcode() == Instruction::SDiv ||
434 Div->getOpcode() == Instruction::UDiv) &&
437 IRBuilder<> Builder(Div);
439 assert(!Div->getType()->isVectorTy() && "Div ove
579 expandDivisionUpTo32Bits(BinaryOperator *Div) argument
627 expandDivisionUpTo64Bits(BinaryOperator *Div) argument
[all...]
/freebsd-11.0-release/contrib/llvm/include/llvm/MC/
H A DMCExpr.h415 Div, ///< Signed division. enumerator in enum:llvm::MCBinaryExpr::Opcode
461 return create(Div, LHS, RHS, Ctx);
/freebsd-11.0-release/contrib/llvm/lib/IR/
H A DConstantFold.cpp1120 assert(!CI2->isNullValue() && "Div by zero handled above");
1123 assert(!CI2->isNullValue() && "Div by zero handled above");
1128 assert(!CI2->isNullValue() && "Div by zero handled above");
1131 assert(!CI2->isNullValue() && "Div by zero handled above");
2193 Constant *Div = ConstantExpr::getSDiv(CI, Factor); local
2197 Div->getType()->getIntegerBitWidth());
2205 Type::getIntNTy(Div->getContext(), CommonExtendedWidth));
2206 if (!Div->getType()->isIntegerTy(CommonExtendedWidth))
2207 Div = ConstantExpr::getSExt(
2208 Div, Typ
[all...]
H A DConstantRange.cpp562 APInt Div(getBitWidth(), 0);
563 APInt::udivrem(LowerDiv, MaxBitValue, Div, LowerDiv);
564 UpperDiv = UpperDiv - MaxBitValue * Div;
H A DAsmWriter.cpp1074 } else if (const PossiblyExactOperator *Div =
1076 if (Div->isExact())
/freebsd-11.0-release/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp1648 SDValue Div = DAG.getNode(ISD::ADD, DL, VT, iq, jq); local
1651 SDValue Rem = DAG.getNode(ISD::MUL, DL, VT, Div, RHS);
1655 Div,
1826 // Div = (Tmp1 == 0 ? Quotient : Quotient_A_One)
1827 SDValue Div = DAG.getSelectCC(DL, Tmp1, DAG.getConstant(0, DL, VT), local
1830 // Div = (Remainder_GE_Zero == 0 ? Quotient_S_One : Div)
1831 Div = DAG.getSelectCC(DL, Remainder_GE_Zero, DAG.getConstant(0, DL, VT),
1832 Quotient_S_One, Div, ISD::SETEQ);
1850 Div,
1900 SDValue Div = DAG.getNode(ISD::UDIVREM, DL, DAG.getVTList(VT, VT), LHS, RHS); local
1925 SDValue Div = DAG.getNode(ISD::FDIV, SL, VT, X, Y); local
[all...]
/freebsd-11.0-release/contrib/llvm/tools/clang/include/clang/AST/
H A DStmtVisitor.h124 BINOP_FALLBACK(Mul) BINOP_FALLBACK(Div) BINOP_FALLBACK(Rem)
H A DRecursiveASTVisitor.h52 OPERATOR(PtrMemD) OPERATOR(PtrMemI) OPERATOR(Mul) OPERATOR(Div) \
60 OPERATOR(Mul) OPERATOR(Div) OPERATOR(Rem) OPERATOR(Add) OPERATOR(Sub) \
/freebsd-11.0-release/contrib/llvm/lib/Target/AMDGPU/AsmParser/
H A DAMDGPUAsmParser.cpp1781 static bool ConvertOmodDiv(int64_t &Div) { argument
1782 if (Div == 1) {
1783 Div = 0;
1787 if (Div == 2) {
1788 Div = 3;
/freebsd-11.0-release/contrib/llvm/lib/MC/
H A DMCExpr.cpp98 case MCBinaryExpr::Div: OS << '/'; break;
745 case MCBinaryExpr::Div:
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/Sema/
H A DSemaOpenMP.cpp4037 ExprResult Div;
4042 // Build: Iter = (IV / Div) % IS.NumIters
4043 // where Div is product of previous iterations' IS.NumIters.
4045 if (Div.isUsable()) {
4047 SemaRef.BuildBinOp(CurScope, UpdLoc, BO_Div, IV.get(), Div.get());
4090 // Build Div for the next iteration: Div <- Div * IS.NumIters
4092 if (Div.isUnset())
4093 Div
[all...]
/freebsd-11.0-release/contrib/llvm/lib/Analysis/
H A DScalarEvolution.cpp2703 const SCEV *Div = getUDivExpr(Op, RHSC);
2704 if (!isa<SCEVUDivExpr>(Div) && getMulExpr(Div, RHSC) == Op) {
2707 Operands[i] = Div;
6353 if (const SCEVUDivExpr *Div = dyn_cast<SCEVUDivExpr>(V)) {
6354 const SCEV *LHS = getSCEVAtScope(Div->getLHS(), L);
6355 const SCEV *RHS = getSCEVAtScope(Div->getRHS(), L);
6356 if (LHS == Div->getLHS() && RHS == Div->getRHS())
6357 return Div; // mus
[all...]
H A DScalarEvolutionExpander.cpp254 const SCEV *Div = SE.getConstant(CI); local
255 S = Div;
H A DInstructionSimplify.cpp1042 if (BinaryOperator *Div = dyn_cast<BinaryOperator>(X))
1043 if (Div->getOpcode() == Opcode && Div->getOperand(1) == Y)
/freebsd-11.0-release/contrib/llvm/lib/MC/MCParser/
H A DAsmParser.cpp1177 Kind = MCBinaryExpr::Div;
1247 Kind = MCBinaryExpr::Div;
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGExprScalar.cpp514 HANDLEBINOP(Div)
3515 COMPOUND_OP(Div);
/freebsd-11.0-release/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp2447 SDValue Div = DAG.getNode(DivOpcode, DL, VT, N0, N1); local
2448 AddToWorklist(Div.getNode());
2449 SDValue OptimizedDiv = combine(Div.getNode());
2450 if (OptimizedDiv.getNode() && OptimizedDiv.getNode() != Div.getNode()) {

Completed in 246 milliseconds