[Mlir-commits] [mlir] [mlir][docs] Fix return type in Type/Attr printer docs (PR #101958)
Benjamin Maxwell
llvmlistbot at llvm.org
Mon Aug 5 03:41:26 PDT 2024
https://github.com/MacDue created https://github.com/llvm/llvm-project/pull/101958
These return `void`, not `Type` or `Attribute` respectively.
>From 838c61bef4671ac3a1d79551be48fc8609904b90 Mon Sep 17 00:00:00 2001
From: Benjamin Maxwell <benjamin.maxwell at arm.com>
Date: Mon, 5 Aug 2024 10:36:15 +0000
Subject: [PATCH] [mlir][docs] Fix return type in Type/Attr printer docs
These return `void`, not `Type` or `Attribute` respectively.
---
mlir/docs/DefiningDialects/AttributesAndTypes.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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