projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06b0db5
)
Add an example of accessing the impl storage to the 'DefiningAttributesAndTypes...
author
River Riddle
<riverriddle@google.com>
Wed, 29 May 2019 20:23:47 +0000
(13:23 -0700)
committer
Mehdi Amini
<joker.eph@gmail.com>
Sun, 2 Jun 2019 03:07:51 +0000
(20:07 -0700)
--
PiperOrigin-RevId:
250553898
mlir/g3doc/DefiningAttributesAndTypes.md
patch
|
blob
|
history
diff --git
a/mlir/g3doc/DefiningAttributesAndTypes.md
b/mlir/g3doc/DefiningAttributesAndTypes.md
index
22dec18
..
82399e3
100644
(file)
--- a/
mlir/g3doc/DefiningAttributesAndTypes.md
+++ b/
mlir/g3doc/DefiningAttributesAndTypes.md
@@
-232,6
+232,18
@@
public:
}
return success();
}
+
+ /// Return the parameter value.
+ unsigned getParameter() {
+ // 'getImpl' returns a pointer to our internal storage instance.
+ return getImpl()->nonZeroParam;
+ }
+
+ /// Return the integer parameter type.
+ IntegerType getParameterType() {
+ // 'getImpl' returns a pointer to our internal storage instance.
+ return getImpl()->integerType;
+ }
};
```