mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
31 lines
962 B
MLIR
31 lines
962 B
MLIR
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
// RUN: %root/bin/revng pipe import-descriptive-info %S/model.yml %s /dev/stdout | %root/bin/revng clift-opt | FileCheck %s
|
|
|
|
!void = !clift.void
|
|
!uint8_t = !clift.int<unsigned 1>
|
|
|
|
!g = !clift.func<"/type-definition/1003-CABIFunctionDefinition" : !void()>
|
|
|
|
// CHECK: !e = !clift.enum<"/type-definition/2003-EnumDefinition" as "e" : !uint8_t {
|
|
// CHECK: "/enum-entry/2003-EnumDefinition/0" as "e_0" : 0
|
|
// CHECK: }>
|
|
!e = !clift.enum<"/type-definition/2003-EnumDefinition" : !uint8_t {
|
|
"/enum-entry/2003-EnumDefinition/0" : 0
|
|
}>
|
|
|
|
module attributes { clift.module } {
|
|
// CHECK: clift.func @fun_0x40001003<!g>() -> !void
|
|
// CHECK: attributes {
|
|
// CHECK: handle = "/function/0x40001003:Code_x86_64"
|
|
// CHECK: }
|
|
clift.func @g<!g>() attributes {
|
|
handle = "/function/0x40001003:Code_x86_64"
|
|
} {
|
|
// CHECK: %0 = clift.local : !e
|
|
%0 = clift.local : !e
|
|
}
|
|
}
|