llvm/test/Transforms/FunctionImport/funcimport_alias.ll
Teresa Johnson 411162c2db Fix bot failure from r257493: remove extraneous temp file read
This was left from an earlier version of the test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257494 91177308-0d34-0410-b5e6-96231b3b80d8
2016-01-12 17:53:59 +00:00

26 lines
760 B
LLVM

; Do setup work for all below tests: generate bitcode and combined index
; RUN: llvm-as -function-summary %s -o %t.bc
; RUN: llvm-as -function-summary %p/Inputs/funcimport_alias.ll -o %t2.bc
; RUN: llvm-lto -thinlto -o %t3 %t.bc %t2.bc
; Do the import now. Ensures that the importer handles an external call
; from imported callanalias() to a function that is defined already in
; the dest module, but as an alias.
; RUN: opt -function-import -summary-file %t3.thinlto.bc %s -S | FileCheck %s
define i32 @main() #0 {
entry:
call void @callanalias()
ret i32 0
}
@analias = alias void (), void ()* @globalfunc
define void @globalfunc() #0 {
entry:
ret void
}
declare void @callanalias() #1
; CHECK-DAG: define available_externally void @callanalias()