mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
ac798ed144
- Adding changes to support comments on outlined functions with outlining for the conditions through which it was outlined (e.g. Thunks, Tail calls) - Adapts the emitFunctionHeader to print out a comment next to the header if the target specifies it based on information in MachineFunctionInfo - Adds mir test for function annotiation Differential Revision: https://reviews.llvm.org/D78062
24 lines
579 B
LLVM
24 lines
579 B
LLVM
; RUN: llc -verify-machineinstrs -enable-machine-outliner -mtriple=aarch64-linux-gnu < %s | FileCheck %s
|
|
|
|
; CHECK-LABEL: OUTLINED_FUNCTION_0:
|
|
; CHECK-SAME: // @OUTLINED_FUNCTION_0 Tail Call
|
|
; CHECK: mov w0, #1
|
|
; CHECK-NEXT: mov w1, #2
|
|
; CHECK-NEXT: mov w2, #3
|
|
; CHECK-NEXT: mov w3, #4
|
|
; CHECK-NEXT: b z
|
|
|
|
define void @a() {
|
|
entry:
|
|
tail call void @z(i32 1, i32 2, i32 3, i32 4)
|
|
ret void
|
|
}
|
|
|
|
declare void @z(i32, i32, i32, i32)
|
|
|
|
define dso_local void @b(i32* nocapture readnone %p) {
|
|
entry:
|
|
tail call void @z(i32 1, i32 2, i32 3, i32 4)
|
|
ret void
|
|
}
|