llvm.org GIT mirror llvm / release_37 test / CodeGen / MIR / register-info.mir
release_37

Tree @release_37 (Download .tar.gz)

register-info.mir @release_37raw · history · blame

# RUN: llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s | FileCheck %s
# This test ensures that the MIR parser parses machine register info properties
# correctly.

--- |

  define i32 @foo() {
  entry:
    ret i32 0
  }

  define i32 @bar() {
  start:
    ret i32 0
  }

...
---
# CHECK: name: foo
# CHECK:      isSSA: false
# CHECK-NEXT: tracksRegLiveness: false
# CHECK-NEXT: tracksSubRegLiveness: false
# CHECK: ...
name:            foo
body:
  - id: 0
...
---
# CHECK: name: bar
# CHECK:      isSSA: false
# CHECK-NEXT: tracksRegLiveness: true
# CHECK-NEXT: tracksSubRegLiveness: true
# CHECK: ...
name: bar
isSSA: false
tracksRegLiveness: true
tracksSubRegLiveness: true
body:
  - id: 0
...