[clang] [llvm] [clangd] Add support for the c2000 architecture (PR #125663)

James Nagurne via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 4 14:50:29 PST 2025


================
@@ -0,0 +1,356 @@
+#include "C2000.h"
+#include "Targets.h"
+#include "clang/Basic/Builtins.h"
+#include "clang/Basic/Diagnostic.h"
+#include "clang/Basic/MacroBuilder.h"
+#include "clang/Basic/TargetBuiltins.h"
+
+using namespace clang;
+using namespace clang::targets;
+
+const char *const C2000TargetInfo::GCCRegNames[] = {
+    "ACC", "XAR0", "XAR1", "XAR2", "XAR3", "XAR4", "XAR5", "XAR6", "XAR7"};
----------------
DragonDisciple wrote:

Was there a reason for defining this? The TI compilers don't support extended assembly syntax, which is what this list is used for, if I remember correctly.

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


More information about the cfe-commits mailing list