[Mlir-commits] [mlir] 6352a58 - [mlir][IR] Fix typo in code example of DenseTypedElementsAttr (#204739)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Jun 19 00:47:45 PDT 2026


Author: Matthias Springer
Date: 2026-06-19T07:47:40Z
New Revision: 6352a584c409a4ad44804f06e06260be587866d3

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

LOG: [mlir][IR] Fix typo in code example of DenseTypedElementsAttr (#204739)

There was a typo in the type-first syntax code example.

Added: 
    

Modified: 
    mlir/include/mlir/IR/BuiltinAttributes.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/IR/BuiltinAttributes.td b/mlir/include/mlir/IR/BuiltinAttributes.td
index 6165a24c0d34f..f238137734d56 100644
--- a/mlir/include/mlir/IR/BuiltinAttributes.td
+++ b/mlir/include/mlir/IR/BuiltinAttributes.td
@@ -271,7 +271,7 @@ def Builtin_DenseTypedElementsAttr : Builtin_Attr<
     dense<tensor<2xi32> : 10 : i32>
 
     // Type-first syntax: A tensor of 2 float32 elements.
-    dense<tensor<2xf32> : [10.0, 11.0]>
+    dense<tensor<2xf32> : [10.0 : f32, 11.0 : f32]>
     ```
 
     Note: The literal-first syntax is supported only for complex, float, index,


        


More information about the Mlir-commits mailing list