mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
25996ee31a
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)
22 lines
567 B
LLVM
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 }
|