blob: 829fc515ee306d46633ffe59699f05d262b0b5ff [file] [log] [blame]
; RUN: opt -mtriple=amdgcn-amd-amdhsa -module-summary %s -o %t.main.bc
; RUN: opt -mtriple=amdgcn-amd-amdhsa -module-summary %p/Inputs/in-f1.ll -o %t.in.bc
; RUN: llvm-lto -thinlto-action=run -force-import-all %t.main.bc %t.in.bc --thinlto-save-temps=%t.2.
; RUN: llvm-dis %t.2.0.3.imported.bc -o - | FileCheck --check-prefix=MOD1 %s
; RUN: llvm-dis %t.2.1.3.imported.bc -o - | FileCheck --check-prefix=MOD2 %s
define void @f0(ptr %p) #0 {
entry:
call void @f1(ptr %p)
ret void
}
define weak hidden void @weak_common(ptr %v) #0 {
entry:
store i32 12345, ptr %v
ret void
}
declare void @f1(ptr)
attributes #0 = { noinline }
; MOD1: define weak hidden void @weak_common
; MOD1: define available_externally void @f1
; MOD2: define void @f1
; MOD2: define weak hidden void @weak_common