llvm-for-llvmta/test/CodeGen/NVPTX/managed.ll

12 lines
369 B
LLVM
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
; 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 = !{i32 addrspace(1)* @managed_g, !"managed", i32 1}