brintos

brintos / llvm-project-archived public Read only

0
0
Text · 796 B · 829fc51 Raw
28 lines · plain
1; RUN: opt -mtriple=amdgcn-amd-amdhsa -module-summary %s -o %t.main.bc2; RUN: opt -mtriple=amdgcn-amd-amdhsa -module-summary %p/Inputs/in-f1.ll -o %t.in.bc3; RUN: llvm-lto -thinlto-action=run -force-import-all %t.main.bc %t.in.bc --thinlto-save-temps=%t.2.4; RUN: llvm-dis %t.2.0.3.imported.bc -o - | FileCheck --check-prefix=MOD1 %s5; RUN: llvm-dis %t.2.1.3.imported.bc -o - | FileCheck --check-prefix=MOD2 %s6 7define void @f0(ptr %p) #0 {8entry:9  call void @f1(ptr %p)10  ret void11}12 13define weak hidden void @weak_common(ptr %v) #0 {14entry:15  store i32 12345, ptr %v16  ret void17}18 19declare void @f1(ptr)20 21attributes #0 = { noinline }22 23; MOD1: define weak hidden void @weak_common24; MOD1: define available_externally void @f125 26; MOD2: define void @f127; MOD2: define weak hidden void @weak_common28