[llvm] [polly] [TableGen] Refactor Intrinsic handling in TableGen (PR #103980)

Jakub Kuderski via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 15 08:39:17 PDT 2024


================
@@ -143,11 +144,11 @@ static void replace(std::string &str, StringRef find, StringRef replace) {
 }
 
 static void makeIslCompatible(std::string &str) {
-  replace(str, ".", "_");
-  replace(str, "\"", "_");
-  replace(str, " ", "__");
-  replace(str, "=>", "TO");
-  replace(str, "+", "_");
+  replace(str, '.', '_');
----------------
kuhar wrote:

The reason is probably that the one in stlextras doesn't require type conversions while the static one above needs to convert to StringRef

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


More information about the llvm-commits mailing list