view mlir/unittests/TableGen/structs.td @ 157:5fe240291530

mod use AST/PrettyDeclStackTrace.h
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Thu, 12 Mar 2020 15:06:29 +0900
parents 1d019706d866
children 0572611fdcc8
line wrap: on
line source

//===-- structs.td - StructsGen test definition file -------*- tablegen -*-===//
//
// Part of the LLVM 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";
}