1 //===--- CSKY.h - CSKY-specific Tool Helpers ------------------*- C++ -*-===//
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
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"
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
44 } // end namespace driver
45 } // end namespace clang
47 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_CSKY_H