[PATCH] D135832: Do not append terminating NUL to the string with embedded GPU binary.

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 12 17:06:50 PDT 2022


tra created this revision.
Herald added a subscriber: bixia.
Herald added a project: All.
tra retitled this revision from "Do not append terminating NUL to the binary string with embedded fatbin." to "Do not append terminating NUL to the string with embedded GPU binary.".
tra added a reviewer: yaxunl.
tra published this revision for review.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Extra NUL does not impact functionality of the generated code, but it confuses
various NVIDIA tools used to examine embedded GPU binaries.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135832

Files:
  clang/lib/CodeGen/CGCUDANV.cpp
  clang/lib/CodeGen/CodeGenModule.cpp
  clang/lib/CodeGen/CodeGenModule.h
  clang/test/CodeGenCUDA/device-stub.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135832.467307.patch
Type: text/x-patch
Size: 5835 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221013/74364a3a/attachment-0001.bin>


More information about the cfe-commits mailing list