llvm/llvm/test/CodeGen/AArch64/machine-outliner-function-annotate.mir

# 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

...