blob: a87a394059c24a78b7064155043b264b41ebe1b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//===-- structs.td - StructsGen test definition file -------*- tablegen -*-===//
//
// Part of the MLIR Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
include "mlir/IR/OpBase.td"
def Test_Dialect : Dialect {
let name = "test";
}
def Test_Struct : StructAttr<"TestStruct", Test_Dialect, [
StructFieldAttr<"sample_integer", I32Attr>,
StructFieldAttr<"sample_float", F32Attr>,
StructFieldAttr<"sample_elements", I32ElementsAttr>] > {
let description = "Structure for test data";
}
|