[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:28 PST 2025
================
@@ -9111,3 +9118,50 @@ def wasm_opt : Flag<["--"], "wasm-opt">,
Group<m_Group>,
HelpText<"Enable the wasm-opt optimizer (default)">,
MarshallingInfoNegativeFlag<LangOpts<"NoWasmOpt">>;
+
+
+
+//===----------------------------------------------------------------------===//
+// cl2000 Options
+//===----------------------------------------------------------------------===//
+
+
+
+
+def cl2000_include_path : Joined<["--"], "include_path=">, Group<cl2000_group>,
----------------
DragonDisciple wrote:
What's the use-case for this particular set of options? I'd suggest that options which may change internal definitions or affect the parse should be here. Perhaps everything else can somehow be ignored silently.
- -ml for large_model is shorthand for --large_memory_model, but that's not present in this list.
- --preinclude=<file>, which should be identical to 'include_' above
- --define and --undefine for -D and -U, respectively
- Language options --c89, --c99, --c1, --c++03
- --cpp_default (-fg), which is similar to (but not identical to) -x cpp
- --c_file/-fc and --cpp_file/-fp to set single file language types
These are mostly presented as examples. If only a subset of these options are merged, then I fear that the commit becomes very narrow in its use-case. If upstream is fine with that, then I'd be fine too.
https://github.com/llvm/llvm-project/pull/125663
More information about the cfe-commits
mailing list