This is an archive of the discontinued LLVM Phabricator instance.

[NVPTX] Fix LIT tests with default nameTableKind
ClosedPublic

Authored by asavonic on Apr 20 2022, 10:28 AM.

Details

Summary

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.

Diff Detail

Event Timeline

asavonic created this revision.Apr 20 2022, 10:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 20 2022, 10:28 AM
asavonic requested review of this revision.Apr 20 2022, 10:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 20 2022, 10:28 AM
tra accepted this revision.Apr 20 2022, 11:35 AM
This revision is now accepted and ready to land.Apr 20 2022, 11:35 AM
This revision was landed with ongoing or failed builds.Apr 21 2022, 6:14 AM
This revision was automatically updated to reflect the committed changes.