================
@@ -96,6 +96,7 @@ static const OffloadArchToStringMap arch_names[] = {
     SM(89),                          // Ada Lovelace
     SM(90),                          // Hopper
     SM(90a),                         // Hopper
+    SM(next),                        // Placeholder for a new arch.
----------------
Artem-B wrote:

The position of the entry in the table does not matter. Each entry will contain 
appropriate `OffloadArch::SM_##sm` enum. `SM(next)` will carry its own 
`OffloadArch::SM_next`. and it will remain so even when a new GPU gets added. 
The new GPU will get its own enum.

https://github.com/llvm/llvm-project/pull/100247
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to