We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcfcabb commit 6265451Copy full SHA for 6265451
mlir/include/mlir/TableGen/Class.h
@@ -71,7 +71,9 @@ class MethodParameter {
71
StringRef getName() const { return name; }
72
/// Returns true if the parameter has a default value.
73
bool hasDefaultValue() const { return !defaultValue.empty(); }
74
+ /// Get the default value.
75
StringRef getDefaultValue() const { return defaultValue; }
76
+ /// Returns true if the parameter is optional.
77
bool isOptional() const { return optional; }
78
79
private:
0 commit comments