[docs] Fix build-docs.sh
[llvm-project.git] / clang / lib / Driver / ToolChains / Arch / CSKY.h
blobd23da1d66e3578e6a0afd7662ec176b1ec41d618
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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_CSKY_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_CSKY_H
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>
19 namespace clang {
20 namespace driver {
21 namespace tools {
22 namespace csky {
24 enum class FloatABI {
25 Invalid,
26 Soft,
27 SoftFP,
28 Hard,
31 FloatABI getCSKYFloatABI(const Driver &D, const llvm::opt::ArgList &Args);
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);
38 llvm::Optional<llvm::StringRef> getCSKYArchName(const Driver &D,
39 const llvm::opt::ArgList &Args,
40 const llvm::Triple &Triple);
42 } // end namespace csky
43 } // namespace tools
44 } // end namespace driver
45 } // end namespace clang
47 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_CSKY_H