1*9880d681SAndroid Build Coastguard Worker; Test to check the callgraph in summary 2*9880d681SAndroid Build Coastguard Worker; RUN: opt -module-summary %s -o %t.o 3*9880d681SAndroid Build Coastguard Worker; RUN: llvm-lto -thinlto-action=thinlink -o %t.index.bc %t.o 4*9880d681SAndroid Build Coastguard Worker; RUN: llvm-bcanalyzer -dump %t.index.bc | FileCheck %s --check-prefix=COMBINED 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Worker; COMBINED: <GLOBALVAL_SUMMARY_BLOCK 7*9880d681SAndroid Build Coastguard Worker; COMBINED-NEXT: <VERSION 8*9880d681SAndroid Build Coastguard Worker; COMBINED-DAG: <COMBINED 9*9880d681SAndroid Build Coastguard Worker; COMBINED-DAG: <COMBINED_ORIGINAL_NAME op0=6699318081062747564/> 10*9880d681SAndroid Build Coastguard Worker; COMBINED-DAG: <COMBINED_GLOBALVAR_INIT_REFS 11*9880d681SAndroid Build Coastguard Worker; COMBINED-DAG: <COMBINED_ORIGINAL_NAME op0=-2012135647395072713/> 12*9880d681SAndroid Build Coastguard Worker; COMBINED-DAG: <COMBINED_ALIAS 13*9880d681SAndroid Build Coastguard Worker; COMBINED-DAG: <COMBINED_ORIGINAL_NAME op0=-4170563161550796836/> 14*9880d681SAndroid Build Coastguard Worker; COMBINED-NEXT: </GLOBALVAL_SUMMARY_BLOCK> 15*9880d681SAndroid Build Coastguard Worker; COMBINED-NEXT: <VALUE_SYMTAB 16*9880d681SAndroid Build Coastguard Worker; COMBINED-NEXT: <COMBINED_ENTRY {{.*}} op1=4947176790635855146/> 17*9880d681SAndroid Build Coastguard Worker; COMBINED-NEXT: <COMBINED_ENTRY {{.*}} op1=-6591587165810580810/> 18*9880d681SAndroid Build Coastguard Worker; COMBINED-NEXT: <COMBINED_ENTRY {{.*}} op1=-4377693495213223786/> 19*9880d681SAndroid Build Coastguard Worker; COMBINED-NEXT: </VALUE_SYMTAB> 20*9880d681SAndroid Build Coastguard Worker 21*9880d681SAndroid Build Coastguard Workersource_filename = "/path/to/source.c" 22*9880d681SAndroid Build Coastguard Worker 23*9880d681SAndroid Build Coastguard Worker; ModuleID = 'thinlto-function-summary-callgraph.ll' 24*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 25*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-unknown-linux-gnu" 26*9880d681SAndroid Build Coastguard Worker 27*9880d681SAndroid Build Coastguard Worker@bar = internal global i32 0 28*9880d681SAndroid Build Coastguard Worker@fooalias = internal alias void (...), bitcast (void ()* @foo to void (...)*) 29*9880d681SAndroid Build Coastguard Worker 30*9880d681SAndroid Build Coastguard Workerdefine internal void @foo() { 31*9880d681SAndroid Build Coastguard Worker ret void 32*9880d681SAndroid Build Coastguard Worker} 33