mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 15:19:33 +00:00
759814f8e1
Summary: This implements a missing feature to allow importing of aliases, which was previously disabled because alias cannot be available_externally. We instead import an alias as a copy of its aliasee. Some additional work was required in the IndexBitcodeWriter for the distributed build case, to ensure that the aliasee has a value id in the distributed index file (i.e. even when it is not being imported directly). This is a performance win in codes that have many aliases, e.g. C++ applications that have many constructor and destructor aliases. Reviewers: pcc Subscribers: mehdi_amini, inglorion, eraman, llvm-commits Differential Revision: https://reviews.llvm.org/D40747 llvm-svn: 320895
15 lines
275 B
LLVM
15 lines
275 B
LLVM
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
@G = internal global i32 7
|
|
define i32 @g() {
|
|
entry:
|
|
%0 = load i32, i32* @G
|
|
ret i32 %0
|
|
}
|
|
|
|
@analias = alias void (...), bitcast (void ()* @aliasee to void (...)*)
|
|
define void @aliasee() {
|
|
entry:
|
|
ret void
|
|
}
|