1# RUN: llc -mtriple=x86_64-unknown-unknown -run-pass=prologepilog -pass-remarks-output=%t -pass-remarks-analysis=prologepilog -o /dev/null %s 2>&1 2# RUN: cat %t | FileCheck %s 3--- | 4 5 define void @fun0() noredzone { ret void } 6 define void @fun1() noredzone { ret void } 7 define void @fun2() noredzone { ret void } 8 9... 10--- 11name: fun0 12stack: 13 - { id: 0, type: default, offset: 0, size: 8, alignment: 4 } 14# --- !Analysis 15# CHECK: Pass: prologepilog 16# CHECK-NEXT: Name: StackSize 17# CHECK-NEXT: Function: fun0 18# CHECK-NEXT: Args: 19# CHECK-NEXT: - NumStackBytes: '8' 20# CHECK-NEXT: - String: ' stack bytes in function' 21# CHECK-NEXT: ... 22 23constants: 24body: | 25 bb.0: 26 RETQ 27 28... 29--- 30name: fun1 31stack: 32 - { id: 0, type: default, offset: 0, size: 19, alignment: 4 } 33# --- !Analysis 34# CHECK: Pass: prologepilog 35# CHECK-NEXT: Name: StackSize 36# CHECK-NEXT: Function: fun1 37# CHECK-NEXT: Args: 38# CHECK-NEXT: - NumStackBytes: '20' 39# CHECK-NEXT: - String: ' stack bytes in function' 40# CHECK-NEXT: ... 41constants: 42body: | 43 bb.0: 44 RETQ 45 46... 47--- 48name: fun2 49stack: 50 - { id: 0, type: default, offset: 0, size: 1024, alignment: 8 } 51# --- !Analysis 52# CHECK: Pass: prologepilog 53# CHECK-NEXT: Name: StackSize 54# CHECK-NEXT: Function: fun2 55# CHECK-NEXT: Args: 56# CHECK-NEXT: - NumStackBytes: '1024' 57# CHECK-NEXT: - String: ' stack bytes in function' 58# CHECK-NEXT: ... 59constants: 60body: | 61 bb.0: 62 RETQ 63 64... 65