20 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/inlineasm.ll -o %t2.bc4; RUN: llvm-lto -thinlto -o %t3 %t.bc %t2.bc5 6; Attempt the import now, ensure below that file containing inline assembly7; is not imported from. Otherwise we would need to promote its local variable8; used in the inline assembly, which would not see the rename.9; RUN: opt -passes=function-import -summary-file %t3.thinlto.bc %t.bc -S 2>&1 | FileCheck %s10 11define i32 @main() #0 {12entry:13 %f = alloca i64, align 814 call void @foo(ptr %f)15 ret i32 016}17 18; CHECK: declare void @foo(ptr)19declare void @foo(ptr) #120