Home
last modified time | relevance | path

Searched refs:matchPattern (Results 1 – 25 of 59) sorted by relevance

123

/external/tensorflow/tensorflow/compiler/mlir/tfr/passes/
Dcanonicalize.cc55 if (!matchPattern(for_op.lowerBound(), m_ConstantInt(&lower_bound)) || in matchAndRewrite()
56 !matchPattern(for_op.upperBound(), m_ConstantInt(&upper_bound)) || in matchAndRewrite()
57 !matchPattern(for_op.step(), m_ConstantInt(&step))) { in matchAndRewrite()
111 if (matchPattern(if_op.condition(), m_NonZero())) { in matchAndRewrite()
116 if (matchPattern(if_op.condition(), m_Zero())) { in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Doptimize.cc316 if (!matchPattern(constant_val, m_Constant(&added_value))) return failure(); in matchAndRewrite()
344 if (!is_none_bias && !matchPattern(bias, m_Constant(&bias_value))) in matchAndRewrite()
447 if (!matchPattern(constant_val, m_Constant(&cst))) return failure(); in matchAndRewrite()
456 if (!matchPattern(filter, m_Constant(&cst_tmp))) return failure(); in matchAndRewrite()
458 !matchPattern(bias, m_Constant(&cst_tmp))) in matchAndRewrite()
544 if (!matchPattern(gamma, m_Constant(&gamma_cst))) return failure(); in matchAndRewrite()
564 if (!matchPattern(filter, m_Constant(&cst_tmp))) return failure(); in matchAndRewrite()
566 !matchPattern(bias, m_Constant(&cst_tmp))) in matchAndRewrite()
628 if (!matchPattern(binary_op->getOperand(1), m_Constant(&cst))) in matchAndRewrite()
637 if (!matchPattern(filter, m_Constant(&filter_cst))) { in matchAndRewrite()
[all …]
Ddilated_conv.h239 if (matchPattern(stb_paddings, m_Constant(&stb_paddings_attr)) && in matchAndRewrite()
240 matchPattern(bts_crops, m_Constant(&bts_crops_attr))) { in matchAndRewrite()
313 if (!matchPattern(stb_block_shape, m_Constant(&stb_bs_attr)) || in ExtractDilationsAttrFromBlockShape()
314 !matchPattern(bts_block_shape, m_Constant(&bts_bs_attr))) { in ExtractDilationsAttrFromBlockShape()
Dsplit_merged_operands.cc90 if (!matchPattern(input_op, m_Constant(&attr))) { in DuplicateValueIfNeeded()
Dlegalize_tf.cc228 if (!matchPattern(tf_concat_op.axis(), m_Constant(&axis))) return failure(); in matchAndRewrite()
400 if (!matchPattern(tf_matrix_diag_v2_or_v3_op.k(), m_Constant(&k))) in ConvertTFMatrixDiagV2orV3()
406 if (!matchPattern(tf_matrix_diag_v2_or_v3_op.num_rows(), in ConvertTFMatrixDiagV2orV3()
413 if (!matchPattern(tf_matrix_diag_v2_or_v3_op.num_cols(), in ConvertTFMatrixDiagV2orV3()
420 if (!matchPattern(tf_matrix_diag_v2_or_v3_op.padding_value(), in ConvertTFMatrixDiagV2orV3()
Dprepare_tf.cc123 if (!matchPattern(min, m_Constant(&min_value))) { in operator ()()
126 if (!matchPattern(max, m_Constant(&max_value))) { in operator ()()
607 !matchPattern(begin, m_Constant(&begin_dense_elem_attr))) { in RewriteEllipsisMask()
615 !matchPattern(end, m_Constant(&end_dense_elem_attr))) { in RewriteEllipsisMask()
624 !matchPattern(stride, m_Constant(&stride_dense_elem_attr))) { in RewriteEllipsisMask()
779 !matchPattern(begin_attr, m_Constant(&begin_elem_attr))) { in matchAndRewrite()
782 if (!end_attr_type || !matchPattern(end_attr, m_Constant(&end_elem_attr))) { in matchAndRewrite()
786 !matchPattern(strides_attr, m_Constant(&strides_elem_attr))) { in matchAndRewrite()
Dquantize.cc98 if (matchPattern(op.input(), m_Constant(&attr))) { in matchAndRewrite()
/external/apache-xml/src/main/java/org/apache/xalan/templates/
DWhiteSpaceInfo.java69 public WhiteSpaceInfo(XPath matchPattern, boolean shouldStripSpace, Stylesheet thisSheet) in WhiteSpaceInfo() argument
74 setMatch(matchPattern); in WhiteSpaceInfo()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_ops_n_z.cc134 if (matchPattern(op.depth(), m_Constant(&depth_attr))) { in Verify()
161 if (matchPattern(depth, m_Constant(&depth_attr)) && in InferOneHotOpType()
501 if (matchPattern(start, m_Constant(&start_val)) && in build()
502 matchPattern(limit, m_Constant(&limit_val)) && in build()
503 matchPattern(delta, m_Constant(&delta_val))) { in build()
591 if (!matchPattern(shape, m_Constant(&shape_attr))) { in GetReshapeOutputType()
1099 if (matchPattern(op.begin(), m_Constant(&begin_indices))) { in Verify()
1102 matchPattern(op.size(), m_Constant(&slice_sizes)); in Verify()
1134 if (matchPattern(op.size(), m_Constant(&slice_sizes))) { in Verify()
1243 if (matchPattern(op.block_shape(), m_Constant(&block_shape_attr))) { in Verify()
[all …]
Dtf_ops_a_m.cc145 if (matchPattern(op.condition(), m_Constant(&cst))) { in matchAndRewrite()
318 if (matchPattern(op.crops(), m_Constant(&crops_attr))) { in Verify()
594 if (!matchPattern(op.s0(), m_Constant(&s0))) return false; in ExtractInputConstShape()
595 if (!matchPattern(op.s1(), m_Constant(&s1))) return false; in ExtractInputConstShape()
742 if (!matchPattern(op.branch_index(), m_Constant(&branch))) return failure(); in matchAndRewrite()
1087 if (!matchPattern(op.axis(), m_Constant(&axis_attr))) return failure(); in matchAndRewrite()
1291 if (matchPattern(op.axis(), m_Constant(&axis_attr))) { in Verify()
1960 if (matchPattern(index, m_Constant(&index_attr))) { in Verify()
2134 if (!matchPattern(dim, m_Constant(&dim_attr)) || in InferExpandDimsOpType()
2251 if (!matchPattern(dims, m_Constant(&dims_attr))) { in InferFillOpType()
[all …]
/external/llvm-project/mlir/lib/Transforms/Utils/
DFoldUtils.cpp60 assert(matchPattern(constOp, m_Constant())); in materializeConstant()
123 matchPattern(op, m_Constant(&constValue)); in notifyRemoval()
176 [&](OpOperand &O) { return !matchPattern(O.get(), m_Constant()); }); in tryToFold()
183 matchPattern(op->getOperand(i), m_Constant(&operandConstants[i])); in tryToFold()
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/tensorflow/
Dtf_to_quant.cc98 if (!matchPattern(min, m_Constant(&min_value))) return failure(); in matchAndRewrite()
99 if (!matchPattern(max, m_Constant(&max_value))) return failure(); in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/tosa/transforms/
Dlegalize_tf.cc474 if (!matchPattern(tf_argmax_op.dimension(), m_Constant(&axis_elems))) in matchAndRewrite()
639 if (!matchPattern(tf_concatv2_op.axis(), m_Constant(&axis_elems))) in matchAndRewrite()
776 if (!matchPattern(tf_fill_op.dims(), m_Constant(&dims_elems))) in matchAndRewrite()
786 if (!matchPattern(tf_fill_op.value(), m_Constant(&value_elem))) in matchAndRewrite()
1005 if (matchPattern(tf_conv_op.input_sizes(), in matchAndRewrite()
1039 if (!matchPattern(tf_all_op.reduction_indices(), m_Constant(&axes_elems))) in matchAndRewrite()
1065 if (!matchPattern(tf_any_op.reduction_indices(), m_Constant(&axes_elems))) in matchAndRewrite()
1091 if (!matchPattern(tf_max_op.reduction_indices(), m_Constant(&axes_elems))) in matchAndRewrite()
1117 if (!matchPattern(tf_min_op.reduction_indices(), m_Constant(&axes_elems))) in matchAndRewrite()
1143 if (!matchPattern(tf_mean_op.reduction_indices(), m_Constant(&axes_elems))) in matchAndRewrite()
[all …]
/external/skqp/src/ports/
DSkFontMgr_fontconfig.cpp804 FcPattern* matchPattern; in onMatchFamily() local
809 matchPattern = strongPattern; in onMatchFamily()
811 matchPattern = pattern; in onMatchFamily()
828 if (FontAccessible(font) && FontFamilyNameMatches(font, matchPattern)) { in onMatchFamily()
856 FcPattern* matchPattern; in onMatchFamilyStyle() local
861 matchPattern = strongPattern; in onMatchFamilyStyle()
863 matchPattern = pattern; in onMatchFamilyStyle()
868 … if (nullptr == font || !FontAccessible(font) || !FontFamilyNameMatches(font, matchPattern)) { in onMatchFamilyStyle()
/external/llvm-project/mlir/lib/Dialect/SPIRV/
DSPIRVCanonicalization.cpp156 if (matchPattern(operand2(), m_Zero())) in fold()
175 if (matchPattern(operand2(), m_Zero())) in fold()
178 if (matchPattern(operand2(), m_One())) in fold()
/external/skia/src/ports/
DSkFontMgr_fontconfig.cpp838 FcPattern* matchPattern; in onMatchFamily() local
843 matchPattern = strongPattern; in onMatchFamily()
845 matchPattern = pattern; in onMatchFamily()
862 if (FontAccessible(font) && FontFamilyNameMatches(font, matchPattern)) { in onMatchFamily()
891 FcPattern* matchPattern; in onMatchFamilyStyle() local
896 matchPattern = strongPattern; in onMatchFamilyStyle()
898 matchPattern = pattern; in onMatchFamilyStyle()
903 if (!font || !FontAccessible(font) || !FontFamilyNameMatches(font, matchPattern)) { in onMatchFamilyStyle()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dprepare_for_export.cc50 if (!matchPattern(op, m_Constant(&attr))) return; in runOnFunction()
/external/tensorflow/tensorflow/compiler/mlir/tfr/ir/
Dtfr_ops.cc369 if (matchPattern(cst_tensor_op.arg(), m_Constant(&array))) { in matchAndRewrite()
388 if (matchPattern(cst_tensor_op.arg(), m_Constant(&scalar))) { in matchAndRewrite()
457 if (!matchPattern(ge_op.index(), m_Constant(&index))) { in matchAndRewrite()
503 if (!matchPattern(operand, m_Constant(&array_elt))) { in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/lite/ir/
Dtfl_ops.cc153 if (!matchPattern(value, m_Constant(&constant)) || !constant.isSplat()) { in EqualsZero()
851 if (!matchPattern(input(), m_Constant(&input_tensor)) || in fold()
852 !matchPattern(filter(), m_Constant(&weights_tensor)) || in fold()
853 (has_bias && !matchPattern(bias(), m_Constant(&bias_tensor)))) { in fold()
1077 if (matchPattern(shape, m_Constant(&shape_value))) { in Verify()
1286 if (!matchPattern(reshape.shape(), m_Constant(&shape))) { in matchAndRewrite()
1363 if (!matchPattern(shape, m_Constant(&shape_attr))) { in GetReshapeOutputType()
1555 if (matchPattern(op.begin(), m_Constant(&begin))) { in Verify()
1567 if (matchPattern(op.size(), m_Constant(&size))) { in Verify()
1606 if (!matchPattern(input_op, m_Constant(&attr))) { in NarrowDownInt64InputValuesForOp()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dattribute_utils.h64 return matchPattern(val, m_Constant(&attr)); in GetValueAsConstant()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dinit_text_file_to_import_test_pass.cc73 if (!matchPattern(op.getOperation(), m_Constant(&attr))) { in runOnOperation()
Dinit_text_file_to_import.cc69 if (!matchPattern(op.filename().getDefiningOp(), in matchAndRewrite()
/external/llvm-project/mlir/include/mlir/IR/
DMatchers.h244 inline bool matchPattern(Value value, const Pattern &pattern) { in matchPattern() function
253 inline bool matchPattern(Operation *op, const Pattern &pattern) { in matchPattern() function
/external/llvm-project/mlir/lib/Dialect/Quant/Transforms/
DConvertConst.cpp45 if (!matchPattern(qbarrier.arg(), m_Constant(&value))) { in matchAndRewrite()
/external/llvm-project/mlir/lib/Dialect/StandardOps/IR/
DOps.cpp244 if (matchPattern(rhs(), m_Zero())) in fold()
308 return matchPattern(operand, m_ConstantIndex()); in matchAndRewrite()
390 if (matchPattern(rhs(), m_Zero())) in fold()
394 if (matchPattern(rhs(), m_ConstantInt(&intValue)) && in fold()
416 if (matchPattern(op.arg(), m_One())) { in matchAndRewrite()
731 if (!matchPattern(indirectCall.getCallee(), m_Constant(&calledFn))) in matchAndRewrite()
933 if (matchPattern(condbr.getCondition(), m_NonZero())) { in matchAndRewrite()
938 } else if (matchPattern(condbr.getCondition(), m_Zero())) { in matchAndRewrite()
1827 if (!matchPattern(*operandsIt, m_ConstantInt(&index))) { in matchAndRewrite()
2002 if (!matchPattern(*extract.indices().begin(), m_ConstantInt(&index))) in matchAndRewrite()
[all …]

123