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:
ebdf00b
)
[MLIR] Add doc for Attribute print `elideType` (NFC)
author
Jeff Niu
<jeff@modular.com>
Mon, 26 Sep 2022 17:21:09 +0000
(10:21 -0700)
committer
Jeff Niu
<jeff@modular.com>
Mon, 26 Sep 2022 17:21:41 +0000
(10:21 -0700)
mlir/include/mlir/IR/Attributes.h
patch
|
blob
|
history
diff --git
a/mlir/include/mlir/IR/Attributes.h
b/mlir/include/mlir/IR/Attributes.h
index
6200fd1
..
2e74bcc
100644
(file)
--- a/
mlir/include/mlir/IR/Attributes.h
+++ b/
mlir/include/mlir/IR/Attributes.h
@@
-75,7
+75,8
@@
public:
return impl->getAbstractAttribute().getDialect();
}
- /// Print the attribute.
+ /// Print the attribute. If `elideType` is set, the attribute is printed
+ /// without a trailing colon type if it has one.
void print(raw_ostream &os, bool elideType = false) const;
void print(raw_ostream &os, AsmState &state, bool elideType = false) const;
void dump() const;