aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/NVPTX/managed.ll
blob: 4d7e7817f77b0948e46480f6875773e92cfed7ba (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s


; CHECK: .visible .global .align 4 .u32 device_g;
@device_g = addrspace(1) global i32 zeroinitializer
; CHECK: .visible .global .attribute(.managed) .align 4 .u32 managed_g;
@managed_g = addrspace(1) global i32 zeroinitializer


!nvvm.annotations = !{!0}
!0 = metadata !{i32 addrspace(1)* @managed_g, metadata !"managed", i32 1}