Home
last modified time | relevance | path

Searched refs:NegOp (Results 1 – 20 of 20) sorted by relevance

/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineNegator.cpp267 Value *NegOp = negate(I->getOperand(0), Depth + 1); in visitImpl() local
268 if (!NegOp) // Early return. in visitImpl()
270 return Builder.CreateFreeze(NegOp, I->getName() + ".neg"); in visitImpl()
347 Value *NegOp = negate(I->getOperand(0), Depth + 1); in visitImpl() local
348 if (!NegOp) // Early return. in visitImpl()
350 return Builder.CreateTrunc(NegOp, I->getType(), I->getName() + ".neg"); in visitImpl()
382 if (Value *NegOp = negate(Op, Depth + 1)) { in visitImpl() local
383 NegatedOps.emplace_back(NegOp); // Successfully negated operand! in visitImpl()
/external/tensorflow/tensorflow/compiler/mlir/hlo/include/mlir-hlo/Dialect/mhlo/transforms/
Dmap_hlo_to_lhlo_op.h70 MAP_HLO_TO_LHLO(NegOp);
Dmap_lmhlo_to_scalar_op.h560 inline Value MapLhloOpToStdScalarOp<lmhlo::NegOp>(Location loc,
/external/tensorflow/tensorflow/compiler/mlir/python/mlir_wrapper/
Dops.cc171 py::class_<mlir::TF::NegOp>(m, "Tf_NegOp") in init_ops()
175 return opb.create<mlir::TF::NegOp>(loc, x).getOperation(); in init_ops()
/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/
Dchlo_legalize_to_hlo.cc129 Value z = rewriter.create<mhlo::NegOp>(loc, x_sq); in MaterializeErfcApproximationF64ForMagnituteGEOne()
287 Value z = rewriter.create<mhlo::NegOp>(loc, x_sq); in MaterializeErfcApproximationF32ForMagnitudeGEOne()
525 Value neg_x = rewriter.create<mhlo::NegOp>(loc, x); in MaterializeLgamma()
633 rewriter.create<mhlo::NegOp>(loc, reflection_denom); in MaterializeLgamma()
670 Value neg_x = rewriter.create<mhlo::NegOp>(loc, x); in MaterializeDigamma()
789 Value neg_x = rewriter.create<mhlo::NegOp>(loc, x); in MaterializeZeta()
Dtransform_unranked_hlo.cc41 sep fn(NotOp) sep fn(NegOp) sep fn(PopulationCountOp) \
Dhlo_legalize_to_lhlo.cc671 HloToLhloOpConverter<mhlo::NegOp>, in populateHLOToLHLOConversionPattern()
Dlegalize_to_linalg.cc1411 PointwiseToLinalgConverter<lmhlo::NegOp>, in populateLHLOToLinalgConversionPattern()
1538 PointwiseToLinalgConverter<mhlo::NegOp, false>, in populateHLOToLinalgConversionPattern()
/external/tensorflow/tensorflow/compiler/mlir/xla/
Dhlo_utils.cc397 } else if (isa<mlir::mhlo::NegOp, mlir::lmhlo::NegOp>(op)) { in MhloToHloOpcode()
Dhlo_function_importer.cc768 NoAttributeCase(kNegate, NegOp); in ImportInstructionImpl()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dlower_tf.cc527 NegOp::getOperationName(), in LowerLgammaOp()
591 Value minus_input = rewriter.create<NegOp>(loc, input); in matchAndRewrite()
699 Value neg_reflection_denom = rewriter.create<NegOp>(loc, reflection_denom); in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dlegalize_tf_with_tf2xla.cc189 TypeID::get<TF::NegOp>(), in IsOpAllowedTf2XlaFallback()
Dlegalize_tf.cc1551 Value neg_d = rewriter.create<NegOp>(loc, d); in matchAndRewrite()
5755 builder->create<NegOp>(loc, batch_size_one)), in House()
6044 auto neg_beta = builder->create<NegOp>(loc, beta); in ComputeWYRepresentation()
6065 auto neg_beta = rewriter->create<NegOp>(loc, beta); in ComputeWYRepresentation()
Dmhlo_to_lhlo_with_xla.cc329 return CreateOpWithoutAttrs<lmhlo::NegOp>(instr); in EmitOp()
/external/tensorflow/tensorflow/compiler/mlir/tosa/transforms/
Dlegalize_tf.cc1915 auto tf_neg_op = cast<TF::NegOp>(op); in matchAndRewrite()
Dlegalize_tfl.cc2724 auto tfl_neg_op = cast<TFL::NegOp>(op); in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/lite/ir/
Dtfl_ops.cc2166 OpFoldResult NegOp::fold(ArrayRef<Attribute> operands) { in fold()
/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/IR/
Dhlo_ops.cc2218 UNARY_FOLDER(NegOp, std::negate);
/external/clang/lib/CodeGen/
DCGBuiltin.cpp510 Value *NegOp = Builder.CreateNeg(ArgValue, "neg"); in EmitBuiltinExpr() local
516 Builder.CreateSelect(CmpResult, ArgValue, NegOp, "abs"); in EmitBuiltinExpr()
/external/llvm-project/clang/lib/CodeGen/
DCGBuiltin.cpp2430 Value *NegOp = Builder.CreateNSWNeg(ArgValue, "neg"); in EmitBuiltinExpr() local
2433 Value *Result = Builder.CreateSelect(CmpResult, NegOp, ArgValue, "abs"); in EmitBuiltinExpr()