mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +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
52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
# RUN: llc -mtriple=aarch64--- -start-before=machine-outliner -enable-machine-outliner %s -o - | FileCheck %s
|
|
|
|
# Check that a non tail called or thunk function is annotated properly with
|
|
# only "Function"
|
|
|
|
# CHECK-LABEL: OUTLINED_FUNCTION_0:
|
|
# CHECK-SAME: // @OUTLINED_FUNCTION_0 Function
|
|
# CHECK: mov w0, #1
|
|
# CHECK-NEXT: mov w1, #2
|
|
# CHECK-NEXT: mov w2, #3
|
|
# CHECK-NEXT: mov w3, #4
|
|
# CHECK-NEXT: ret
|
|
|
|
---
|
|
name: a
|
|
alignment: 4
|
|
tracksRegLiveness: true
|
|
machineFunctionInfo:
|
|
hasRedZone: false
|
|
body: |
|
|
bb.0:
|
|
frame-setup CFI_INSTRUCTION def_cfa_offset 32
|
|
frame-setup CFI_INSTRUCTION offset $w19, -8
|
|
frame-setup CFI_INSTRUCTION offset $w30, -16
|
|
$w0 = MOVZWi 1, 0
|
|
$w1 = MOVZWi 2, 0
|
|
$w2 = MOVZWi 3, 0
|
|
$w3 = MOVZWi 4, 0
|
|
renamable $w19 = MOVZWi 2, 0
|
|
RET undef $lr
|
|
|
|
...
|
|
---
|
|
name: b
|
|
alignment: 4
|
|
tracksRegLiveness: true
|
|
machineFunctionInfo:
|
|
hasRedZone: false
|
|
body: |
|
|
bb.0:
|
|
frame-setup CFI_INSTRUCTION def_cfa_offset 32
|
|
frame-setup CFI_INSTRUCTION offset $w19, -8
|
|
frame-setup CFI_INSTRUCTION offset $w30, -16
|
|
$w0 = MOVZWi 1, 0
|
|
$w1 = MOVZWi 2, 0
|
|
$w2 = MOVZWi 3, 0
|
|
$w3 = MOVZWi 4, 0
|
|
renamable $w19 = MOVZWi 1, 0
|
|
RET undef $lr
|
|
|
|
...
|