Home
last modified time | relevance | path

Searched refs:CompareOp (Results 1 – 25 of 37) sorted by relevance

12

/external/deqp-deps/amber/src/
Dpipeline_data.h45 void SetDepthCompareOp(CompareOp op) { depth_compare_op_ = op; } in SetDepthCompareOp()
46 CompareOp GetDepthCompareOp() const { return depth_compare_op_; } in GetDepthCompareOp()
60 void SetFrontCompareOp(CompareOp op) { front_compare_op_ = op; } in SetFrontCompareOp()
61 CompareOp GetFrontCompareOp() const { return front_compare_op_; } in GetFrontCompareOp()
81 void SetBackCompareOp(CompareOp op) { back_compare_op_ = op; } in SetBackCompareOp()
82 CompareOp GetBackCompareOp() const { return back_compare_op_; } in GetBackCompareOp()
168 CompareOp front_compare_op_ = CompareOp::kAlways;
173 CompareOp back_compare_op_ = CompareOp::kAlways;
179 CompareOp depth_compare_op_ = CompareOp::kAlways;
Dcommand_data.h63 enum class CompareOp : uint8_t { enum
/external/tensorflow/tensorflow/compiler/mlir/hlo/include/mlir-hlo/Dialect/mhlo/transforms/
Dmap_chlo_to_hlo_op.h46 static mhlo::CompareOp CreateOp(BroadcastCompareOp from_op, Type result_type, in CreateOp()
49 return builder.create<mhlo::CompareOp>( in CreateOp()
90 ->insert<Pattern<BroadcastCompareOp, mhlo::CompareOp, HloCompareAdaptor>>( in PopulateForBroadcastingBinaryOp()
Dmap_lmhlo_to_scalar_op.h50 struct LhloToScalarOp<lmhlo::CompareOp> {
145 auto lhs_gt_zero = b->create<ScalarIOp<CompareOp>>(loc, CmpIPredicate::sge,
521 IntegerType, ScalarIOp<lmhlo::CompareOp>, CmpIPredicate, FloatType,
522 ScalarFOp<lmhlo::CompareOp>, CmpFPredicate>::map(loc, "GT",
535 IntegerType, ScalarIOp<lmhlo::CompareOp>, CmpIPredicate, FloatType,
536 ScalarFOp<lmhlo::CompareOp>, CmpFPredicate>::map(loc, "LT",
822 !std::is_same<LhloOpTy, lmhlo::CompareOp>::value &&
834 !std::is_same<LhloOpTy, lmhlo::CompareOp>::value &&
844 LhloOpTy, lmhlo::CompareOp>::value>>
845 static Value map(lmhlo::CompareOp op, ArrayRef<Type> result_types,
[all …]
Dmap_hlo_to_lhlo_op.h48 MAP_HLO_TO_LHLO(CompareOp);
/external/deqp/framework/randomshaders/
DrsgVariableValue.cpp32 template <class CompareOp>
42 if (!compareValueRangesAllTrue<CompareOp>(a.member(ndx), b.member(ndx))) in compareValueRangesAllTrue()
51 if (!compareValueRangesAllTrue<CompareOp>(a.arrayElement(ndx), b.arrayElement(ndx))) in compareValueRangesAllTrue()
68 if (!CompareOp()(aMin, aMax, bMin, bMax)) in compareValueRangesAllTrue()
83 if (!CompareOp()(aMin, aMax, bMin, bMax)) in compareValueRangesAllTrue()
96 if (!CompareOp()(aMin, aMax, bMin, bMax)) in compareValueRangesAllTrue()
/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/
Dchlo_legalize_to_hlo.cc157 Value abs_x_lt_8 = rewriter.create<mhlo::CompareOp>(loc, abs_x, eight, kLT); in MaterializeErfcApproximationF64ForMagnituteGEOne()
163 Value z_lt_neg_maxlog = rewriter.create<mhlo::CompareOp>( in MaterializeErfcApproximationF64ForMagnituteGEOne()
173 Value x_lt_zero = rewriter.create<mhlo::CompareOp>(loc, x, zero, kLT); in MaterializeErfcApproximationF64ForMagnituteGEOne()
231 Value abs_x_lt_one = rewriter.create<mhlo::CompareOp>(loc, abs_x, one, kLT); in MaterializeErfApproximationF64()
258 Value abs_x_lt_one = rewriter.create<mhlo::CompareOp>(loc, abs_x, one, kLT); in MaterializeErfcApproximationF64()
302 Value abs_x_lt_two = rewriter.create<mhlo::CompareOp>(loc, abs_x, two, kLT); in MaterializeErfcApproximationF32ForMagnitudeGEOne()
314 Value z_lt_neq_maxlog = rewriter.create<mhlo::CompareOp>( in MaterializeErfcApproximationF32ForMagnitudeGEOne()
324 Value x_lt_zero = rewriter.create<mhlo::CompareOp>(loc, x, zero, kLT); in MaterializeErfcApproximationF32ForMagnitudeGEOne()
406 Value abs_x_lt_one = rewriter.create<mhlo::CompareOp>(loc, abs_x, one, kLT); in MaterializeErfcApproximationF32()
524 Value need_to_reflect = rewriter.create<mhlo::CompareOp>(loc, x, half, kLT); in MaterializeLgamma()
[all …]
Dlegalize_to_standard.cc34 class CompareIConvert : public OpRewritePattern<mhlo::CompareOp> {
38 LogicalResult matchAndRewrite(mhlo::CompareOp op, in matchAndRewrite()
71 class CompareFConvert : public OpRewritePattern<mhlo::CompareOp> {
75 LogicalResult matchAndRewrite(mhlo::CompareOp op, in matchAndRewrite()
Dmhlo_control_flow_to_scf.cc74 auto cmp = result.getDefiningOp<mhlo::CompareOp>(); in MatchAndRewrite()
Dtransform_unranked_hlo.cc487 AddLegalOpOnRankedTensor<mhlo::CompareOp>(&target); in runOnFunction()
520 ElementwiseOpConversion<mhlo::CompareOp>, in PopulateTransformUnrankedHloPatterns()
Dhlo_legalize_to_lhlo.cc651 HloToLhloOpConverter<mhlo::CompareOp>, in populateHLOToLHLOConversionPattern()
Dlegalize_to_linalg.cc1393 PointwiseToLinalgConverter<lmhlo::CompareOp>, in populateLHLOToLinalgConversionPattern()
1521 PointwiseToLinalgConverter<mhlo::CompareOp, false>, in populateHLOToLinalgConversionPattern()
/external/deqp-deps/amber/src/vulkan/
Dgraphics_pipeline.cc100 VkCompareOp ToVkCompareOp(CompareOp op) { in ToVkCompareOp()
102 case CompareOp::kNever: in ToVkCompareOp()
104 case CompareOp::kLess: in ToVkCompareOp()
106 case CompareOp::kEqual: in ToVkCompareOp()
108 case CompareOp::kLessOrEqual: in ToVkCompareOp()
110 case CompareOp::kGreater: in ToVkCompareOp()
112 case CompareOp::kNotEqual: in ToVkCompareOp()
114 case CompareOp::kGreaterOrEqual: in ToVkCompareOp()
116 case CompareOp::kAlways: in ToVkCompareOp()
118 case CompareOp::kUnknown: in ToVkCompareOp()
/external/deqp-deps/amber/src/vkscript/
Dcommand_parser.h73 Result ParseCompareOpNameForTesting(const std::string& name, CompareOp* op) { in ParseCompareOpNameForTesting()
140 Result ParseCompareOp(const std::string& name, CompareOp* op);
141 Result ParseCompareOpName(const std::string& name, CompareOp* op);
Dcommand_parser.cc1733 Result CommandParser::ParseCompareOp(const std::string& name, CompareOp* op) { in ParseCompareOp()
1754 CompareOp* op) { in ParseCompareOpName()
1758 *op = CompareOp::kNever; in ParseCompareOpName()
1760 *op = CompareOp::kLess; in ParseCompareOpName()
1762 *op = CompareOp::kEqual; in ParseCompareOpName()
1764 *op = CompareOp::kLessOrEqual; in ParseCompareOpName()
1766 *op = CompareOp::kGreater; in ParseCompareOpName()
1768 *op = CompareOp::kNotEqual; in ParseCompareOpName()
1770 *op = CompareOp::kGreaterOrEqual; in ParseCompareOpName()
1772 *op = CompareOp::kAlways; in ParseCompareOpName()
[all …]
Dcommand_parser_test.cc2441 EXPECT_EQ(CompareOp::kEqual, in TEST_F()
2453 EXPECT_EQ(CompareOp::kEqual, in TEST_F()
2465 EXPECT_EQ(CompareOp::kEqual, cp.PipelineDataForTesting()->GetBackCompareOp()); in TEST_F()
2470 CompareOp type;
2480 CompareOp op = CompareOp::kNever; in TEST_P()
2490 CompareOpData{"VK_COMPARE_OP_NEVER", CompareOp::kNever},
2491 CompareOpData{"VK_COMPARE_OP_LESS", CompareOp::kLess},
2492 CompareOpData{"VK_COMPARE_OP_EQUAL", CompareOp::kEqual},
2493 CompareOpData{"VK_COMPARE_OP_LESS_OR_EQUAL", CompareOp::kLessOrEqual},
2494 CompareOpData{"VK_COMPARE_OP_GREATER", CompareOp::kGreater},
[all …]
/external/deqp-deps/amber/src/amberscript/
Dparser_stencil_test.cc82 ASSERT_EQ(CompareOp::kEqual, in TEST_F()
84 ASSERT_EQ(CompareOp::kGreater, in TEST_F()
Dparser.cc156 CompareOp StrToCompareOp(const std::string& str) { in StrToCompareOp()
158 return CompareOp::kNever; in StrToCompareOp()
160 return CompareOp::kLess; in StrToCompareOp()
162 return CompareOp::kEqual; in StrToCompareOp()
164 return CompareOp::kLessOrEqual; in StrToCompareOp()
166 return CompareOp::kGreater; in StrToCompareOp()
168 return CompareOp::kNotEqual; in StrToCompareOp()
170 return CompareOp::kGreaterOrEqual; in StrToCompareOp()
172 return CompareOp::kAlways; in StrToCompareOp()
174 return CompareOp::kUnknown; in StrToCompareOp()
[all …]
/external/deqp-deps/amber/src/dawn/
Dengine_dawn.cc640 ::dawn::CompareFunction GetDawnCompareOp(::amber::CompareOp op) { in GetDawnCompareOp()
642 case CompareOp::kNever: in GetDawnCompareOp()
644 case CompareOp::kLess: in GetDawnCompareOp()
646 case CompareOp::kEqual: in GetDawnCompareOp()
648 case CompareOp::kLessOrEqual: in GetDawnCompareOp()
650 case CompareOp::kGreater: in GetDawnCompareOp()
652 case CompareOp::kNotEqual: in GetDawnCompareOp()
654 case CompareOp::kGreaterOrEqual: in GetDawnCompareOp()
656 case CompareOp::kAlways: in GetDawnCompareOp()
/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/IR/
Dhlo_ops.cc2833 void CompareOp::build(OpBuilder& builder, OperationState& result, Value lhs, in build()
2842 LogicalResult CompareOp::inferReturnTypeComponents( in inferReturnTypeComponents()
2850 LogicalResult CompareOp::reifyReturnTypeShapes( in reifyReturnTypeShapes()
2889 static Attribute CompareFolder(CompareOp op, ArrayRef<Attribute> attrs) { in CompareFolder()
2917 OpFoldResult CompareOp::fold(ArrayRef<Attribute> operands) { in fold()
2943 COMPARE_FOLDER(CompareOp, "EQ", std::equal_to); in fold()
2944 COMPARE_FOLDER(CompareOp, "NE", std::not_equal_to); in fold()
2945 COMPARE_FOLDER(CompareOp, "LT", less); in fold()
2946 COMPARE_FOLDER(CompareOp, "LE", less_equal); in fold()
2947 COMPARE_FOLDER(CompareOp, "GT", greater); in fold()
[all …]
/external/swiftshader/tests/VulkanWrapper/
DDrawTester.cpp262 depthStencilState.depthCompareOp = vk::CompareOp::eLessOrEqual; in createGraphicsPipeline()
266 depthStencilState.back.compareOp = vk::CompareOp::eAlways; in createGraphicsPipeline()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dmhlo_to_lhlo_with_xla.h79 xla::StatusOr<lmhlo::CompareOp> EmitCompareOp(
Dmhlo_to_lhlo_with_xla.cc970 StatusOr<lmhlo::CompareOp> LhloDialectEmitter::EmitCompareOp( in EmitCompareOp()
973 CreateOpWithoutAttrs<lmhlo::CompareOp>(instr)); in EmitCompareOp()
Dlegalize_tf.cc681 Value compare = builder->create<mhlo::CompareOp>(loc, loop_iv, upper_limit, in CreateWhile32()
946 Value compare = builder->create<CompareOp>( in BuildArgMinMaxReductionBody()
1064 Value compare = builder->create<mhlo::CompareOp>( in BuildSortComparisonBody()
1400 Value compare = rewriter.create<CompareOp>( in matchAndRewrite()
4077 auto reducer = rewriter.create<CompareOp>( in matchAndRewrite()
4527 Value compare = rewriter.create<mhlo::CompareOp>( in matchAndRewrite()
5619 Value compare = rewriter.create<CompareOp>( in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/xla/
Dhlo_utils.cc428 } else if (isa<mlir::mhlo::CompareOp, mlir::lmhlo::CompareOp>(op)) { in MhloToHloOpcode()

12