[PATCH] D125165: [Clang] Introduce clang-offload-packager tool to bundle device files
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 11 10:23:53 PDT 2022
yaxunl added inline comments.
================
Comment at: clang/docs/ClangOffloadPackager.rst:31-32
+ uint32_t Flags;
+ StringMap<StringRef> StringData;
+ MemoryBufferRef Image;
+ };
----------------
This makes the file format depend on LLVM version and potentially standard C++ library version.
If it is consumed by the same version of LLVM, it may be fine.
However, if it is intended for a generic file format to be consumed by generic offloading language runtimes, it is better to use C-like simple data layout which does not depend on LLVM or standard C++ library.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125165/new/
https://reviews.llvm.org/D125165
More information about the cfe-commits
mailing list