clang  19.0.0git
CSKY.h
Go to the documentation of this file.
1 //===--- CSKY.h - CSKY-specific Tool Helpers ------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_CSKY_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_CSKY_H
11 
12 #include "clang/Driver/Driver.h"
13 #include "llvm/ADT/StringRef.h"
14 #include "llvm/Option/ArgList.h"
15 #include "llvm/Option/Option.h"
16 #include <string>
17 #include <vector>
18 
19 namespace clang {
20 namespace driver {
21 namespace tools {
22 namespace csky {
23 
24 enum class FloatABI {
25  Invalid,
26  Soft,
27  SoftFP,
28  Hard,
29 };
30 
31 FloatABI getCSKYFloatABI(const Driver &D, const llvm::opt::ArgList &Args);
32 
33 void getCSKYTargetFeatures(const Driver &D, const llvm::Triple &Triple,
34  const llvm::opt::ArgList &Args,
35  llvm::opt::ArgStringList &CmdArgs,
36  std::vector<llvm::StringRef> &Features);
37 
38 std::optional<llvm::StringRef> getCSKYArchName(const Driver &D,
39  const llvm::opt::ArgList &Args,
40  const llvm::Triple &Triple);
41 
42 } // end namespace csky
43 } // namespace tools
44 } // end namespace driver
45 } // end namespace clang
46 
47 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_CSKY_H
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:77
FloatABI getCSKYFloatABI(const Driver &D, const llvm::opt::ArgList &Args)
void getCSKYTargetFeatures(const Driver &D, const llvm::Triple &Triple, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs, std::vector< llvm::StringRef > &Features)
std::optional< llvm::StringRef > getCSKYArchName(const Driver &D, const llvm::opt::ArgList &Args, const llvm::Triple &Triple)
The JSON file list parser is used to communicate input to InstallAPI.