Searched refs:end_attr (Results 1 – 3 of 3) sorted by relevance
630 auto end_attr = DenseElementsAttr::get<int32_t>(type, padded_end); in RewriteEllipsisMask() local632 rewriter.create<arith::ConstantOp>(op->getLoc(), type, end_attr); in RewriteEllipsisMask()687 auto end_attr = strided_slice_op.end(); in matchAndRewrite() local691 auto end_attr_type = end_attr.getType().dyn_cast<RankedTensorType>(); in matchAndRewrite()703 if (!end_attr_type || !matchPattern(end_attr, m_Constant(&end_elem_attr))) { in matchAndRewrite()
2055 DenseIntElementsAttr begin_attr, end_attr, strides_attr; in fold() local2057 !matchPattern(end(), m_Constant(&end_attr)) || in fold()2059 begin_attr.getNumElements() != 1 || end_attr.getNumElements() != 1 || in fold()2075 int64_t end_int = end_attr.getValues<APInt>()[0].getSExtValue(); in fold()
1630 ElementsAttr end_attr = end_op->getAttrOfType<ElementsAttr>("value"); in matchAndRewrite() local1668 int e = end_attr.getElementType().isInteger(32) in matchAndRewrite()1669 ? end_attr.getValues<int32_t>()[j] in matchAndRewrite()1670 : end_attr.getValues<int64_t>()[j]; in matchAndRewrite()