[PATCH] D121072: [X86][Experiment] Mangle global variable for inline assembly

Phoebe Wang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 6 07:16:51 PST 2022


pengfei added inline comments.


================
Comment at: clang/lib/CodeGen/CGStmt.cpp:2555-2556
+        M.getNameWithPrefix(MangleName, GV, /*CannotUsePrivateLabel=*/true);
+        AsmString.replace(AsmString.find("$" + std::to_string(I)), 2,
+                          MangleName.c_str());
+      }
----------------
I'll use regex to match precisely and replace all.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121072/new/

https://reviews.llvm.org/D121072



More information about the cfe-commits mailing list