================
@@ -0,0 +1,100 @@
+#ifndef LLVM_CLANG_LIB_BASIC_TARGETS_C2000_H
+#define LLVM_CLANG_LIB_BASIC_TARGETS_C2000_H
+
+#include "clang/Basic/LLVM.h"
+#include "clang/Basic/TargetInfo.h"
+#include "llvm/Support/Compiler.h"
+#include "llvm/TargetParser/Triple.h"
+
+namespace clang {
+namespace targets {
+
+class C2000TargetInfo : public TargetInfo {
+  static const char *const GCCRegNames[];
+  bool eabi = false;
+  bool strict = false;
+  bool opt = false;
+  bool fpu64 = false;
+  bool fpu32 = false;
+  bool relaxed = false;
+  bool tmu_support = false;
+  bool cla_support = false;
+  bool vcu_support = false;
+  bool cla0 = false;
+  bool cla1 = false;
+  bool cla2 = false;
+  bool vcu2 = false;
+  bool vcrc = false;
+  bool tmu1 = false;
+  bool idiv0 = false;
+
+public:
+  C2000TargetInfo(const llvm::Triple &Triple, const TargetOptions &)
+      : TargetInfo(Triple) {
+    TLSSupported = false;
----------------
DragonDisciple wrote:

Note that CharWidth isn't modified to 16 here to avoid an assertion. The C2000 
ISA is 16-bit addressable.

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

Reply via email to