[Mlir-commits] [mlir] 4e214af - [MLIR] Add doc for Attribute print `elideType` (NFC)

Jeff Niu llvmlistbot at llvm.org
Mon Sep 26 10:21:56 PDT 2022


Author: Jeff Niu
Date: 2022-09-26T10:21:41-07:00
New Revision: 4e214af3e22764ed3e38f7d63da50325a8300052

URL: https://github.com/llvm/llvm-project/commit/4e214af3e22764ed3e38f7d63da50325a8300052
DIFF: https://github.com/llvm/llvm-project/commit/4e214af3e22764ed3e38f7d63da50325a8300052.diff

LOG: [MLIR] Add doc for Attribute print `elideType` (NFC)

Added: 
    

Modified: 
    mlir/include/mlir/IR/Attributes.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/IR/Attributes.h b/mlir/include/mlir/IR/Attributes.h
index 6200fd1c921e..2e74bcc28c55 100644
--- a/mlir/include/mlir/IR/Attributes.h
+++ b/mlir/include/mlir/IR/Attributes.h
@@ -75,7 +75,8 @@ class Attribute {
     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;


        


More information about the Mlir-commits mailing list