[Mlir-commits] [llvm] [mlir] [NFC][TableGen] Use `Twine` for Name argument in CodeGenHelpers (PR #163581)
Rahul Joshi
llvmlistbot at llvm.org
Thu Oct 16 12:51:39 PDT 2025
================
@@ -77,9 +77,11 @@ class NamespaceEmitter {
// }
//
// and cannot use "namespace ::mlir::toy".
- static StringRef trim(StringRef Name) {
- Name.consume_front("::");
- return Name;
+ static std::string trim(const Twine &NameTwine) {
----------------
jurahul wrote:
We can. But this version also does not serialize twice, right?
https://github.com/llvm/llvm-project/pull/163581
More information about the Mlir-commits
mailing list