[Mlir-commits] [mlir] [MLIR][BUILD] Fix Unicode build issue on Windows. (PR #112300)

Jacques Pienaar llvmlistbot at llvm.org
Tue Oct 15 08:46:48 PDT 2024


================
@@ -320,25 +320,25 @@ LogicalResult markRanges(RewritePad &rewriteState, raw_ostream &os) {
   for (auto it : rewriteState.getOpDefs()) {
     auto [startOp, endOp] = getOpRange(it);
 
-    rewriteState.insertText(startOp, "《");
-    rewriteState.insertText(endOp, "》");
+    rewriteState.insertText(startOp, " <");
+    rewriteState.insertText(endOp, "> ");
 
     auto nameRange = getOpNameRange(it);
 
     if (isGeneric(it)) {
-      rewriteState.insertText(nameRange.Start, "〖");
-      rewriteState.insertText(nameRange.End, "〗");
+      rewriteState.insertText(nameRange.Start, " [");
+      rewriteState.insertText(nameRange.End, "] ");
     } else {
-      rewriteState.insertText(nameRange.Start, "〔");
-      rewriteState.insertText(nameRange.End, "〕");
+      rewriteState.insertText(nameRange.Start, " [");
----------------
jpienaar wrote:

Lets perhaps make this something like " !\[" and "\]! " - previously one could differentiate between generic or not form.

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


More information about the Mlir-commits mailing list