[Mlir-commits] [mlir] [mlir][sparse] Print new syntax (PR #68130)

Aart Bik llvmlistbot at llvm.org
Tue Oct 3 16:23:45 PDT 2023


================
@@ -472,8 +472,11 @@ class SparseInsertGenerator
     llvm::raw_svector_ostream nameOstream(nameBuffer);
     nameOstream << kInsertFuncNamePrefix;
     const Level lvlRank = stt.getLvlRank();
-    for (Level l = 0; l < lvlRank; l++)
-      nameOstream << toMLIRString(stt.getLvlType(l)) << "_";
+    for (Level l = 0; l < lvlRank; l++) {
+      std::string lvlType = toMLIRString(stt.getLvlType(l));
+      replaceWithUnderscore(lvlType);
----------------
aartbik wrote:

std::string::replace ?

https://github.com/llvm/llvm-project/pull/68130


More information about the Mlir-commits mailing list