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

Aart Bik via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 3 16:23:48 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 libcxx-commits mailing list