File tree Expand file tree Collapse file tree 7 files changed +7
-7
lines changed
test/vast/Dialect/HighLevel Expand file tree Collapse file tree 7 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
22// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -
33
4- // CHECK: hl.enum " color" : !hl.int< unsigned > {
4+ // CHECK: hl.enum @ color : !hl.int< unsigned > {
55// CHECK: hl.enum.const @RED = #core.integer<0> : !hl.int
66// CHECK: hl.enum.const @GREEN = #core.integer<1> : !hl.int
77// CHECK: hl.enum.const @BLUE = #core.integer<2> : !hl.int
Original file line number Diff line number Diff line change 44int puts (const char * str );
55
66int main () {
7- // CHECK: hl.enum " color" : !hl.int< unsigned > {
7+ // CHECK: hl.enum @ color : !hl.int< unsigned > {
88 // CHECK: hl.enum.const @RED = #core.integer<0> : !hl.int
99 // CHECK: hl.enum.const @GREEN = #core.integer<1> : !hl.int
1010 // CHECK: hl.enum.const @BLUE = #core.integer<2> : !hl.int
Original file line number Diff line number Diff line change 11// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
22// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -
33
4- // CHECK: hl.enum " Foo" : !hl.int< unsigned >
4+ // CHECK: hl.enum @ Foo : !hl.int< unsigned >
55// CHECK: hl.enum.const @A = #core.integer<0> : !hl.int
66// CHECK: hl.enum.const @B = #core.integer<1> : !hl.int
77// CHECK: hl.enum.const @C = #core.integer<10> : !hl.int init
Original file line number Diff line number Diff line change 11// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
22// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -
33
4- // CHECK: hl.enum " color" : !hl.int< unsigned >
4+ // CHECK: hl.enum @ color : !hl.int< unsigned >
55enum color { RED , GREEN , BLUE };
66// CHECK: hl.var @r : !hl.lvalue<!hl.elaborated<!hl.enum<"color">>>
77// CHECK: hl.enumref @RED : !hl.int
Original file line number Diff line number Diff line change 33
44// CHECK: hl.struct "Element"
55// CHECK: hl.field "z" : !hl.int
6- // CHECK: hl.enum " State" : !hl.int< unsigned >
6+ // CHECK: hl.enum @ State : !hl.int< unsigned >
77// CHECK: hl.enum.const @SOLID
88// CHECK: hl.enum.const @LIQUID
99// CHECK: hl.enum.const @GAS
Original file line number Diff line number Diff line change 11// RUN: %vast-front -vast-emit-mlir=hl -o - %s | %file-check %s
22// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -
33
4- // CHECK: hl.enum " kobj_ns_type" : !hl.int< unsigned >
4+ // CHECK: hl.enum @ kobj_ns_type : !hl.int< unsigned >
55// CHECK: hl.enum.const @KOBJ_NS_TYPE_NONE
66// CHECK: hl.enum.const @KOBJ_NS_TYPE_NET
77// CHECK: hl.enum.const @KOBJ_NS_TYPES
Original file line number Diff line number Diff line change 11// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
22// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -
33
4- // CHECK: hl.enum "e" : !hl.int< unsigned >
4+ // CHECK: hl.enum @e : !hl.int< unsigned >
55enum e { a , b , c };
66
77// CHECK: hl.var @v : !hl.lvalue<!hl.elaborated<!hl.enum<"e">>>
You can’t perform that action at this time.
0 commit comments