Lines Matching refs:thinlto
3 ;; Mostly copied/updated from thinlto-index-only.ll
8 ; RUN: llvm-as %p/Inputs/thinlto.ll -o 2.o
9 ; RUN: ld.lld --thinlto-emit-index-files -shared 1.o 2.o -o 3
10 ; RUN: ls 2.o.thinlto.bc
17 ; RUN: opt -module-summary %p/Inputs/thinlto.ll -o 2.o
21 ; RUN: ld.lld --thinlto-emit-index-files -shared 1.o 2.o -o 4
22 ; RUN: llvm-bcanalyzer -dump 1.o.thinlto.bc | FileCheck %s --check-prefix=BACKEND1
23 ; RUN: llvm-bcanalyzer -dump 2.o.thinlto.bc | FileCheck %s --check-prefix=BACKEND2
27 ; RUN: ld.lld --thinlto-emit-index-files --thinlto-index-only -shared 1.o 2.o -o 5
31 ; RUN: rm -f 2.o.thinlto.bc
32 ; RUN: ld.lld --thinlto-emit-index-files -shared 1.o 3.o --start-lib 2.o --end-lib -o 6
33 ; RUN: llvm-dis < 2.o.thinlto.bc | grep -q '\^0 = module:'
37 ;; Test that LLD also generates empty imports file with the --thinlto-emit-imports-files option.
38 ; RUN: rm -f 1.o.thinlto.bc 1.o.imports
39 ; RUN: ld.lld --thinlto-emit-index-files -shared 2.o --start-lib 1.o --end-lib \
40 ; RUN: --thinlto-emit-imports-files -o 7
42 ; RUN: ls 1.o.thinlto.bc
46 ; RUN: rm -f 1.o.thinlto.bc
48 ; RUN: ld.lld --thinlto-emit-index-files -shared dummy.o --start-lib 1.o --end-lib -o 8
50 ; RUN: ls 1.o.thinlto.bc
53 ; RUN: not ld.lld --thinlto-emit-index-files -shared 2.o --start-lib 1.o --end-lib \
54 ; RUN: --thinlto-prefix-replace="abc;xyz" 2>&1 | FileCheck %s --check-prefix=ERR1
55 ; ERR1: --thinlto-prefix-replace is not supported with --thinlto-emit-index-files
57 ; RUN: not ld.lld --thinlto-emit-index-files -shared 2.o --start-lib 1.o --end-lib \
58 ; RUN: --thinlto-object-suffix-replace="abc;xyz" 2>&1 | FileCheck %s --check-prefix=ERR2
59 ; ERR2: --thinlto-object-suffix-replace is not supported with --thinlto-emit-index-files
62 ; RUN: ld.lld --thinlto-emit-index-files -shared 2.o --start-lib 1.o --end-lib \
63 ; RUN: --thinlto-prefix-replace="abc;xyz" --thinlto-index-only
65 ; RUN: ld.lld --thinlto-emit-index-files -shared 2.o --start-lib 1.o --end-lib \
66 ; RUN: --thinlto-object-suffix-replace="abc;xyz" --thinlto-index-only
71 ;; Inputs/thinlto.ll, as it imports from the latter.
85 ;; The backend index for Input/thinlto.ll contains summaries from itself only,