Files
2026-06-03 13:59:53 +02:00

28 lines
704 B
MLIR

//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
// RUN: %root/bin/revng clift-opt %s --optimize-expressions | FileCheck %s
!void = !clift.void
!int32_t = !clift.int<signed 4>
!int32_t$ptr = !clift.ptr<8 to !int32_t>
!f = !clift.func<"/model-type/1001" : !void(!int32_t)>
module attributes {clift.module} {
clift.func @f<!f>(%arg0 : !int32_t) -> !void {
// CHECK: clift.expr {
clift.expr {
// CHECK-NOT: clift.addressof
%0 = clift.addressof %arg0 : !int32_t$ptr
// CHECK-NOT: clift.indirection
%1 = clift.indirection %0 : !int32_t$ptr
// CHECK: clift.yield %arg0
clift.yield %1 : !int32_t
}
// CHECK: }
}
}