[Mlir-commits] [mlir] [mlir][ODS] Add `OptionalTypesMatchWith` and remove a custom assemblyFormat (PR #68876)
Cullen Rhodes
llvmlistbot at llvm.org
Mon Oct 16 00:15:32 PDT 2023
================
@@ -66,4 +66,28 @@ class CArg<string ty, string value = ""> {
string defaultValue = value;
}
+// Helper which makes the first letter of a string uppercase.
+// e.g. cat -> Cat
+class firstCharToUpper<string str>
+{
+ string ret = !if(!gt(!size(str), 0),
+ !toupper(!substr(str, 0, 1)) # !substr(str, 1),
+ "");
+}
+
+class _snakeCaseHeper<string str> {
----------------
c-rhodes wrote:
spelling
```suggestion
class _snakeCaseHelper<string str> {
```
https://github.com/llvm/llvm-project/pull/68876
More information about the Mlir-commits
mailing list