121
|
1 ; RUN: opt -module-hash -module-summary %s -o %t.bc
|
|
2 ; RUN: opt -module-hash -module-summary %p/Inputs/cache.ll -o %t2.bc
|
|
3
|
|
4 ; Check that the generating object files is working without cache
|
|
5 ; RUN: rm -Rf %t.thin.out
|
|
6 ; RUN: llvm-lto -thinlto-save-objects=%t.thin.out -thinlto-action=run %t2.bc %t.bc -exported-symbol=main
|
|
7 ; RUN: ls %t.thin.out | count 2
|
|
8
|
|
9 ; Same with cache
|
|
10 ; RUN: rm -Rf %t.thin.out
|
|
11 ; RUN: rm -Rf %t.cache && mkdir %t.cache
|
|
12 ; RUN: llvm-lto -thinlto-save-objects=%t.thin.out -thinlto-action=run %t2.bc %t.bc -exported-symbol=main -thinlto-cache-dir %t.cache
|
|
13 ; RUN: ls %t.thin.out | count 2
|
|
14 ; RUN: ls %t.cache | count 3
|
|
15
|
|
16 ; Same with hot cache
|
|
17 ; RUN: rm -Rf %t.thin.out
|
|
18 ; RUN: rm -Rf %t.cache && mkdir %t.cache
|
|
19 ; RUN: llvm-lto -thinlto-save-objects=%t.thin.out -thinlto-action=run %t2.bc %t.bc -exported-symbol=main -thinlto-cache-dir %t.cache
|
|
20 ; RUN: ls %t.thin.out | count 2
|
|
21 ; RUN: ls %t.cache | count 3
|
|
22
|
|
23
|
|
24 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
|
|
25 target triple = "x86_64-apple-macosx10.11.0"
|
|
26
|
|
27 define void @globalfunc() #0 {
|
|
28 entry:
|
|
29 ret void
|
|
30 }
|