This is an archive of the discontinued LLVM Phabricator instance.

[MCAsmInfo] Support UsesCFIForDebug for targets with no exception handling
AbandonedPublicDraft

Authored by RamNalamothu on Apr 29 2021, 6:58 PM.

Details

Reviewers
None
Summary

This change enables emitting CFI unwind information for debugging purpose
for targets with MCAsmInfo::ExceptionsType == ExceptionHandling::None.

Enable this option for AMDGPU to prepare for future patches which add
complete CFI support.

Currently generating CFI unwind information is entangled with supporting
the exceptions, even when AsmPrinter explicitly recognizes that the unwind
tables are being generated as debug information.

In fact, the unwind information is not generated even if we specify
--force-dwarf-frame-section, unless exceptions are enabled. The LIT test
llvm/test/CodeGen/AMDGPU/debug_frame.ll demonstrates this behavior.

Diff Detail

Event Timeline

RamNalamothu created this revision.Apr 29 2021, 6:58 PM
RamNalamothu abandoned this revision.May 5 2021, 4:28 PM

Abandoning this draft revision as this is not meant for review and the indented purpose is over.

Herald added a project: Restricted Project. · View Herald TranscriptMay 5 2021, 4:28 PM