Skip to content

Commit

Permalink
delete the base class
Browse files Browse the repository at this point in the history
  • Loading branch information
qedawkins committed Feb 5, 2025
1 parent bb525ad commit 17814ff
Showing 1 changed file with 0 additions and 46 deletions.
46 changes: 0 additions & 46 deletions compiler/src/iree/compiler/Codegen/Dialect/GPU/IR/IREEGPUAttrs.td
Original file line number Diff line number Diff line change
Expand Up @@ -114,52 +114,6 @@ def IREEGPU_DotProductOpsAttr : EnumAttr<
let assemblyFormat = "$value";
}

//===----------------------------------------------------------------------===//
// Base MMA vector layout
//===----------------------------------------------------------------------===//

class IREEGPU_MmaVectorLayoutAttr<string attrname, string mmaintrinsic> :
AttrDef<IREEGPU_Dialect, attrname, [
DeclareAttrInterfaceMethods<IREEGPU_MmaInterfaceAttr, [
"getABCElementTypes",
"getABCVectorTypes",
"getMNKShape",
"getSubgroupSize",
"getMmaScope",
"buildMmaOperation",
"populateOperandOffsetsSizesStrides",
]>
]> {
let cppNamespace = "::mlir::iree_compiler::IREE::GPU";

string baseDescription = [{
Attribute describing a particular shape of matrix-multiply and accumulate
instruction. Abstractly, all attributes of this type represent the following
unit of arithmetic for matrices A, B, and C.

```
C += A x B
```

Where the shape of matrix `A` is `[m, k]`, `B` is `[k, n]`, and
`C` is `[m, n]`. This intentionally leaves the layout information abstract
and uses interface methods to materialize layout information only when
needed. The shape of the mma intrinsic is stored explicitly here as that
information is queried frequently.

The element types for this particular mma intrinsic are |aType|, |bType|,
and |cType| for matrices `A`, `B`, and `C` respectively.

######

}];


let parameters = (ins
mmaintrinsic:$intrinsic
);
}

//===----------------------------------------------------------------------===//
// MMA intrinsic
//===----------------------------------------------------------------------===//
Expand Down

0 comments on commit 17814ff

Please sign in to comment.