[PATCH] D45822: [DEBUGINFO, NVPTX] Try to pack bytes data into a single string.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 19 08:59:41 PDT 2018


ABataev created this revision.
ABataev added reviewers: tra, jlebar, echristo.
Herald added a subscriber: jholewinski.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D45822

Files:
  include/llvm/MC/MCAsmInfo.h
  lib/CodeGen/AsmPrinter/DIE.cpp
  lib/MC/MCAsmStreamer.cpp
  lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp
  test/DebugInfo/NVPTX/cu-range-hole.ll
  test/DebugInfo/NVPTX/debug-file-loc.ll
  test/DebugInfo/NVPTX/debug-info.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45822.143105.patch
Type: text/x-patch
Size: 287549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180419/64c5a276/attachment-0001.bin>


More information about the llvm-commits mailing list