1cee313d2SEric Christopher; Do setup work for all below tests: generate bitcode and combined index 2cee313d2SEric Christopher; RUN: opt -module-summary %s -o %t.bc 3cee313d2SEric Christopher; RUN: opt -module-summary %p/Inputs/inlineasm.ll -o %t2.bc 4cee313d2SEric Christopher; RUN: llvm-lto -thinlto -o %t3 %t.bc %t2.bc 5cee313d2SEric Christopher 6cee313d2SEric Christopher; Attempt the import now, ensure below that file containing inline assembly 7cee313d2SEric Christopher; is not imported from. Otherwise we would need to promote its local variable 8cee313d2SEric Christopher; used in the inline assembly, which would not see the rename. 9*a9af1b9aSFangrui Song; RUN: opt -passes=function-import -summary-file %t3.thinlto.bc %t.bc -S 2>&1 | FileCheck %s 10cee313d2SEric Christopher 11cee313d2SEric Christopherdefine i32 @main() #0 { 12cee313d2SEric Christopherentry: 13cee313d2SEric Christopher %f = alloca i64, align 8 14cee313d2SEric Christopher call void @foo(i64* %f) 15cee313d2SEric Christopher ret i32 0 16cee313d2SEric Christopher} 17cee313d2SEric Christopher 18cee313d2SEric Christopher; CHECK: declare void @foo(i64*) 19cee313d2SEric Christopherdeclare void @foo(i64*) #1 20