| /llvm-project-15.0.7/mlir/lib/IR/ |
| H A D | AttributeDetail.h | 47 : AttributeStorage(ty), isSplat(isSplat) {} in DenseElementsAttributeStorage() 49 bool isSplat; member 60 bool isSplat = false) 61 : type(type), data(data), hashCode(hashCode), isSplat(isSplat) {} in type() 73 bool isSplat; member 86 if (key.isSplat != isSplat) 88 if (isSplat) 213 bool isSplat = false) 214 : type(type), data(data), hashCode(hashCode), isSplat(isSplat) {} in type() 226 bool isSplat; member [all …]
|
| H A D | BuiltinAttributes.cpp | 1027 bool isSplat = true; in get() local 1030 isSplat &= values[i] == firstValue; in get() 1035 if (isSplat) { in get() 1195 bool DenseElementsAttr::isSplat() const { in isSplat() function in DenseElementsAttr 1289 assert(isSplat() && "expected a splat type"); in resizeSplat() 1390 bool isSplat = false; in getRaw() local 1391 bool isValid = isValidRawBuffer(type, data, isSplat); in getRaw() 1394 return Base::get(type.getContext(), type, data, isSplat); in getRaw() 1526 if (attr.isSplat()) { in mappingHelper() 1647 if (sparseIndices.isSplat()) { in getFlattenedSparseIndices() [all …]
|
| H A D | AsmPrinter.cpp | 1921 printDenseElementsAttrImpl(bool isSplat, ShapedType type, raw_ostream &os, in printDenseElementsAttrImpl() argument 1924 if (isSplat) in printDenseElementsAttrImpl() 1986 if (!attr.isSplat() && allowHex && in printDenseIntOrFPElementsAttr() 2013 printDenseElementsAttrImpl(attr.isSplat(), type, os, [&](unsigned index) { in printDenseIntOrFPElementsAttr() 2023 printDenseElementsAttrImpl(attr.isSplat(), type, os, [&](unsigned index) { in printDenseIntOrFPElementsAttr() 2035 printDenseElementsAttrImpl(attr.isSplat(), type, os, [&](unsigned index) { in printDenseIntOrFPElementsAttr() 2041 printDenseElementsAttrImpl(attr.isSplat(), type, os, [&](unsigned index) { in printDenseIntOrFPElementsAttr() 2051 printDenseElementsAttrImpl(attr.isSplat(), attr.getType(), os, printFn); in printDenseStringElementsAttr()
|
| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | BuiltinAttributeInterfaces.h | 39 : isContiguous(rhs.isContiguous), isSplat(rhs.isSplat) { in ElementsAttrIndexer() 46 : isContiguous(rhs.isContiguous), isSplat(rhs.isSplat) { in ElementsAttrIndexer() 61 static ElementsAttrIndexer nonContiguous(bool isSplat, IteratorT &&iterator) { in nonContiguous() 62 ElementsAttrIndexer indexer(/*isContiguous=*/false, isSplat); in nonContiguous() 72 static ElementsAttrIndexer contiguous(bool isSplat, const T *firstEltPtr) { in contiguous() 73 ElementsAttrIndexer indexer(/*isContiguous=*/true, isSplat); in contiguous() 81 if (isSplat) in at() 87 ElementsAttrIndexer(bool isContiguous, bool isSplat) in ElementsAttrIndexer() 88 : isContiguous(isContiguous), isSplat(isSplat), conState(nullptr) {} in ElementsAttrIndexer() 189 bool isSplat; member
|
| H A D | BuiltinAttributes.h | 46 DenseElementIndexedIteratorImpl(const char *data, bool isSplat, in DenseElementIndexedIteratorImpl() argument 55 bool isSplat = this->base.second; in getDataIndex() local 56 return isSplat ? 0 : this->index; in getDataIndex() 265 data, isSplat, dataIndex) {} 371 bool isSplat() const; 380 assert(isSplat() && "expected the attribute to be a splat"); 404 bool splat = isSplat(); 433 bool splat = isSplat(); 460 bool splat = isSplat(); 467 return ElementIterator<StringRef>(ptr, isSplat(), 0); [all …]
|
| H A D | BuiltinAttributeInterfaces.td | 154 }], "bool", "isSplat", (ins), /*defaultImplementation=*/[{}], [{ 241 /*isSplat=*/false, nullptr); 246 $_attr.isSplat(), &*valueIt); 255 $_attr.isSplat(), valueIt); 345 assert(isSplat() && "expected splat attribute");
|
| H A D | BuiltinAttributes.td | 253 using DenseElementsAttr::isSplat; 390 /* isSplat */(values.size() == 1)); 398 using DenseElementsAttr::isSplat;
|
| /llvm-project-15.0.7/mlir/unittests/IR/ |
| H A D | AttributeTest.cpp | 22 EXPECT_TRUE(splat.isSplat()); in testSplat() 41 EXPECT_TRUE(trueSplat.isSplat()); in TEST() 44 EXPECT_TRUE(falseSplat.isSplat()); in TEST() 67 EXPECT_TRUE(trueSplat.isSplat()); in TEST() 68 EXPECT_TRUE(falseSplat.isSplat()); in TEST() 89 EXPECT_FALSE(nonSplat.isSplat()); in TEST()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tosa/IR/ |
| H A D | TosaCanonicalizations.cpp | 95 if (!input.hasOneUse() && !inputAttr.isSplat()) in matchAndRewrite() 172 if (matchPattern(input1, m_Constant(&input1Attr)) && input1Attr.isSplat() && in matchAndRewrite() 182 if (matchPattern(input2, m_Constant(&input2Attr)) && input2Attr.isSplat() && in matchAndRewrite() 209 if (matchPattern(input1, m_Constant(&input1Attr)) && input1Attr.isSplat() && in matchAndRewrite() 225 if (matchPattern(input2, m_Constant(&input2Attr)) && input2Attr.isSplat() && in matchAndRewrite() 482 if (densePad.isSplat() && densePad.getSplatValue<APInt>().isZero()) { in fold() 510 if (!predicate.isSplat()) in fold() 533 if (input.isSplat()) in fold()
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | APIntTest.cpp | 1691 EXPECT_FALSE(A.isSplat(1)); in TEST() 1692 EXPECT_FALSE(A.isSplat(2)); in TEST() 1693 EXPECT_FALSE(A.isSplat(4)); in TEST() 1694 EXPECT_TRUE(A.isSplat(8)); in TEST() 1700 EXPECT_TRUE(B.isSplat(2)); in TEST() 1701 EXPECT_TRUE(B.isSplat(4)); in TEST() 1702 EXPECT_TRUE(B.isSplat(8)); in TEST() 1721 EXPECT_TRUE(E.isSplat(1)); in TEST() 1722 EXPECT_TRUE(E.isSplat(2)); in TEST() 1723 EXPECT_TRUE(E.isSplat(4)); in TEST() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Math/Transforms/ |
| H A D | AlgebraicSimplification.cpp | 57 if (isVector && vectorExponent.isSplat()) in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Quant/Utils/ |
| H A D | QuantizeUtils.cpp | 44 if (realFPElementsAttr.isSplat()) { in convertDenseFPElementsAttr()
|
| /llvm-project-15.0.7/mlir/lib/CAPI/IR/ |
| H A D | BuiltinAttributes.cpp | 349 bool isSplat = false; in mlirDenseElementsAttrRawBufferGet() local 351 isSplat)) in mlirDenseElementsAttrRawBufferGet() 512 return unwrap(attr).cast<DenseElementsAttr>().isSplat(); in mlirDenseElementsAttrIsSplat()
|
| /llvm-project-15.0.7/llvm/unittests/Analysis/ |
| H A D | VectorUtilsTest.cpp | 79 TEST_F(BasicTest, isSplat) { in TEST_F() argument
|
| /llvm-project-15.0.7/mlir/lib/Target/LLVMIR/ |
| H A D | ModuleTranslation.cpp | 213 if (denseElementsAttr.isSplat() && in convertDenseElementsAttr() 224 if (denseElementsAttr.isSplat()) in convertDenseElementsAttr()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineVectorOps.cpp | 2854 bool isSplat = true; in visitShuffleVectorInst() local 2910 isSplat = false; in visitShuffleVectorInst() 2919 if (isSplat || newMask == LHSMask || newMask == RHSMask || newMask == Mask) { in visitShuffleVectorInst()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Constants.h | 806 bool isSplat() const;
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 465 bool isSplat(unsigned SplatSizeInBits) const;
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | SelectionDAGNodes.h | 1533 bool isSplat() const { return isSplatMask(Mask, getValueType(0)); } 1536 assert(isSplat() && "Cannot get splat index for non-splat!");
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tensor/IR/ |
| H A D | TensorOps.cpp | 899 if (!attr || !attr.isSplat()) in matchAndRewrite() 1274 if (attr.isSplat()) in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/ |
| H A D | ElementwiseOpFusion.cpp | 1504 splatAttr.isSplat() && in matchAndRewrite()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Constants.cpp | 3247 bool ConstantDataVector::isSplat() const { in isSplat() function in ConstantDataVector 3257 return isSplat() ? getElementAsConstant(0) : nullptr; in getSplatValue()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/ |
| H A D | SLPVectorizer.cpp | 260 static bool isSplat(ArrayRef<Value *> VL) { in isSplat() function 3322 if (isSplat(Entry->Scalars)) in getNodeLabel() 4718 if (allConstant(VL) || isSplat(VL) || !AreAllSameInsts || in buildTree_rec() 5973 if (isSplat(VL)) { in getEntryCost() 6617 (allConstant(TE->Scalars) || isSplat(TE->Scalars) || in isFullyVectorizableTinyTree() 6729 !(isSplat(VectorizableTree[1]->Scalars) || in isTreeTinyAndNotFullyVectorizable()
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonISelLoweringHVX.cpp | 632 auto isSplat = [] (ArrayRef<SDValue> Values, SDValue &SplatV) { in buildHvxVectorReg() local 652 bool IsSplat = isSplat(Words, SplatV); in buildHvxVectorReg()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | APInt.cpp | 591 bool APInt::isSplat(unsigned SplatSizeInBits) const { in isSplat() function in APInt
|