Home
last modified time | relevance | path

Searched refs:isSplat (Results 1 – 25 of 57) sorted by relevance

123

/external/llvm/unittests/ADT/
DAPIntTest.cpp987 EXPECT_FALSE(A.isSplat(1)); in TEST()
988 EXPECT_FALSE(A.isSplat(2)); in TEST()
989 EXPECT_FALSE(A.isSplat(4)); in TEST()
990 EXPECT_TRUE(A.isSplat(8)); in TEST()
991 EXPECT_TRUE(A.isSplat(16)); in TEST()
992 EXPECT_TRUE(A.isSplat(32)); in TEST()
995 EXPECT_FALSE(B.isSplat(1)); in TEST()
996 EXPECT_TRUE(B.isSplat(2)); in TEST()
997 EXPECT_TRUE(B.isSplat(4)); in TEST()
998 EXPECT_TRUE(B.isSplat(8)); in TEST()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Drewrite_util.h56 if (matchPattern(value, m_Constant(&float_attr)) && float_attr.isSplat() && in IsConstantValueOf()
61 if (matchPattern(value, m_Constant(&int_attr)) && int_attr.isSplat() && in IsConstantValueOf()
Dlegalize_hlo.cc93 if (!matchPattern(value, m_Constant(&attr)) || !attr.isSplat()) { in GetConstantSplatValue()
173 if (!lhs_dilation.isSplat() || lhs_dilation.getSplatValue<int64_t>() != 1) in IsSupportedConvOp()
443 (conv_op.padding().getValue().isSplat() && in matchAndRewrite()
750 (conv_op.padding().getValue().isSplat() && in matchAndRewrite()
833 if (lhs_dilation.isSplat() && lhs_dilation.getSplatValue<int64_t>() == 1) in IsSupportedConvOp()
938 if (lhs_dilation.getNumElements() != 2 || !rhs_dilation.isSplat() || in MatchResizeOp()
2014 !init_attr.isSplat() || !init_attr.getSplatValue<BoolAttr>().getValue()) in MatchInitValue()
2030 !init_attr.isSplat() || init_attr.getSplatValue<BoolAttr>().getValue()) in MatchInitValue()
2329 !(rw.window_dilations()->isSplat() && in IsSpatialPoolingWithoutDilation()
2334 !(rw.base_dilations()->isSplat() && in IsSpatialPoolingWithoutDilation()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dconvert_tensor.cc317 if (attr.isSplat()) { in ConvertElementsAttr()
330 if (attr.isSplat()) { in ConvertFloatElementsAttr()
342 if (attr.isSplat()) { in ConvertHalfElementsAttr()
359 if (attr.isSplat()) { in ConvertIntElementsAttr()
373 if (attr.isSplat()) { in ConvertUIntElementsAttr()
383 if (attr.isSplat()) { in ConvertBfloat16ElementsAttr()
Dconvert_tensor_test.cc178 return attr.cast<mlir::DenseElementsAttr>().isSplat(); in IsSplat()
/external/tensorflow/tensorflow/core/ir/importexport/
Dconvert_tensor.cc317 if (attr.isSplat()) { in ConvertElementsAttr()
329 if (attr.isSplat()) { in ConvertFloatElementsAttr()
344 if (attr.isSplat()) { in ConvertHalfElementsAttr()
360 if (attr.isSplat()) { in ConvertIntElementsAttr()
373 if (attr.isSplat()) { in ConvertUIntElementsAttr()
383 if (attr.isSplat()) { in ConvertBfloat16ElementsAttr()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_arith_ops_folder.h111 if (rhs_attr.isSplat() && in IdentityArithmeticOpFolder()
119 if (lhs_attr.isSplat() && in IdentityArithmeticOpFolder()
/external/tensorflow/tensorflow/compiler/mlir/quantization/tensorflow/passes/
Dutils.h96 !value_attr.isSplat()) { in GetSplatValue()
104 if (!matchPattern(value, m_Constant(&value_attr)) || !value_attr.isSplat()) { in GetSplatValue()
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/ir/
DQuantizeUtils.cc52 if (realFPElementsAttr.isSplat()) { in convertDenseFPElementsAttr()
/external/tensorflow/tensorflow/dtensor/mlir/expansions/
Dnullary_spmd_expander.cc57 if (dense.isSplat()) { in ExpandOp()
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/tensorflow/
Dfallback_to_flex_ops.cc255 if (fp_attr.isSplat()) { in FloatValueEquals()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dlegalize_tf_collective.cc299 if (!group_size_attr.isSplat() || group_size_attr.size() != 1) { in matchAndRewrite()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp1187 bool isSplat = true; in visitShuffleVectorInst() local
1243 isSplat = false; in visitShuffleVectorInst()
1252 if (isSplat || newMask == LHSMask || newMask == RHSMask || newMask == Mask) { in visitShuffleVectorInst()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DConstants.cpp47 if (CV->getElementType()->isFloatingPointTy() && CV->isSplat()) in isNegativeZeroValue()
73 if (CV->getElementType()->isFloatingPointTy() && CV->isSplat()) in isZeroValue()
117 if (CV->isSplat()) { in isAllOnesValue()
143 if (CV->isSplat()) { in isOneValue()
193 if (CV->isSplat()) { in isMinSignedValue()
2866 bool ConstantDataVector::isSplat() const { in isSplat() function in ConstantDataVector
2880 return isSplat() ? getElementAsConstant(0) : nullptr; in getSplatValue()
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dlegalize_tf.cc455 !padding_attr.isSplat() || in ConvertTFMatrixDiagV2orV3()
462 !padding_attr.isSplat() || in ConvertTFMatrixDiagV2orV3()
Doptimize.cc389 if (fp_attr.isSplat()) { in FloatValueEquals()
1220 return elements_attr->isSplat(); in IsScalarizableSplatConstant()
/external/tensorflow/tensorflow/compiler/xla/mlir_hlo/lib/Dialect/mhlo/IR/
Dhlo_ops.cc224 if (attr.isSplat() && newType.getElementType().isInteger(/*width=*/1)) { in reshape()
5365 if (!cstAttr.isSplat()) { in matchAndRewrite()
5551 if (predicate.isSplat()) { in fold()
5636 if (!size || !size.isSplat()) return {}; in fold()
6706 if (lhsVal && lhsVal.isSplat()) { in fold()
6716 if (rhsVal && rhsVal.isSplat()) { in fold()
6736 if (lhsVal && lhsVal.isSplat()) { in fold()
6746 if (rhsVal && rhsVal.isSplat()) { in fold()
6771 if (lhsVal && lhsVal.isSplat()) { in fold()
6777 if (rhsVal && rhsVal.isSplat()) { in fold()
[all …]
/external/tensorflow/tensorflow/compiler/xla/mlir_hlo/lib/Dialect/gml_st/transforms/
Dbufferize_tiled_loop.cc226 if (sizeAttr.isSplat()) return operands.slice(*sizeIt * index, *sizeIt); in getVariadicOperands()
/external/tensorflow/tensorflow/dtensor/mlir/
Ddtensor_allreduce_sum_optimization.cc59 if (!attr || !attr.isSplat()) return false; in IsZeroConstant()
/external/tensorflow/tensorflow/compiler/xla/mlir_hlo/lib/Transforms/
Dbufferize.cc73 bool allSameElems = elementsAttr.isSplat(); in matchAndRewrite()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp2161 bool isSplat = true; in visitShuffleVectorInst() local
2217 isSplat = false; in visitShuffleVectorInst()
2226 if (isSplat || newMask == LHSMask || newMask == RHSMask || newMask == Mask) { in visitShuffleVectorInst()
/external/llvm/include/llvm/CodeGen/
DSelectionDAGNodes.h1248 bool isSplat() const { return isSplatMask(Mask, getValueType(0)); }
1250 assert(isSplat() && "Cannot get splat index for non-splat!");
/external/llvm/include/llvm/ADT/
DAPInt.h415 bool isSplat(unsigned SplatSizeInBits) const;
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DAPInt.h419 bool isSplat(unsigned SplatSizeInBits) const;
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DSelectionDAGNodes.h1528 bool isSplat() const { return isSplatMask(Mask, getValueType(0)); }
1531 assert(isSplat() && "Cannot get splat index for non-splat!");

123