[all-commits] [llvm/llvm-project] 96e748: [NVPTX] Fix LIT tests with default nameTableKind

Andrew Savonichev via All-commits all-commits at lists.llvm.org
Thu Apr 21 06:14:25 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 96e7487013776c26f0a5203b2e4b104b61efcedf
      https://github.com/llvm/llvm-project/commit/96e7487013776c26f0a5203b2e4b104b61efcedf
  Author: Andrew Savonichev <andrew.savonichev at gmail.com>
  Date:   2022-04-21 (Thu, 21 Apr 2022)

  Changed paths:
    M llvm/test/DebugInfo/NVPTX/dbg-value-const-byref.ll
    A llvm/test/DebugInfo/NVPTX/debug-name-table.ll

  Log Message:
  -----------
  [NVPTX] Fix LIT tests with default nameTableKind

Default nameTableKind results in the following DWARF section:

    .section .debug_pubnames
    {
      .b32 LpubNames_end0-LpubNames_start0    // Length of Public Names Info
      LpubNames_start0:
      [...]
      LpubNames_end0:
    }

Without -mattr=+ptx75 ptxas complains about labels and label
expressions:

error   : Feature 'labels1 - labels2 expression in .section' requires
PTX ISA .version 7.5 or later
error   : Feature 'Defining labels in .section' requires PTX ISA
.version 7.0 or later

The patch modifies dbg-value-const-byref.ll to let it run without PTX
7.5 (available from CUDA 11.0), and adds a new test just for this
case.

Differential revision: https://reviews.llvm.org/D124108




More information about the All-commits mailing list