Lines Matching refs:enc

133 static unsigned perm(const SparseTensorEncodingAttr &enc, unsigned d) {  in perm()  argument
134 if (enc) { in perm()
135 auto order = enc.getDimOrdering(); in perm()
145 static Dim toDim(const SparseTensorEncodingAttr &enc, unsigned d) { in toDim() argument
146 if (enc) { in toDim()
147 SparseTensorEncodingAttr::DimLevelType tp = enc.getDimLevelType()[d]; in toDim()
194 auto enc = getSparseTensorEncoding(t->get().getType()); in findSparseAnnotations() local
195 if (enc) in findSparseAnnotations()
200 AffineExpr a = map.getResult(perm(enc, d)); in findSparseAnnotations()
201 if (!findAffine(merger, tensor, a, toDim(enc, d), !enc)) in findSparseAnnotations()
272 auto enc = getSparseTensorEncoding(t->get().getType()); in computeIterationGraph() local
275 if (!(mask & SortMask::kIncludeDense) && !enc) in computeIterationGraph()
282 AffineExpr f = map.getResult(perm(enc, d - 1)); in computeIterationGraph()
283 AffineExpr t = map.getResult(perm(enc, d)); in computeIterationGraph()
328 auto enc = getSparseTensorEncoding(lhs->get().getType()); in isAdmissableTensorExp() local
331 if (!enc) in isAdmissableTensorExp()
506 auto enc = getSparseTensorEncoding(t->get().getType()); in genBuffers() local
510 AffineExpr a = map.getResult(perm(enc, d)); in genBuffers()
518 MemRefType::get(dynShape, getPointerOverheadType(builder, enc)); in genBuffers()
520 MemRefType::get(dynShape, getIndexOverheadType(builder, enc)); in genBuffers()
529 unsigned p = perm(enc, d); in genBuffers()
541 if (!enc) { in genBuffers()
686 auto enc = getSparseTensorEncoding(t->get().getType()); in genIndex() local
687 AffineExpr a = map.getResult(perm(enc, map.getNumResults() - 1)); in genIndex()
699 auto enc = getSparseTensorEncoding(t->get().getType()); in genSubscript() local
701 if (enc) { in genSubscript()
704 AffineExpr a = map.getResult(perm(enc, rank - 1)); in genSubscript()
711 AffineExpr a = map.getResult(perm(enc, d)); in genSubscript()
1003 auto enc = getSparseTensorEncoding(t->get().getType()); in genInvariants() local
1005 AffineExpr a = map.getResult(perm(enc, d)); in genInvariants()