Home | History | Annotate | Download | only in llvm-lto
      1 ; Test combined function index generation for ThinLTO via llvm-lto.
      2 ; RUN: llvm-as -function-summary %s -o %t.o
      3 ; RUN: llvm-as -function-summary %p/Inputs/thinlto.ll -o %t2.o
      4 ; RUN: llvm-lto -thinlto -o %t3 %t.o %t2.o
      5 ; RUN: llvm-bcanalyzer -dump %t3.thinlto.bc | FileCheck %s --check-prefix=COMBINED
      6 ; RUN: not test -e %t3
      7 
      8 ; COMBINED: <MODULE_STRTAB_BLOCK
      9 ; COMBINED-NEXT: <ENTRY {{.*}} record string = '{{.*}}thinlto.ll.tmp{{.*}}.o'
     10 ; COMBINED-NEXT: <ENTRY {{.*}} record string = '{{.*}}thinlto.ll.tmp{{.*}}.o'
     11 ; COMBINED-NEXT: </MODULE_STRTAB_BLOCK
     12 ; COMBINED-NEXT: <FUNCTION_SUMMARY_BLOCK
     13 ; COMBINED-NEXT: <COMBINED_ENTRY
     14 ; COMBINED-NEXT: <COMBINED_ENTRY
     15 ; COMBINED-NEXT: </FUNCTION_SUMMARY_BLOCK
     16 ; COMBINED-NEXT: <VALUE_SYMTAB
     17 ; COMBINED-NEXT: <COMBINED_FNENTRY {{.*}} record string = '{{f|g}}'
     18 ; COMBINED-NEXT: <COMBINED_FNENTRY {{.*}} record string = '{{f|g}}'
     19 ; COMBINED-NEXT: </VALUE_SYMTAB
     20 
     21 define void @f() {
     22 entry:
     23   ret void
     24 }
     25