1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/Linker/addrspace.ll
Teresa Johnson 1c2dd6d975 [IRMover] Set Address Space for moved global values
Summary:
Set Address Space when creating a new function (from another).

Fix PR41154.

Patch by Ehud Katz <ehudkatz@gmail.com>

Reviewers: tejohnson, chandlerc

Reviewed By: tejohnson

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D69361
2019-11-05 16:32:48 -08:00

13 lines
286 B
LLVM

; RUN: llvm-link %s -S | FileCheck %s
@G = addrspace(2) global i32 256
; CHECK: @G = addrspace(2) global i32
@GA = alias i32, i32 addrspace(2)* @G
; CHECK: @GA = alias i32, i32 addrspace(2)* @G
define void @foo() addrspace(3) {
; CHECK: define void @foo() addrspace(3)
ret void
}