[PATCH] D118949: [HIP] Support code object v5
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 3 14:58:31 PST 2022
tra accepted this revision.
tra added a comment.
This revision is now accepted and ready to land.
Few nits, LGTM in general.
================
Comment at: clang/lib/Driver/ToolChains/ROCm.h:27
+struct DeviceLibABIVersion {
+ unsigned Value = 0;
+ DeviceLibABIVersion(unsigned V) : Value(V) {}
----------------
`ABIVersion`?
================
Comment at: clang/lib/Driver/ToolChains/ROCm.h:29
+ DeviceLibABIVersion(unsigned V) : Value(V) {}
+ static DeviceLibABIVersion fromCodeObjectVersion(unsigned V) {
+ if (V < 4)
----------------
CodeObjectVersion
================
Comment at: clang/lib/Driver/ToolChains/ROCm.h:34-39
+ /// Whether ABI version bc file is requested.
+ bool requiresLibrary() { return Value >= 500; }
+ std::string toString() {
+ assert(Value % 100 == 0 && "Not supported");
+ return Twine(Value / 100).str();
+ }
----------------
This could use a comment on how code object version relates to the ABI version and what makes ABI version 500 special.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118949/new/
https://reviews.llvm.org/D118949
More information about the cfe-commits
mailing list