2016-04-24 01:38:17 +02:00
|
|
|
; Test to check the callgraph in summary
|
|
|
|
; RUN: opt -module-summary %s -o %t.o
|
|
|
|
; RUN: llvm-lto -thinlto-action=thinlink -o %t.index.bc %t.o
|
|
|
|
; RUN: llvm-bcanalyzer -dump %t.index.bc | FileCheck %s --check-prefix=COMBINED
|
|
|
|
|
|
|
|
; COMBINED: <GLOBALVAL_SUMMARY_BLOCK
|
2016-04-24 05:18:11 +02:00
|
|
|
; COMBINED-NEXT: <VERSION
|
2018-02-07 05:05:59 +01:00
|
|
|
; COMBINED-NEXT: <FLAGS
|
2017-04-17 19:51:36 +02:00
|
|
|
; COMBINED-NEXT: <VALUE_GUID {{.*}} op1=4947176790635855146/>
|
|
|
|
; COMBINED-NEXT: <VALUE_GUID {{.*}} op1=-6591587165810580810/>
|
|
|
|
; COMBINED-NEXT: <VALUE_GUID {{.*}} op1=-4377693495213223786/>
|
2016-04-24 02:25:15 +02:00
|
|
|
; COMBINED-DAG: <COMBINED
|
|
|
|
; COMBINED-DAG: <COMBINED_ORIGINAL_NAME op0=6699318081062747564/>
|
|
|
|
; COMBINED-DAG: <COMBINED_GLOBALVAR_INIT_REFS
|
|
|
|
; COMBINED-DAG: <COMBINED_ORIGINAL_NAME op0=-2012135647395072713/>
|
|
|
|
; COMBINED-DAG: <COMBINED_ALIAS
|
|
|
|
; COMBINED-DAG: <COMBINED_ORIGINAL_NAME op0=-4170563161550796836/>
|
2016-04-24 01:38:17 +02:00
|
|
|
; COMBINED-NEXT: </GLOBALVAL_SUMMARY_BLOCK>
|
2016-04-24 02:03:57 +02:00
|
|
|
|
|
|
|
source_filename = "/path/to/source.c"
|
2016-04-24 01:38:17 +02:00
|
|
|
|
|
|
|
; ModuleID = 'thinlto-function-summary-callgraph.ll'
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
|
|
|
|
@bar = internal global i32 0
|
|
|
|
@fooalias = internal alias void (...), bitcast (void ()* @foo to void (...)*)
|
|
|
|
|
|
|
|
define internal void @foo() {
|
|
|
|
ret void
|
|
|
|
}
|