[PATCH] D83423: [MC, NVPTX] Add MCAsmPrinter support for unsigned-only data directives.

Artem Belevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 8 13:36:07 PDT 2020


tra created this revision.
tra added reviewers: ABataev, grosbach.
Herald added subscribers: sanjoy.google, bixia, hiraditya, jholewinski.
Herald added a project: LLVM.

PTX does not support negative values in .bNN data directives and we must
typecast such values to unsigned before printing them.

MCAsmInfo can now specify whether such casting is necessary for particular
target.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D83423

Files:
  llvm/include/llvm/MC/MCAsmInfo.h
  llvm/lib/MC/MCExpr.cpp
  llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp
  llvm/test/CodeGen/NVPTX/data-direcitve-negative-values.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83423.276541.patch
Type: text/x-patch
Size: 6201 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200708/a5f93e74/attachment.bin>


More information about the llvm-commits mailing list