1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00
llvm-mirror/test/CodeGen/AArch64/function-info-noredzone-present.ll
Jessica Paquette 25996ee31a MachineFunctionInfo for AArch64 in MIR
Starting with hasRedZone adding MachineFunctionInfo to be put in the YAML for MIR files.

Split out of: D78062

Based on implementation for MachineFunctionInfo for WebAssembly

Differential Revision: https://reviews.llvm.org/D78173

Patch by Andrew Litteken! (AndrewLitteken)
2020-04-17 15:16:59 -07:00

22 lines
567 B
LLVM

; RUN: llc -mtriple=aarch64--- --verify-machineinstrs -stop-before=finalize-isel -simplify-mir -o - < %s | FileCheck %s
; Here we check thatt the noredzone attribute is carried through the machine
; IR generation and is put in MachineFunctionInfo
define void @baz() {
entry:
; CHECK-LABEL: name: baz
; CHECK: machineFunctionInfo: {}
ret void
}
define void @bar() #0 {
entry:
; CHECK-LABEL: name: bar
; CHECK: machineFunctionInfo:
; CHECK-NEXT: hasRedZone: false
ret void
}
attributes #0 = { noredzone }