[Mlir-commits] [mlir] [mlir][docs] Use APIntParameter instead of APInt in AttributesAndTypes.md (PR #151315)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Jul 30 04:44:27 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Chaitanya Koparkar (ckoparkar)

<details>
<summary>Changes</summary>

Fixes 151314.

/cc @<!-- -->Jezurko 

---
Full diff: https://github.com/llvm/llvm-project/pull/151315.diff


1 Files Affected:

- (modified) mlir/docs/DefiningDialects/AttributesAndTypes.md (+1-1) 


``````````diff
diff --git a/mlir/docs/DefiningDialects/AttributesAndTypes.md b/mlir/docs/DefiningDialects/AttributesAndTypes.md
index 022bdad9fe512f..b99186391d710a 100644
--- a/mlir/docs/DefiningDialects/AttributesAndTypes.md
+++ b/mlir/docs/DefiningDialects/AttributesAndTypes.md
@@ -136,7 +136,7 @@ def My_IntegerAttr : MyDialect_Attr<"Integer", "int"> {
   /// Here we've defined two parameters, one is a "self" type parameter, and the
   /// other is the integer value of the attribute. The self type parameter is
   /// specially handled by the assembly format.
-  let parameters = (ins AttributeSelfTypeParameter<"">:$type, "APInt":$value);
+  let parameters = (ins AttributeSelfTypeParameter<"">:$type, APIntParameter<"">:$value);
 
   /// Here we've defined a custom builder for the type, that removes the need to pass
   /// in an MLIRContext instance; as it can be infered from the `type`.

``````````

</details>


https://github.com/llvm/llvm-project/pull/151315


More information about the Mlir-commits mailing list