1 ; Do setup work: generate bitcode and combined index 2 ; RUN: opt -module-summary %s -o %t1.bc 3 ; RUN: opt -module-summary %p/Inputs/callees-metadata.ll -o %t2.bc 4 5 ; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t.o -save-temps \ 6 ; RUN: -r=%t1.bc,bar,plx \ 7 ; RUN: -r=%t1.bc,foo,l \ 8 ; RUN: -r=%t2.bc,foo,pl 9 ; RUN: llvm-dis %t.o.1.3.import.bc -o - | FileCheck %s 10 ; CHECK: define {{.*}} i32 @f1.llvm.0 11 ; CHECK: define {{.*}} i32 @f2.llvm.0 12 13 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 14 target triple = "x86_64-unknown-linux-gnu" 15 16 define dso_local i32 @bar(i32 %x) { 17 entry: 18 %call = call i32 @foo(i32 %x) 19 ret i32 %call 20 } 21 22 declare dso_local i32 @foo(i32) 23