This is an archive of the discontinued LLVM Phabricator instance.

[CUDA][HIP][DebugInfo] Skip reference device function
ClosedPublic

Authored by hliao on Mar 5 2019, 12:34 PM.

Details

Summary
  • A device functions could be used as a non-type template parameter in a global/host function template. However, we should not try to retrieve that device function and reference it in the host-side debug info as it's only valid at device side.

Event Timeline

hliao created this revision.Mar 5 2019, 12:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 5 2019, 12:34 PM
aprantl added a project: debug-info.
hliao updated this revision to Diff 189488.Mar 6 2019, 6:00 AM

make the test more robust to potential metadata identifier change

aprantl added inline comments.Mar 6 2019, 8:35 AM
clang/lib/CodeGen/CGDebugInfo.cpp
1755

This wasn't there before... why is this necessary?

hliao marked an inline comment as done.Mar 6 2019, 8:42 AM
hliao added inline comments.
clang/lib/CodeGen/CGDebugInfo.cpp
1755

That's from the original line 1752.

aprantl accepted this revision.Mar 6 2019, 1:09 PM
aprantl added inline comments.
clang/lib/CodeGen/CGDebugInfo.cpp
1755

Oh :-)

This revision is now accepted and ready to land.Mar 6 2019, 1:09 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 6 2019, 1:15 PM