[Mlir-commits] [mlir] [MLIR][IRDL] Relax the restrictions on IRDL-defined names (PR #187911)
Rolf Morel
llvmlistbot at llvm.org
Sun Mar 22 16:58:01 PDT 2026
================
@@ -65,16 +65,46 @@ static std::string joinNameList(llvm::ArrayRef<std::string> names) {
return nameArray;
}
+// Convert a dialect/operation/type/attribute name to a valid identifier in C++.
+// The conversion is done by removing dots, underscores and dollar signs and
+// capitalizing the following character. For example, `name.with.dots` will be
+// converted to `nameWithDots` with `capitalizeFirst = false`.
----------------
rolfmorel wrote:
```suggestion
// converted to `nameWithDots` when `capitalizeFirst = false`.
```
https://github.com/llvm/llvm-project/pull/187911
More information about the Mlir-commits
mailing list