[clang] [llvm] [clang] Add support for the c2000 architecture (PR #125663)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 5 01:57:21 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"};
----------------
student433 wrote:
You're right! This is somewhere extended to codegen and support for this syntax could be omitted if TI compilers do not support them :)
P.S. it was just added for fulfillment with no strong reason behind it
https://github.com/llvm/llvm-project/pull/125663
More information about the cfe-commits
mailing list