In this PR, unnamed machine functions in an MIR file are associated with anonymous functions in the embedded LLVM IR according to the order in which they are specified. If there are more unnamed machine functions then there are LLVM IR functions, the parsing will fail by reporting the original error message of `function ‘’ isn’t defined in the provided LLVM IR`. Closes #36511
9 lines
203 B
YAML
9 lines
203 B
YAML
# RUN: llc -run-pass=none -o - %s | FileCheck %s
|
|
# This test ensures that the MIR parser is able to parse unnamed functions when
|
|
# the LLVM IR module is not embedded.
|
|
---
|
|
# CHECK: name: ''
|
|
name: ''
|
|
...
|
|
|