[CSInfo][MIPS][DwarfDebug] Add support for delay slots
authorDjordje Todorovic <djordje.todorovic@syrmia.com>
Wed, 3 Jun 2020 08:37:41 +0000 (10:37 +0200)
committerDjordje Todorovic <djordje.todorovic@syrmia.com>
Wed, 3 Jun 2020 09:25:17 +0000 (11:25 +0200)
commitdd1bc59b729a31d6c0fe3aecc8559b9349363bf9
tree31f51574590b6423f742f374c381674def717ecb
parentd7d5dd31fc6f05daf4758e1523c86401aa4e3f2a
[CSInfo][MIPS][DwarfDebug] Add support for delay slots

This adds call site info support for call instructions with delay slot.
Search for instructions inside call delay slot, which load value
into parameter forwarding registers.
Return address of the call points to instruction after call delay slot,
which is not the one, immediately after the call instruction.

Patch by Nikola Tesic

Differential revision: https://reviews.llvm.org/D78107
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/test/DebugInfo/MIR/Mips/dbg-call-site-delay-slot-interpretation-64bit.mir [new file with mode: 0644]
llvm/test/DebugInfo/MIR/Mips/dbg-call-site-delay-slot-interpretation.mir [new file with mode: 0644]
llvm/test/DebugInfo/Mips/dbg-call-site-low-pc.ll [new file with mode: 0644]