llvm-project/mlir/test/mlir-tblgen/bytecode-reserved.td
klensy a5985ca51d
[mlir][test] Fix filecheck annotation typos [2/n] (#93476)
Few more fixes
previous: https://github.com/llvm/llvm-project/pull/92897 pr
Issues from https://github.com/llvm/llvm-project/issues/93154 unfixed.

---------

Co-authored-by: klensy <nightouser@gmail.com>
2024-06-14 17:16:02 +02:00

29 lines
817 B
TableGen

// RUN: mlir-tblgen -gen-bytecode -bytecode-dialect=Test -I %S/../../include %s 2>&1 | FileCheck %s
include "mlir/IR/BuiltinDialectBytecode.td"
// CHECK: static ::mlir::Type readIntegerType
def TestDialectTypes : DialectTypes<"Test"> {
// CHECK: static Type readType
let elems = [
// CHECK: case 0:
// CHECK-NEXT: return readIntegerType(context, reader);
IntegerType,
// No case 1 generated as only reserved.
ReservedOrDead,
// CHECK-NEXT: case 2:
// CHECK-NEXT: return readIndexType(context, reader);
IndexType,
// CHECK-NEXT: case 3:
// CHECK-NEXT: return readBFloat16Type(context, reader);
BFloat16Type,
// No case 4 generated as only reserved.
ReservedOrDead,
// CHECK-NEXT: case 5:
// CHECK-NEXT: return readFloat16Type(context, reader);
Float16Type
];
}