mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-06 04:19:10 +00:00
![Peter Collingbourne](/assets/img/avatar_default.png)
The module splitter splits a module into linkable partitions. It will be used to implement parallel LTO code generation. This initial version of the splitter does not attempt to deal with the somewhat subtle symbol visibility issues around module splitting. These will be dealt with in a future change. Differential Revision: http://reviews.llvm.org/D12132 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245662 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
416 B
LLVM
20 lines
416 B
LLVM
; RUN: llvm-split -o %t %s
|
|
; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=CHECK0 %s
|
|
; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=CHECK1 %s
|
|
|
|
$foo = comdat any
|
|
|
|
; CHECK0: define void @foo()
|
|
; CHECK1: declare void @foo()
|
|
define void @foo() comdat {
|
|
call void @bar()
|
|
ret void
|
|
}
|
|
|
|
; CHECK0: define void @bar()
|
|
; CHECK1: declare void @bar()
|
|
define void @bar() comdat($foo) {
|
|
call void @foo()
|
|
ret void
|
|
}
|