| 1 |
; RUN: opt -thinlto-bc -o %t.o %s |
| 2 |
|
| 3 |
; RUN: llvm-lto2 run -thinlto-distributed-indexes %t.o \ |
| 4 |
; RUN: -o %t2.index \ |
| 5 |
; RUN: -r=%t.o,_use_arc,px |
| 6 |
|
| 7 |
; RUN: %clang_cc1 -O2 -triple x86_64-apple-darwin \ |
| 8 |
; RUN: -emit-obj -fthinlto-index=%t.o.thinlto.bc \ |
| 9 |
; RUN: -o %t.native.o -x ir %t.o |
| 10 |
|
| 11 |
target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" |
| 12 |
target triple = "x86_64-apple-darwin" |
| 13 |
|
| 14 |
define void @use_arc(ptr %a, ptr %b) { |
| 15 |
call void (...) @llvm.objc.clang.arc.use(ptr %a, ptr %b) nounwind |
| 16 |
ret void |
| 17 |
} |
| 18 |
|
| 19 |
declare void @llvm.objc.clang.arc.use(...) nounwind |