[clang] [Clang][NFC[ Move OffloadArch enum to a generic location (PR #137070)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 24 09:03:12 PDT 2025


================
@@ -0,0 +1,126 @@
+#include "clang/Basic/OffloadArch.h"
+
+#include "llvm/ADT/StringRef.h"
+
+#include <algorithm>
+
+namespace clang {
+
+namespace {
+struct OffloadArchToStringMap {
+  OffloadArch arch;
+  const char *arch_name;
+  const char *virtual_arch_name;
----------------
jhuber6 wrote:

While we're here, can we update these to the LLVM style?
```suggestion
  OffloadArch Arch
  const char *ArchName;
  const char *VirtualArchName;
```

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


More information about the cfe-commits mailing list