mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 18:36:05 +00:00

As previously discussed [1], it is sometimes useful to be able to see instruction addresses and debug locations as part of IR dumps. The same applies to MachineInstrs which already dump debug locations but not addresses. Therefore add some flags that can be used to enable dumping of this information. [1] https://discourse.llvm.org/t/small-improvement-to-llvm-debugging-experience/79914 Reviewers: rnk Reviewed By: rnk Pull Request: https://github.com/llvm/llvm-project/pull/127944
12 lines
228 B
LLVM
12 lines
228 B
LLVM
; RUN: llc -print-after=slotindexes -print-mi-addrs < %s 2>&1 | FileCheck %s
|
|
; REQUIRES: default_triple
|
|
|
|
; CHECK: IR Dump {{.*}}
|
|
; CHECK: # Machine code for function foo{{.*}}
|
|
|
|
define void @foo() {
|
|
; CHECK: ; 0x
|
|
ret void
|
|
}
|
|
|