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
165 lines
3.8 KiB
YAML
165 lines
3.8 KiB
YAML
# RUN: llc -run-pass none -o - %s | FileCheck %s
|
|
# This test ensures that the MIR parser parses machine frame info properties
|
|
# correctly.
|
|
|
|
--- |
|
|
|
|
define i32 @test(i32 %a) {
|
|
entry:
|
|
%b = alloca i32
|
|
store i32 %a, ptr %b
|
|
%c = load i32, ptr %b
|
|
ret i32 %c
|
|
}
|
|
|
|
define i32 @test2(i32 %a) {
|
|
entry:
|
|
%b = alloca i32
|
|
store i32 %a, ptr %b
|
|
%c = load i32, ptr %b
|
|
ret i32 %c
|
|
}
|
|
|
|
define void @test_framePointerPolicy_none() {
|
|
ret void
|
|
}
|
|
|
|
define void @test_framePointerPolicy_non_leaf() {
|
|
ret void
|
|
}
|
|
|
|
define void @test_framePointerPolicy_all() {
|
|
ret void
|
|
}
|
|
|
|
define void @test_framePointerPolicy_reserved() {
|
|
ret void
|
|
}
|
|
|
|
define void @test_framePointerPolicy_non_leaf_no_reserve() {
|
|
ret void
|
|
}
|
|
|
|
...
|
|
---
|
|
name: test
|
|
tracksRegLiveness: true
|
|
|
|
# CHECK: frameInfo:
|
|
# CHECK-NEXT: isFrameAddressTaken: false
|
|
# CHECK-NEXT: isReturnAddressTaken: false
|
|
# CHECK-NEXT: hasStackMap: false
|
|
# CHECK-NEXT: hasPatchPoint: false
|
|
# CHECK-NEXT: stackSize: 0
|
|
# CHECK-NEXT: offsetAdjustment: 0
|
|
# Note: max alignment can be target specific when printed.
|
|
# CHECK-NEXT: maxAlignment:
|
|
# CHECK-NEXT: adjustsStack: false
|
|
# CHECK-NEXT: hasCalls: false
|
|
# CHECK-NEXT: framePointerPolicy: none
|
|
# CHECK-NEXT: stackProtector: ''
|
|
# CHECK-NEXT: functionContext: ''
|
|
# CHECK-NEXT: maxCallFrameSize:
|
|
# CHECK-NEXT: cvBytesOfCalleeSavedRegisters: 0
|
|
# CHECK-NEXT: hasOpaqueSPAdjustment: false
|
|
# CHECK-NEXT: hasVAStart: false
|
|
# CHECK-NEXT: hasMustTailInVarArgFunc: false
|
|
# CHECK-NEXT: hasTailCall: false
|
|
# CHECK-NEXT: isCalleeSavedInfoValid: false
|
|
# CHECK-NEXT: localFrameSize: 0
|
|
# CHECK: body
|
|
frameInfo:
|
|
maxAlignment: 4
|
|
body: |
|
|
bb.0.entry:
|
|
...
|
|
---
|
|
name: test2
|
|
tracksRegLiveness: true
|
|
stack:
|
|
- { id: 0, offset: -40, size: 8, alignment: 8 }
|
|
|
|
# CHECK: test2
|
|
# CHECK: frameInfo:
|
|
# CHECK-NEXT: isFrameAddressTaken: true
|
|
# CHECK-NEXT: isReturnAddressTaken: true
|
|
# CHECK-NEXT: hasStackMap: true
|
|
# CHECK-NEXT: hasPatchPoint: true
|
|
# CHECK-NEXT: stackSize: 4
|
|
# CHECK-NEXT: offsetAdjustment: 4
|
|
# Note: max alignment can be target specific when printed.
|
|
# CHECK-NEXT: maxAlignment:
|
|
# CHECK-NEXT: adjustsStack: true
|
|
# CHECK-NEXT: hasCalls: true
|
|
# CHECK-NEXT: framePointerPolicy: none
|
|
# CHECK-NEXT: stackProtector: ''
|
|
# CHECK-NEXT: functionContext: '%stack.0'
|
|
# CHECK-NEXT: maxCallFrameSize: 4
|
|
# CHECK-NEXT: cvBytesOfCalleeSavedRegisters: 8
|
|
# CHECK-NEXT: hasOpaqueSPAdjustment: true
|
|
# CHECK-NEXT: hasVAStart: true
|
|
# CHECK-NEXT: hasMustTailInVarArgFunc: true
|
|
# CHECK-NEXT: hasTailCall: true
|
|
# CHECK: body
|
|
frameInfo:
|
|
isFrameAddressTaken: true
|
|
isReturnAddressTaken: true
|
|
hasStackMap: true
|
|
hasPatchPoint: true
|
|
stackSize: 4
|
|
offsetAdjustment: 4
|
|
maxAlignment: 4
|
|
adjustsStack: true
|
|
hasCalls: true
|
|
functionContext: '%stack.0'
|
|
maxCallFrameSize: 4
|
|
cvBytesOfCalleeSavedRegisters: 8
|
|
hasOpaqueSPAdjustment: true
|
|
hasVAStart: true
|
|
hasTailCall: true
|
|
hasMustTailInVarArgFunc: true
|
|
localFrameSize: 256
|
|
body: |
|
|
bb.0.entry:
|
|
...
|
|
---
|
|
name: test_framePointerPolicy_none
|
|
|
|
# CHECK: test_framePointerPolicy_none
|
|
# CHECK: framePointerPolicy: none
|
|
frameInfo:
|
|
framePointerPolicy: none
|
|
...
|
|
---
|
|
name: test_framePointerPolicy_non_leaf
|
|
|
|
# CHECK: test_framePointerPolicy_non_leaf
|
|
# CHECK: framePointerPolicy: non-leaf
|
|
frameInfo:
|
|
framePointerPolicy: non-leaf
|
|
...
|
|
---
|
|
name: test_framePointerPolicy_all
|
|
|
|
# CHECK: test_framePointerPolicy_all
|
|
# CHECK: framePointerPolicy: all
|
|
frameInfo:
|
|
framePointerPolicy: all
|
|
...
|
|
---
|
|
name: test_framePointerPolicy_reserved
|
|
|
|
# CHECK: test_framePointerPolicy_reserved
|
|
# CHECK: framePointerPolicy: reserved
|
|
frameInfo:
|
|
framePointerPolicy: reserved
|
|
...
|
|
---
|
|
name: test_framePointerPolicy_non_leaf_no_reserve
|
|
|
|
# CHECK: test_framePointerPolicy_non_leaf_no_reserve
|
|
# CHECK: framePointerPolicy: non-leaf-no-reserve
|
|
frameInfo:
|
|
framePointerPolicy: non-leaf-no-reserve
|
|
...
|