[lld] [clang] [llvm] [flang] [AMDGPU] Introduce GFX9/10.1/10.3/11 Generic Targets (PR #76955)

Pierre van Houtryve via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 9 07:15:57 PST 2024


================
@@ -839,6 +851,15 @@ enum : unsigned {
   EF_AMDGPU_FEATURE_SRAMECC_OFF_V4 = 0x800,
   // SRAMECC is on.
   EF_AMDGPU_FEATURE_SRAMECC_ON_V4 = 0xc00,
+
+  // Generic target versioning. This is contained in the list byte of EFLAGS.
+  EF_AMDGPU_GENERIC_VERSION = 0xff000000,
+  EF_AMDGPU_GENERIC_VERSION_OFFSET = 24,
----------------
Pierre-vh wrote:

This will be made generic instead: teach elfdumper to shift EFLAGS to extract any integer

TODO: Review how the generic versioning system works in practice

https://github.com/llvm/llvm-project/pull/76955


More information about the cfe-commits mailing list