[MLIR] Add doc for Attribute print `elideType` (NFC)
authorJeff Niu <jeff@modular.com>
Mon, 26 Sep 2022 17:21:09 +0000 (10:21 -0700)
committerJeff Niu <jeff@modular.com>
Mon, 26 Sep 2022 17:21:41 +0000 (10:21 -0700)
mlir/include/mlir/IR/Attributes.h

index 6200fd1..2e74bcc 100644 (file)
@@ -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;