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. llvm-svn: 299975
16 lines
277 B
YAML
16 lines
277 B
YAML
# RUN: llc -run-pass none -o - %s | FileCheck %s
|
|
# This test ensures that the MIR parser accepts files with llvm IR but
|
|
# no machine function body.
|
|
|
|
--- |
|
|
; CHECK: define i32 @foo()
|
|
define i32 @foo() {
|
|
ret i32 0
|
|
}
|
|
|
|
...
|
|
---
|
|
# CHECK: name: foo
|
|
name: foo
|
|
...
|