[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:30 PST 2025


================
@@ -1571,6 +1572,13 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
     } else {
       Diag(diag::err_drv_dxc_missing_target_profile);
     }
+  } else if (IsC2000Mode()) {
+    llvm::Triple T(TargetTriple);
+    T.setArch(llvm::Triple::c2000);
----------------
DragonDisciple wrote:

Not so sure about the Arch/Vendor. The architecture itself is the 'C28X' or 'C28', so 'c28' makes more sense than C2000.
As for vendor, maybe adding a TI vendor would be preferred? I'm not sure if there's a decorum for that field. We use c29-ti and arm-ti for our own toolchains.

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


More information about the cfe-commits mailing list