mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
66d4df8027
Summary: ".weak" symbols cannot be consumed by ptxas (PR21685). This patch makes the weak directive in MCAsmPrinter customizable, and disables emitting ".weak" symbols for NVPTX. Test Plan: weak-linkage.ll Reviewers: jholewinski Reviewed By: jholewinski Subscribers: majnemer, jholewinski, llvm-commits Differential Revision: http://reviews.llvm.org/D6455 llvm-svn: 223077
19 lines
297 B
LLVM
19 lines
297 B
LLVM
; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
|
|
|
|
; CHECK: // .weak foo
|
|
; CHECK: .weak .func foo
|
|
define weak void @foo() {
|
|
ret void
|
|
}
|
|
|
|
; CHECK: // .weak baz
|
|
; CHECK: .weak .func baz
|
|
define weak_odr void @baz() {
|
|
ret void
|
|
}
|
|
|
|
; CHECK: .visible .func bar
|
|
define void @bar() {
|
|
ret void
|
|
}
|