1 // RUN: mlir-tblgen -gen-bytecode -bytecode-dialect=Test -I %S/../../include %s 2>&1 | FileCheck %s
3 include "mlir/IR/BuiltinDialectBytecode.td"
5 // CHECK: static ::mlir::Type readIntegerType
7 def TestDialectTypes : DialectTypes<"Test"> {
8 // CHECK: static Type readType
11 // CHECK-NEXT: return readIntegerType(context, reader);
13 // No case 1 generated as only reserved.
15 // CHECK-NEXT: case 2:
16 // CHECK-NEXT: return readIndexType(context, reader);
18 // CHECK-NEXT: case 3:
19 // CHECK-NEXT: return readBFloat16Type(context, reader);
21 // No case 4 generated as only reserved.
23 // CHECK-NEXT: case 5:
24 // CHECK-NEXT: return readFloat16Type(context, reader);