[Mlir-commits] [mlir] f57a3a0 - [mlir][docs] Fix return type in Type/Attr printer docs (#101958)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Aug 6 01:29:12 PDT 2024


Author: Benjamin Maxwell
Date: 2024-08-06T09:29:09+01:00
New Revision: f57a3a0d9d4817d2ca7c3152dda331a796bebe13

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

LOG: [mlir][docs] Fix return type in Type/Attr printer docs (#101958)

These return `void`, not `Type` or `Attribute` respectively.

Added: 
    

Modified: 
    mlir/docs/DefiningDialects/AttributesAndTypes.md

Removed: 
    


################################################################################
diff  --git a/mlir/docs/DefiningDialects/AttributesAndTypes.md b/mlir/docs/DefiningDialects/AttributesAndTypes.md
index d6941c0b681f8..1430edd2ffb02 100644
--- a/mlir/docs/DefiningDialects/AttributesAndTypes.md
+++ b/mlir/docs/DefiningDialects/AttributesAndTypes.md
@@ -551,13 +551,13 @@ For Types, these methods will have the form:
 
 - `static Type MyType::parse(AsmParser &parser)`
 
-- `Type MyType::print(AsmPrinter &p) const`
+- `void MyType::print(AsmPrinter &p) const`
 
 For Attributes, these methods will have the form:
 
 - `static Attribute MyAttr::parse(AsmParser &parser, Type attrType)`
 
-- `Attribute MyAttr::print(AsmPrinter &p) const`
+- `void MyAttr::print(AsmPrinter &p) const`
 
 #### Using `assemblyFormat`
 


        


More information about the Mlir-commits mailing list