[DEBUGINFO, NVPTX] Try to pack bytes data into a single string.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 24 Oct 2018 14:04:00 +0000 (14:04 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 24 Oct 2018 14:04:00 +0000 (14:04 +0000)
commitc15c853c3a4bf16e6065ad326c7279d38dba57db
tree00b128d85f70ad558f733ae529175f53effbf059
parente8437cbf5e9c41c27da6be13996963529c8ca1bf
[DEBUGINFO, NVPTX] Try to pack bytes data into a single string.

Summary:
If the target does not support `.asciz` and `.ascii` directives, the
strings are represented as bytes and each byte is placed on the new line
as a separate byte directive `.b8 <data>`. NVPTX target allows to
represent the vector of the data of the same type as a vector, where
values are separated using `,` symbol: `.b8 <data1>,<data2>,...`. This
allows to reduce the size of the final PTX file. Ptxas tool includes ptx
files into the resulting binary object, so reducing the size of the PTX
file is important.

Reviewers: tra, jlebar, echristo

Subscribers: jholewinski, llvm-commits

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

llvm-svn: 345142
llvm/include/llvm/MC/MCStreamer.h
llvm/lib/CodeGen/AsmPrinter/DIE.cpp
llvm/lib/MC/MCAsmStreamer.cpp
llvm/lib/MC/MCStreamer.cpp
llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXTargetStreamer.cpp
llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXTargetStreamer.h
llvm/test/DebugInfo/NVPTX/cu-range-hole.ll
llvm/test/DebugInfo/NVPTX/dbg-declare-alloca.ll
llvm/test/DebugInfo/NVPTX/debug-file-loc.ll
llvm/test/DebugInfo/NVPTX/debug-info.ll
llvm/test/DebugInfo/NVPTX/debug-loc-offset.ll