26 lines · plain
1; Do setup work for all below tests: generate bitcode and combined index2; RUN: opt -module-summary %s -o %t.bc3; RUN: opt -module-summary %p/Inputs/funcimport_alias.ll -o %t2.bc4; RUN: llvm-lto -thinlto -o %t3 %t.bc %t2.bc5 6; Do the import now. Ensures that the importer handles an external call7; from imported callanalias() to a function that is defined already in8; the dest module, but as an alias.9; RUN: opt -passes=function-import -summary-file %t3.thinlto.bc %t.bc -S | FileCheck %s10 11define i32 @main() #0 {12entry:13 call void @callanalias()14 ret i32 015}16 17@analias = alias void (), ptr @globalfunc18 19define void @globalfunc() #0 {20entry:21 ret void22}23 24declare void @callanalias() #125; CHECK-DAG: define available_externally void @callanalias()26