diff options
author | Adam Nemet <anemet@apple.com> | 2016-11-07 22:41:13 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2016-11-07 22:41:13 +0000 |
commit | b103fc52d3ae1fb23414a3bd454aabacd1e7db1e (patch) | |
tree | 580ee3dae50d0422eb11101d3da1e1aa64796cd5 /llvm/test/Transforms/Inline/optimization-remarks-passed-yaml.ll | |
parent | 6f020d91a1cd22352cead0fdcd6b17052663c52f (diff) | |
download | bcm5719-llvm-b103fc52d3ae1fb23414a3bd454aabacd1e7db1e.tar.gz bcm5719-llvm-b103fc52d3ae1fb23414a3bd454aabacd1e7db1e.zip |
[OptDiag, opt-viewer] Save callee's location and display as link
With this we get a new field in the YAML record if the value being
streamed out has a debug location. For examples, please see the changes
to the tests.
This is then used in opt-viewer to display a link for the callee
function in the inlining remarks.
Differential Revision: https://reviews.llvm.org/D26366
llvm-svn: 286169
Diffstat (limited to 'llvm/test/Transforms/Inline/optimization-remarks-passed-yaml.ll')
-rw-r--r-- | llvm/test/Transforms/Inline/optimization-remarks-passed-yaml.ll | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/Transforms/Inline/optimization-remarks-passed-yaml.ll b/llvm/test/Transforms/Inline/optimization-remarks-passed-yaml.ll index 60d07587fdf..1e173342d8b 100644 --- a/llvm/test/Transforms/Inline/optimization-remarks-passed-yaml.ll +++ b/llvm/test/Transforms/Inline/optimization-remarks-passed-yaml.ll @@ -23,8 +23,10 @@ ; YAML-NEXT: Hotness: 30 ; YAML-NEXT: Args: ; YAML-NEXT: - Callee: foo +; YAML-NEXT: DebugLoc: { File: /tmp/s.c, Line: 1, Column: 0 } ; YAML-NEXT: - String: ' can be inlined into ' ; YAML-NEXT: - Caller: bar +; YAML-NEXT: DebugLoc: { File: /tmp/s.c, Line: 3, Column: 0 } ; YAML-NEXT: - String: ' with cost=' ; YAML-NEXT: - Cost: '{{[0-9]+}}' ; YAML-NEXT: - String: ' (threshold=' @@ -39,8 +41,10 @@ ; YAML-NEXT: Hotness: 30 ; YAML-NEXT: Args: ; YAML-NEXT: - Callee: foo +; YAML-NEXT: DebugLoc: { File: /tmp/s.c, Line: 1, Column: 0 } ; YAML-NEXT: - String: ' inlined into ' ; YAML-NEXT: - Caller: bar +; YAML-NEXT: DebugLoc: { File: /tmp/s.c, Line: 3, Column: 0 } ; YAML-NEXT: ... ; ModuleID = '/tmp/s.c' |