CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
91 lines
3.4 KiB
YAML
91 lines
3.4 KiB
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -mtriple=x86_64-apple-unknown -run-pass=machine-outliner -verify-machineinstrs %s -o - | FileCheck %s
|
|
|
|
# Outlining CFI instructions is unsafe if we cannot outline all of the CFI
|
|
# instructions from a function. This shows that we choose not to outline the
|
|
# CFI instructions since function foo has a CFI Instruction that would not
|
|
# be caught.
|
|
|
|
--- |
|
|
define void @foo() #0 { ret void }
|
|
define void @bar() #0 { ret void }
|
|
define void @baz() #0 { ret void }
|
|
attributes #0 = { noredzone }
|
|
...
|
|
---
|
|
name: foo
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
; CHECK-LABEL: name: foo
|
|
; CHECK: CFI_INSTRUCTION def_cfa_offset 16
|
|
; CHECK: CFI_INSTRUCTION offset $rbp, -16
|
|
; CHECK: CFI_INSTRUCTION def_cfa_register $rbp
|
|
; CHECK: CALL64pcrel32 @OUTLINED_FUNCTION_1, implicit $rsp, implicit $ssp, implicit-def $eax, implicit-def $ebx, implicit-def $ecx, implicit $rsp, implicit $ssp
|
|
; CHECK: CFI_INSTRUCTION def_cfa_offset 16
|
|
; CHECK: CFI_INSTRUCTION offset $rbp, -16
|
|
; CHECK: CFI_INSTRUCTION def_cfa_register $rsp
|
|
; CHECK: TAILJMPd64 @OUTLINED_FUNCTION_0, implicit $rsp, implicit $ssp, implicit-def $eax, implicit-def $edi, implicit-def $edx, implicit-def $esi, implicit $rsp, implicit $ssp
|
|
CFI_INSTRUCTION def_cfa_offset 16
|
|
CFI_INSTRUCTION offset $rbp, -16
|
|
CFI_INSTRUCTION def_cfa_register $rbp
|
|
$eax = MOV32ri 1
|
|
$ebx = MOV32ri 2
|
|
$ecx = MOV32ri 3
|
|
CFI_INSTRUCTION def_cfa_offset 16
|
|
CFI_INSTRUCTION offset $rbp, -16
|
|
CFI_INSTRUCTION def_cfa_register $rsp
|
|
$esi = MOV32ri 1
|
|
$edx = MOV32ri 2
|
|
$edi = MOV32ri 3
|
|
$eax = MOV32ri 4
|
|
RET64
|
|
...
|
|
---
|
|
name: bar
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
;liveins: $lr
|
|
; CHECK-LABEL: name: bar
|
|
; CHECK: CALL64pcrel32 @OUTLINED_FUNCTION_1, implicit $rsp, implicit $ssp, implicit-def $eax, implicit-def $ebx, implicit-def $ecx, implicit $rsp, implicit $ssp
|
|
; CHECK: CFI_INSTRUCTION def_cfa_offset 16
|
|
; CHECK: CFI_INSTRUCTION offset $rbp, -16
|
|
; CHECK: CFI_INSTRUCTION def_cfa_register $rsp
|
|
; CHECK: TAILJMPd64 @OUTLINED_FUNCTION_0, implicit $rsp, implicit $ssp, implicit-def $eax, implicit-def $edi, implicit-def $edx, implicit-def $esi, implicit $rsp, implicit $ssp
|
|
$eax = MOV32ri 1
|
|
$ebx = MOV32ri 2
|
|
$ecx = MOV32ri 3
|
|
CFI_INSTRUCTION def_cfa_offset 16
|
|
CFI_INSTRUCTION offset $rbp, -16
|
|
CFI_INSTRUCTION def_cfa_register $rsp
|
|
$esi = MOV32ri 1
|
|
$edx = MOV32ri 2
|
|
$edi = MOV32ri 3
|
|
$eax = MOV32ri 4
|
|
RET64
|
|
...
|
|
---
|
|
name: baz
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
;liveins: $lr
|
|
; CHECK-LABEL: name: baz
|
|
; CHECK: CALL64pcrel32 @OUTLINED_FUNCTION_1, implicit $rsp, implicit $ssp, implicit-def $eax, implicit-def $ebx, implicit-def $ecx, implicit $rsp, implicit $ssp
|
|
; CHECK: CFI_INSTRUCTION def_cfa_offset 16
|
|
; CHECK: CFI_INSTRUCTION offset $rbp, -16
|
|
; CHECK: CFI_INSTRUCTION def_cfa_register $rsp
|
|
; CHECK: TAILJMPd64 @OUTLINED_FUNCTION_0, implicit $rsp, implicit $ssp, implicit-def $eax, implicit-def $edi, implicit-def $edx, implicit-def $esi, implicit $rsp, implicit $ssp
|
|
$eax = MOV32ri 1
|
|
$ebx = MOV32ri 2
|
|
$ecx = MOV32ri 3
|
|
CFI_INSTRUCTION def_cfa_offset 16
|
|
CFI_INSTRUCTION offset $rbp, -16
|
|
CFI_INSTRUCTION def_cfa_register $rsp
|
|
$esi = MOV32ri 1
|
|
$edx = MOV32ri 2
|
|
$edi = MOV32ri 3
|
|
$eax = MOV32ri 4
|
|
RET64
|