mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-09 09:19:33 +00:00
This commit serializes the references from the machine basic blocks to the unnamed basic blocks. This commit adds a new attribute to the machine basic block's YAML mapping called 'ir-block'. This attribute contains the actual reference to the basic block. Reviewers: Duncan P. N. Exon Smith git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243340 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
367 B
YAML
20 lines
367 B
YAML
# RUN: llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s | FileCheck %s
|
|
# This test ensures that the MIR parser preserves unnamed LLVM IR block
|
|
# references.
|
|
|
|
--- |
|
|
|
|
define i32 @foo() {
|
|
ret i32 0
|
|
}
|
|
|
|
...
|
|
---
|
|
name: foo
|
|
body:
|
|
# CHECK: id: 0
|
|
# CHECK: ir-block: '%ir-block.0'
|
|
- id: 0
|
|
ir-block: '%ir-block.0'
|
|
...
|