[flang-commits] [llvm] [lld] [flang] [clang] [AMDGPU] Introduce Code Object V6 (PR #76954)
Matt Arsenault via flang-commits
flang-commits at lists.llvm.org
Thu Jan 4 18:40:24 PST 2024
================
@@ -106,6 +107,25 @@ uint32_t AMDGPU::calcEFlagsV4() const {
return retMach | retXnack | retSramEcc;
}
+uint32_t AMDGPU::calcEFlagsV6() const {
+ uint32_t flags = calcEFlagsV4();
+
+ uint32_t genericVersion =
+ getEFlags(ctx.objectFiles[0]) & EF_AMDGPU_GENERIC_VERSION;
+
+ // Verify that all input files have compatible generic version.
+ for (InputFile *f : ArrayRef(ctx.objectFiles).slice(1)) {
+ if (genericVersion != (getEFlags(f) & EF_AMDGPU_GENERIC_VERSION)) {
+ // TODO: test
----------------
arsenm wrote:
This is tested?
https://github.com/llvm/llvm-project/pull/76954
More information about the flang-commits
mailing list