clang  15.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 
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.h
clang::driver::tools::csky::FloatABI::Hard
@ Hard
clang::driver::tools::csky::getCSKYTargetFeatures
void getCSKYTargetFeatures(const Driver &D, const llvm::Triple &Triple, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs, std::vector< llvm::StringRef > &Features)
clang::driver::tools::csky::FloatABI::SoftFP
@ SoftFP
llvm::Optional< llvm::StringRef >
clang::driver::tools::csky::FloatABI::Invalid
@ Invalid
clang::driver::tools::csky::getCSKYFloatABI
FloatABI getCSKYFloatABI(const Driver &D, const llvm::opt::ArgList &Args)
clang::driver::tools::csky::getCSKYArchName
llvm::Optional< llvm::StringRef > getCSKYArchName(const Driver &D, const llvm::opt::ArgList &Args, const llvm::Triple &Triple)
clang::driver::tools::csky::FloatABI
FloatABI
Definition: CSKY.h:24
clang
Definition: CalledOnceCheck.h:17
clang::driver::Driver
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:72
clang::driver::tools::csky::FloatABI::Soft
@ Soft