This commit adds the liveins and successors properties to machine basic blocks
in some of the MIR tests to ensure that the tests will pass when the MIR parser
will run the machine verifier after initializing a machine function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243124
91177308-0d34-0410-b5e6-
96231b3b80d8
body:
- id: 0
name: entry
+ liveins: [ '%ecx', '%edi', '%edx', '%esi', '%rbx' ]
instructions:
- 'PUSH64r killed %rbx, implicit-def %rsp, implicit %rsp'
- 'CFI_INSTRUCTION .cfi_def_cfa_offset 16'
- id: 0
name: entry
successors: [ '%bb.1.entry', '%bb.2.entry' ]
+ liveins: [ '%edi' ]
instructions:
- '%rsp = SUB64ri32 %rsp, 520, implicit-def %eflags'
- '%rcx = LOAD_STACK_GUARD'
- 'JNE_1 %bb.2.entry, implicit %eflags'
- id: 1
name: entry
+ liveins: [ '%eax' ]
instructions:
- '%rsp = ADD64ri32 %rsp, 520, implicit-def %eflags'
- 'RETQ %eax'
body:
- id: 0
name: entry
+ successors: [ '%bb.1.less', '%bb.2.exit' ]
instructions:
# CHECK: - 'CMP32ri8 %edi, 10, implicit-def %eflags'
# CHECK-NEXT: - 'JG_1 %bb.2.exit, implicit %eflags'
body:
- id: 0
name: entry
+ liveins: [ '%edi' ]
instructions:
# CHECK: DBG_VALUE _, 0, !12, !13, debug-location !14
# CHECK: %eax = COPY %0, debug-location !15
body:
- id: 0
name: entry
+ successors: [ '%bb.1.less', '%bb.2.exit' ]
instructions:
- 'CMP32ri8 %edi, 10, implicit-def %eflags'
- 'JG_1 %bb.2.exit, implicit %eflags'
# CHECK: name: entry
- id: 0
name: entry
+ successors: [ '%bb.1.less', '%bb.2.exit' ]
instructions:
- '%eax = MOV32rm %rdi, 1, _, 0, _'
# CHECK: - 'CMP32ri8 %eax, 10
# CHECK: name: entry
- id: 0
name: entry
+ successors: [ '%bb.1', '%bb.3' ]
instructions:
- '%eax = MOV32rm %rdi, 1, _, 0, _'
# CHECK: - 'CMP32ri8 %eax, 10
body:
- id: 0
name: entry
+ liveins: [ '%edi' ]
instructions:
# CHECK: %0 = COPY %edi
# CHECK-NEXT: DBG_VALUE _, 0, !12, !13
body:
- id: 0
name: entry
+ successors: [ '%bb.1.less', '%bb.2.exit' ]
instructions:
- '%eax = MOV32rm %rdi, 1, _, 0, _'
- 'CMP32ri8 %eax, 10, implicit-def %eflags'
body:
- name: entry
id: 0
+ liveins: [ '%edi' ]
instructions:
# CHECK: %0 = COPY %edi
# CHECK-NEXT: %1 = COPY %0:sub_8bit
body:
- id: 0
name: entry
+ successors: [ '%bb.2.exit', '%bb.1.less' ]
+ liveins: [ '%edi' ]
# CHECK: %0 = COPY %edi
# CHECK-NEXT: %1 = SUB32ri8 %0, 10
instructions:
body:
- id: 0
name: entry
+ successors: [ '%bb.2.exit', '%bb.1.less' ]
+ liveins: [ '%edi' ]
# CHECK: %0 = COPY %edi
# CHECK-NEXT: %1 = SUB32ri8 %0, 10
instructions: