[mlir][sparse] Use DLT in the mangled function names for insertion.

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D140484
This commit is contained in:
bixia1
2022-12-27 12:28:29 -08:00
parent 4aa77690b9
commit 840e2ba336
5 changed files with 57 additions and 32 deletions

View File

@@ -174,7 +174,7 @@ void SparseTensorEncodingAttr::print(AsmPrinter &printer) const {
// Print the struct-like storage in dictionary fashion.
printer << "<{ dimLevelType = [ ";
for (unsigned i = 0, e = getDimLevelType().size(); i < e; i++) {
printer << toMLIRString(getDimLevelType()[i]);
printer << "\"" << toMLIRString(getDimLevelType()[i]) << "\"";
if (i != e - 1)
printer << ", ";
}