mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-19 11:16:46 +00:00

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>
29 lines
817 B
TableGen
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
|
|
];
|
|
}
|
|
|