[PATCH] D120932: [CUDA] Add CUDA fatbinary magic
Artem Belevich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 3 13:51:59 PST 2022
tra accepted this revision.
tra added a comment.
This revision is now accepted and ready to land.
LGTM with a nit.
================
Comment at: llvm/lib/BinaryFormat/Magic.cpp:192-193
return file_magic::coff_object;
+ if (startswith(Magic, "\x50\xed\x55\xba"))
+ return file_magic::cuda_fatbinary;
LLVM_FALLTHROUGH;
----------------
I'd move it up to `case 0x50:`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120932/new/
https://reviews.llvm.org/D120932
More information about the llvm-commits
mailing list