
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
7 lines
110 B
LLVM
7 lines
110 B
LLVM
; RUN: opt -S -print-inst-addrs %s | FileCheck %s
|
|
|
|
define void @foo() {
|
|
; CHECK: ret void ; 0x
|
|
ret void
|
|
}
|