xref: /freebsd-src/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/CSKY.h (revision 81ad626541db97eb356e2c1d4a20eb2a26a766ab)
1*81ad6265SDimitry Andric //===--- CSKY.h - CSKY-specific Tool Helpers ------------------*- C++ -*-===//
2*81ad6265SDimitry Andric //
3*81ad6265SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*81ad6265SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5*81ad6265SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*81ad6265SDimitry Andric //
7*81ad6265SDimitry Andric //===----------------------------------------------------------------------===//
8*81ad6265SDimitry Andric 
9*81ad6265SDimitry Andric #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_CSKY_H
10*81ad6265SDimitry Andric #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_CSKY_H
11*81ad6265SDimitry Andric 
12*81ad6265SDimitry Andric #include "clang/Driver/Driver.h"
13*81ad6265SDimitry Andric #include "llvm/ADT/StringRef.h"
14*81ad6265SDimitry Andric #include "llvm/Option/ArgList.h"
15*81ad6265SDimitry Andric #include "llvm/Option/Option.h"
16*81ad6265SDimitry Andric #include <string>
17*81ad6265SDimitry Andric #include <vector>
18*81ad6265SDimitry Andric 
19*81ad6265SDimitry Andric namespace clang {
20*81ad6265SDimitry Andric namespace driver {
21*81ad6265SDimitry Andric namespace tools {
22*81ad6265SDimitry Andric namespace csky {
23*81ad6265SDimitry Andric 
24*81ad6265SDimitry Andric enum class FloatABI {
25*81ad6265SDimitry Andric   Invalid,
26*81ad6265SDimitry Andric   Soft,
27*81ad6265SDimitry Andric   SoftFP,
28*81ad6265SDimitry Andric   Hard,
29*81ad6265SDimitry Andric };
30*81ad6265SDimitry Andric 
31*81ad6265SDimitry Andric FloatABI getCSKYFloatABI(const Driver &D, const llvm::opt::ArgList &Args);
32*81ad6265SDimitry Andric 
33*81ad6265SDimitry Andric void getCSKYTargetFeatures(const Driver &D, const llvm::Triple &Triple,
34*81ad6265SDimitry Andric                            const llvm::opt::ArgList &Args,
35*81ad6265SDimitry Andric                            llvm::opt::ArgStringList &CmdArgs,
36*81ad6265SDimitry Andric                            std::vector<llvm::StringRef> &Features);
37*81ad6265SDimitry Andric 
38*81ad6265SDimitry Andric llvm::Optional<llvm::StringRef> getCSKYArchName(const Driver &D,
39*81ad6265SDimitry Andric                                                 const llvm::opt::ArgList &Args,
40*81ad6265SDimitry Andric                                                 const llvm::Triple &Triple);
41*81ad6265SDimitry Andric 
42*81ad6265SDimitry Andric } // end namespace csky
43*81ad6265SDimitry Andric } // namespace tools
44*81ad6265SDimitry Andric } // end namespace driver
45*81ad6265SDimitry Andric } // end namespace clang
46*81ad6265SDimitry Andric 
47*81ad6265SDimitry Andric #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_CSKY_H
48