[DEBUGINFO, NVPTX] Emit correct debug information for local variables.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 26 Jul 2018 16:29:52 +0000 (16:29 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 26 Jul 2018 16:29:52 +0000 (16:29 +0000)
commit4dd7558fab0da7889c1e31bcc741880d0e6cbb52
tree8a1aafb3d78f88ef5d8bec991a4beb3fe74864ce
parentb381e7e59a182c418c44cea54c127ec2366a40d2
[DEBUGINFO, NVPTX] Emit correct debug information for local variables.

Summary:
NVPTX target dos not use register-based frame information. Instead it
relies on the artificial local_depot that is used instead of the frame
and the data for variables must be emitted relatively to this
local_depot.

Reviewers: tra, jlebar, echristo

Subscribers: jholewinski, aprantl, JDevlieghere, llvm-commits

Differential Revision: https://reviews.llvm.org/D45963

llvm-svn: 338039
llvm/include/llvm/CodeGen/AsmPrinter.h
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h
llvm/lib/Target/NVPTX/NVPTXFrameLowering.cpp
llvm/lib/Target/NVPTX/NVPTXFrameLowering.h
llvm/test/DebugInfo/NVPTX/dbg-declare-alloca.ll