mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-14 17:36:29 +00:00

If you run llc -stop-after=codegenprepare and feed the resulting MIR to llc -start-after=codegenprepare, you'll have an empty machine function since we haven't run any isel yet. Of course, this only works if the MIRParser believes you that this is okay. This is essentially a revert of r241862 with a fix for the problem it was papering over. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299975 91177308-0d34-0410-b5e6-96231b3b80d8
54 lines
887 B
YAML
54 lines
887 B
YAML
# RUN: llc -run-pass none -o - %s | FileCheck %s
|
|
# This test ensures that the MIR parser parses machine functions correctly.
|
|
|
|
--- |
|
|
|
|
define i32 @foo() {
|
|
ret i32 0
|
|
}
|
|
|
|
define i32 @bar() {
|
|
ret i32 0
|
|
}
|
|
|
|
define i32 @func() {
|
|
ret i32 0
|
|
}
|
|
|
|
define i32 @func2() {
|
|
ret i32 0
|
|
}
|
|
|
|
...
|
|
---
|
|
# CHECK: name: foo
|
|
# CHECK-NEXT: alignment:
|
|
# CHECK-NEXT: exposesReturnsTwice: false
|
|
# CHECK: ...
|
|
name: foo
|
|
...
|
|
---
|
|
# CHECK: name: bar
|
|
# CHECK-NEXT: alignment:
|
|
# CHECK-NEXT: exposesReturnsTwice: false
|
|
# CHECK: ...
|
|
name: bar
|
|
...
|
|
---
|
|
# CHECK: name: func
|
|
# CHECK-NEXT: alignment: 8
|
|
# CHECK-NEXT: exposesReturnsTwice: false
|
|
# CHECK: ...
|
|
name: func
|
|
alignment: 8
|
|
...
|
|
---
|
|
# CHECK: name: func2
|
|
# CHECK-NEXT: alignment: 16
|
|
# CHECK-NEXT: exposesReturnsTwice: true
|
|
# CHECK: ...
|
|
name: func2
|
|
alignment: 16
|
|
exposesReturnsTwice: true
|
|
...
|