brintos

brintos / llvm-project-archived public Read only

0
0
Text · 902 B · 8687f1b Raw
24 lines · plain
1; Do setup work for all below tests: generate bitcode and combined index2; RUN: opt -module-summary %s -o %t.main.bc3; RUN: opt -module-summary %p/Inputs/noinline.ll -o %t.inputs.noinline.bc4; RUN: llvm-lto -thinlto -o %t.summary %t.main.bc %t.inputs.noinline.bc5 6; Attempt the import now, ensure below that file containing noinline7; is not imported by default but imported with -force-import-all.8 9; RUN: opt -passes=function-import -summary-file %t.summary.thinlto.bc %t.main.bc -S 2>&1 \10; RUN:   | FileCheck -check-prefix=NOIMPORT %s11; RUN: opt -passes=function-import -force-import-all -summary-file %t.summary.thinlto.bc \12; RUN:   %t.main.bc -S 2>&1 | FileCheck -check-prefix=IMPORT %s13 14define i32 @main() #0 {15entry:16  %f = alloca i64, align 817  call void @foo(ptr %f)18  ret i32 019}20 21; NOIMPORT: declare void @foo(ptr)22; IMPORT: define available_externally void @foo23declare void @foo(ptr) #124