brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · a96b519 Raw
26 lines · plain
1; RUN: llc < %s -mtriple=nvptx64-nvidia-cuda | FileCheck %s2 3; Test that translateToNVVMDWARFAddrSpace() function translates NVVM IR address space4; value `Shared` (3) to the corresponding DWARF DW_AT_address_class attribute for PTX.5 6; CHECK: .section .debug_info7; CHECK:      .b8 103                                 // DW_AT_name8; CHECK-NEXT: .b8 09; CHECK-NEXT: .b32 55                                 // DW_AT_type10; CHECK-NEXT: .b8 1                                   // DW_AT_decl_file11; CHECK-NEXT: .b8 1                                   // DW_AT_decl_line12; CHECK-NEXT: .b8 8                                   // DW_AT_address_class13 14@g = internal addrspace(3) global i32 0, align 4, !dbg !015 16!llvm.dbg.cu = !{!2}17!llvm.module.flags = !{!6}18 19!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())20!1 = distinct !DIGlobalVariable(name: "g", linkageName: "g", scope: !2, file: !3, line: 1, type: !5, isLocal: true, isDefinition: true)21!2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, globals: !4)22!3 = !DIFile(filename: "test.cu", directory: "test")23!4 = !{!0}24!5 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)25!6 = !{i32 1, !"Debug Info Version", i32 3}26