xref: /aosp_15_r20/external/llvm/test/ThinLTO/X86/cache.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: opt -module-summary %s -o %t.bc
2*9880d681SAndroid Build Coastguard Worker; RUN: opt -module-summary %p/Inputs/funcimport.ll -o %t2.bc
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker; Verify that enabling caching is working
5*9880d681SAndroid Build Coastguard Worker; RUN: rm -Rf %t.cache && mkdir %t.cache
6*9880d681SAndroid Build Coastguard Worker; RUN: llvm-lto -thinlto-action=run -exported-symbol=globalfunc %t2.bc  %t.bc -thinlto-cache-dir %t.cache
7*9880d681SAndroid Build Coastguard Worker; RUN: ls %t.cache/llvmcache.timestamp
8*9880d681SAndroid Build Coastguard Worker; RUN: ls %t.cache | count 3
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
11*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-apple-macosx10.11.0"
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Workerdefine void @globalfunc() #0 {
14*9880d681SAndroid Build Coastguard Workerentry:
15*9880d681SAndroid Build Coastguard Worker  ret void
16*9880d681SAndroid Build Coastguard Worker}
17