================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits