Debian Codegraph @

clang/test/CIR/IR/stack-save-restore.cir

raw
1 // Test the CIR operations can parse and print correctly (roundtrip)
2
3 // RUN: cir-opt %s --verify-roundtrip | FileCheck %s
4
5 !u8i = !cir.int<u, 8>
6
7 module {
8 cir.func @stack_save_restore() {
9 %0 = cir.stacksave : !cir.ptr<!u8i>
10 cir.stackrestore %0 : !cir.ptr<!u8i>
11 cir.return
12 }
13 }
14
15 //CHECK: module {
16
17 //CHECK-NEXT: cir.func @stack_save_restore() {
18 //CHECK-NEXT: %0 = cir.stacksave : !cir.ptr<!u8i>
19 //CHECK-NEXT: cir.stackrestore %0 : !cir.ptr<!u8i>
20 //CHECK-NEXT: cir.return
21 //CHECK-NEXT: }
22
23 //CHECK-NEXT: }