Mehdi Amini | ae64eaf | 2016-04-23 23:38:17 +0000 | [diff] [blame^] | 1 | ; Test to check the callgraph in summary |
| 2 | ; RUN: opt -module-summary %s -o %t.o |
| 3 | ; RUN: llvm-lto -thinlto-action=thinlink -o %t.index.bc %t.o |
| 4 | ; RUN: llvm-bcanalyzer -dump %t.index.bc | FileCheck %s --check-prefix=COMBINED |
| 5 | |
| 6 | ; COMBINED: <GLOBALVAL_SUMMARY_BLOCK |
| 7 | ; COMBINED-NEXT: <COMBINED |
| 8 | ; COMBINED-NEXT: <COMBINED_ORIGINAL_NAME op0=6699318081062747564/> |
| 9 | ; COMBINED-NEXT: <COMBINED_GLOBALVAR_INIT_REFS |
| 10 | ; COMBINED-NEXT: <COMBINED_ORIGINAL_NAME op0=-2012135647395072713/> |
| 11 | ; COMBINED-NEXT: <COMBINED_ALIAS |
| 12 | ; COMBINED-NEXT: <COMBINED_ORIGINAL_NAME op0=-4170563161550796836/> |
| 13 | ; COMBINED-NEXT: </GLOBALVAL_SUMMARY_BLOCK> |
| 14 | |
| 15 | ; ModuleID = 'thinlto-function-summary-callgraph.ll' |
| 16 | target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" |
| 17 | target triple = "x86_64-unknown-linux-gnu" |
| 18 | |
| 19 | @bar = internal global i32 0 |
| 20 | @fooalias = internal alias void (...), bitcast (void ()* @foo to void (...)*) |
| 21 | |
| 22 | define internal void @foo() { |
| 23 | ret void |
| 24 | } |