Home | History | Annotate | Download | only in X86
      1 ; Do setup work for all below tests: generate bitcode and combined index
      2 ; RUN: opt -module-summary %s -o %t.bc
      3 ; RUN: opt -module-summary %p/Inputs/referenced_by_constant.ll -o %t2.bc
      4 ; RUN: llvm-lto -thinlto-action=thinlink -o %t3.bc %t.bc %t2.bc
      5 
      6 ; Check the import side: we import bar() and @someglobal, but not @referencedbyglobal()
      7 ; RUN: llvm-lto -thinlto-action=import %t.bc -thinlto-index=%t3.bc -o - | llvm-dis -o -   | FileCheck %s --check-prefix=IMPORT
      8 ; IMPORT: @someglobal.llvm.0 =
      9 ; IMPORT: define available_externally void @bar()
     10 ; IMPORT: declare void @referencedbyglobal()
     11 
     12 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
     13 target triple = "x86_64-apple-macosx10.11.0"
     14 
     15 declare void @bar()
     16 
     17 define void @foo() {
     18     call void @bar()
     19     ret void
     20 }
     21 
     22