[Mlir-commits] [mlir] [mlir] Add optional layout attribute to	VectorType (PR #71916)
    Thomas Raoux 
    llvmlistbot at llvm.org
       
    Fri Nov 10 09:40:48 PST 2023
    
    
  
================
@@ -1050,6 +1052,14 @@ def Builtin_Vector : Builtin_Type<"Vector", [ShapedTypeInterface], "Type"> {
     declarations, `vector<0x42xi32>` is invalid because it is interpreted as a
     2D vector with shape `(0, 42)` and zero shapes are not allowed.
 
+    ##### Layout
+
+    A vector may optionally have a layout that indicates how indices of
+    the vector are transformed to indices of the vector fragments that
+    are held by individual threads in a SIMT execution model. Such layouts
+    are common in a wide variety of GPU matrix multiplication instructions.
+    The layout can be any attribute that implements `VectorLayoutAttrInterface`.
----------------
ThomasRaoux wrote:
I think the description should probably be more generic than that to allow for more usage of the layout. (not only GPU and mapping to SIMT registers)
https://github.com/llvm/llvm-project/pull/71916
    
    
More information about the Mlir-commits
mailing list