[Mlir-commits] [mlir] [MLIR][IRDL] Instantiate "." in IRDL-defined names as nested namespaces (PR #207035)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Sep 14 07:53:18 PDT 2026


================
@@ -78,24 +78,31 @@ static llvm::LogicalResult isValidName(llvm::StringRef in, mlir::Operation *loc,
     return loc->emitError("name of ") << label << " is empty";
 
   bool allowUnderscore = false;
+  auto prev = '\0';
   for (auto &elem : in) {
     if (elem == '_') {
       if (!allowUnderscore)
----------------
PragmaTwice wrote:

It seems can be just `prev == '_'` here?

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


More information about the Mlir-commits mailing list