Home
last modified time | relevance | path

Searched refs:Div (Results 1 – 25 of 176) sorted by relevance

12345678

/external/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp434 bool llvm::expandDivision(BinaryOperator *Div) { in expandDivision() argument
435 assert((Div->getOpcode() == Instruction::SDiv || in expandDivision()
436 Div->getOpcode() == Instruction::UDiv) && in expandDivision()
439 IRBuilder<> Builder(Div); in expandDivision()
441 assert(!Div->getType()->isVectorTy() && "Div over vectors not supported"); in expandDivision()
442 assert((Div->getType()->getIntegerBitWidth() == 32 || in expandDivision()
443 Div->getType()->getIntegerBitWidth() == 64) && in expandDivision()
447 if (Div->getOpcode() == Instruction::SDiv) { in expandDivision()
449 Value *Quotient = generateSignedDivisionCode(Div->getOperand(0), in expandDivision()
450 Div->getOperand(1), Builder); in expandDivision()
[all …]
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dbinary_ops.cc53 XLA_MAKE_BINARY(Div, b->Div(lhs, rhs, extend_dimensions));
78 auto result = b->Select(different_sign, b->Div(t, abs_y), b->Div(x, y)); in FloorDivImpl()
118 XLA_MAKE_BINARY(RealDiv, b->Div(lhs, rhs, extend_dimensions));
123 b->Div(rhs, XlaHelpers::IntegerLiteral(b, input_type(0), -2)),
126 b->Div(b->Mul(rhs,
138 XLA_MAKE_BINARY(TruncateDiv, b->Div(lhs, rhs, extend_dimensions));
155 b->Div(lhs, b->Add(b->Exp(b->Neg(rhs)),
160 b->Div(lhs, Square(b, b->Add(XlaHelpers::One(b, input_type(0)),
Dunary_ops.cc90 Atanh, b->Mul(b->Log(b->Div(b->Add(XlaHelpers::One(b, input_type(0)), x),
112 XLAJIT_MAKE_UNARY(Inv, b->Div(XlaHelpers::One(b, input_type(0)), x));
113 XLAJIT_MAKE_UNARY(Reciprocal, b->Div(XlaHelpers::One(b, input_type(0)), x));
186 b->Div(x,
191 XLAJIT_MAKE_UNARY(Tan, b->Div(b->Sin(x), b->Cos(x)));
Dquantize_and_dequantize_op.cc89 b->Div(XlaHelpers::FloatLiteral(b, data_type, max_fixed - min_fixed), in Compile()
96 xla::ComputationDataHandle result = b->Div(b->Round(b->Mul(input, s)), s); in Compile()
Dtraining_ops.cc235 b->Div(b->Mul(lr, b->Pow(b->Sub(one, beta2_power), half)), in Compile()
240 b->Sub(var, b->Div(b->Mul(m, alpha), b->Add(b->Pow(v, half), epsilon))); in Compile()
440 b->Mul(b->Div(b->Sub(new_accum_lr_pow, accum_lr_pow), lr), var))); in CompileFtrl()
443 b->Add(b->Div(new_accum_lr_pow, lr), b->Mul(two, l2)); in CompileFtrl()
444 var = b->Div(b->Sub(linear_clipped, linear), quadratic); in CompileFtrl()
Dfake_quantize_ops.cc54 *scale = b->Div(b->Sub(max, min), in XlaNudge()
60 b->Sub(quant_min, b->Div(min, *scale)); in XlaNudge()
78 xla::ComputationDataHandle inv_scale = b->Div(one, input_scale); in Quantize()
Dl2loss_op.cc46 ctx->SetOutput(0, b->Div(b->Reduce(b->Mul(x, x), zero, add, dims), two)); in Compile()
Dsoftmax_op.cc67 softmax = b->Div(exp_shifted, sum_exp, {kBatchDim}); in Compile()
121 b->Sub(b->Div(exp_shifted_logits, sum_exp, {kBatchDim}), labels); in CrossEntropyWithLogits()
Dimage_ops.cc41 auto saturation = b->Select(b->Gt(value, zero), b->Div(range, value), zeros); in RGBToHSV()
43 auto norm = b->Div(XlaHelpers::FloatLiteral(b, dtype, 1.0 / 6.0), range); in RGBToHSV()
186 output = b->Div(output, XlaHelpers::FloatLiteral(b, type, height * width)); in Compile()
/external/llvm/unittests/Transforms/Utils/
DIntegerDivision.cpp41 Value *Div = Builder.CreateSDiv(A, B); in TEST() local
44 Value *Ret = Builder.CreateRet(Div); in TEST()
46 expandDivision(cast<BinaryOperator>(Div)); in TEST()
71 Value *Div = Builder.CreateUDiv(A, B); in TEST() local
74 Value *Ret = Builder.CreateRet(Div); in TEST()
76 expandDivision(cast<BinaryOperator>(Div)); in TEST()
162 Value *Div = Builder.CreateSDiv(A, B); in TEST() local
165 Value *Ret = Builder.CreateRet(Div); in TEST()
167 expandDivision(cast<BinaryOperator>(Div)); in TEST()
192 Value *Div = Builder.CreateUDiv(A, B); in TEST() local
[all …]
/external/llvm/include/llvm/Transforms/Utils/
DIntegerDivision.h42 bool expandDivision(BinaryOperator* Div);
63 bool expandDivisionUpTo32Bits(BinaryOperator *Div);
69 bool expandDivisionUpTo64Bits(BinaryOperator *Div);
/external/jacoco/org.jacoco.examples/build/src/main/java/org/jacoco/examples/expressions/
DDiv.java14 public class Div implements IExpression { class
20 public Div(final IExpression l, final IExpression r) { in Div() method in Div
/external/eigen/unsupported/test/
Dcxx11_tensor_complex_cwise_ops_cuda.cu54 Div in test_cuda_complex_cwise_ops() enumerator
58 for (int op = Add; op <= Div; op++) { in test_cuda_complex_cwise_ops()
73 case Div: in test_cuda_complex_cwise_ops()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_Div.pbtxt2 graph_op_name: "Div"
5 *NOTE*: `Div` supports broadcasting. More about broadcasting
Dapi_def_RealDiv.pbtxt7 *NOTE*: `Div` supports broadcasting. More about broadcasting
/external/apache-xml/src/main/java/org/apache/xpath/axes/
DHasPositionalPredChecker.java30 import org.apache.xpath.operations.Div;
103 (pred instanceof Div) || in visitPredicate()
/external/jacoco/org.jacoco.examples/build/src/main/java/org/jacoco/examples/parser/
DExpressionParser.java23 import org.jacoco.examples.expressions.Div;
68 e = new Div(e, factor()); in product()
/external/tensorflow/tensorflow/compiler/tf2xla/lib/
Dtriangular_solve.cc181 update = builder->Div(b_slice, maybe_conj(builder, a_slice)); in TriangularSolve()
231 update = builder->Div(b_slice, maybe_conj(builder, a_slice)); in TriangularSolve()
280 update = builder->Div(b_slice, maybe_conj(builder, a_slice)); in TriangularSolve()
330 update = builder->Div(b_slice, maybe_conj(builder, a_slice)); in TriangularSolve()
412 auto update = builder->Div(b_slice, maybe_conj(builder, a_slice)); in TriangularSolveLeftLooking()
533 auto div_result = bodyb->Div(result_row, maybe_conj(bodyb.get(), a_elt)); in TriangularSolveLeftLooking()
/external/vulkan-validation-layers/libs/glm/gtx/
Dquaternion.inl105 float Div = sin(NewAngle) / sin(Angle); local
108 x.x * Div,
109 x.y * Div,
110 x.z * Div);
/external/apache-xml/src/main/java/org/apache/xpath/operations/
DDiv.java30 public class Div extends Operation class
/external/tensorflow/tensorflow/compiler/xla/tests/
Dscalar_computations_test.cc256 builder.Div(builder.ConstantR0<float>(5.0f), builder.ConstantR0<float>(2.5f)); in XLA_TEST_F()
286 builder.Div(builder.ConstantR0<int32>(p.dividend), in XLA_TEST_P()
310 builder.Div(dividend, divisor); in XLA_TEST_P()
375 builder.Div(dividend, divisor); in XLA_TEST_F()
456 builder.Div(builder.ConstantR0<uint32>(0xFFFFFFFE), in XLA_TEST_F()
874 b.Div( in XLA_TEST_F()
Darray_elementwise_ops_test.cc292 auto add = builder.Div(a, b); in XLA_TEST_F()
302 auto add = builder.Div(a, b); in XLA_TEST_F()
339 builder.Div(dividend, divisor); in XLA_TEST_F()
351 builder.Div(dividend, builder.ConstantR1<int32>(divisors)); in XLA_TEST_F()
410 builder.Div(dividend, divisor); in XLA_TEST_F()
421 builder.Div(dividend, builder.ConstantR1<uint32>(divisors)); in XLA_TEST_F()
457 auto div = builder.Div(a, b); in XLA_TEST_F()
467 auto div = builder.Div(a, b); in XLA_TEST_F()
1336 b.Div(param0, b.Exp(param1)); in XLA_TEST_F()
1368 b.Div(b.Div(param0, param1), param2); in XLA_TEST_F()
[all …]
/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.cpp1313 SDValue Div = DAG.getNode(ISD::ADD, DL, VT, iq, jq); in LowerDIVREM24() local
1316 SDValue Rem = DAG.getNode(ISD::MUL, DL, VT, Div, RHS); in LowerDIVREM24()
1323 Div = DAG.getNode(ISD::SIGN_EXTEND_INREG, DL, VT, Div, InRegSize); in LowerDIVREM24()
1327 Div = DAG.getNode(ISD::AND, DL, VT, Div, TruncMask); in LowerDIVREM24()
1331 return DAG.getMergeValues({ Div, Rem }, DL); in LowerDIVREM24()
1498 SDValue Div = DAG.getSelectCC(DL, Tmp1, DAG.getConstant(0, DL, VT), in LowerUDIVREM() local
1502 Div = DAG.getSelectCC(DL, Remainder_GE_Zero, DAG.getConstant(0, DL, VT), in LowerUDIVREM()
1503 Quotient_S_One, Div, ISD::SETEQ); in LowerUDIVREM()
1521 Div, in LowerUDIVREM()
1571 SDValue Div = DAG.getNode(ISD::UDIVREM, DL, DAG.getVTList(VT, VT), LHS, RHS); in LowerSDIVREM() local
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/SystemZ/
DSystemZISelDAGToDAG.cpp657 SDNode *Div = CurDAG->getMachineNode(TargetOpcode::EXTRACT_SUBREG, in Select() local
663 ReplaceUses(SDValue(Node, 0), SDValue(Div, 0)); in Select()
742 SDNode *Div = CurDAG->getMachineNode(TargetOpcode::EXTRACT_SUBREG, in Select() local
747 ReplaceUses(SDValue(Node, 0), SDValue(Div, 0)); in Select()
/external/tensorflow/tensorflow/cc/gradients/
Dmath_grad.cc421 auto gx_1 = Div(scope, grad_inputs[0], x_2); in DivGrad()
423 Div(scope, Div(scope, Neg(scope, x_1), x_2), x_2)); in DivGrad()
602 return Div(scope, x, Maximum(scope, y, Const(scope, 1))); in SafeDivHelper()
729 Div(scope, sum_grad, Cast(scope, group_size, sum_grad.type()))); in MeanGrad()
819 auto scale = Div(scope, indicators, num_selected); in MinOrMaxGrad()

12345678