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
19namespace clang {
20namespace driver {
21namespace tools {
22namespace csky {
23
24enum class FloatABI {
25 Invalid,
26 Soft,
27 SoftFP,
28 Hard,
29};
30
31FloatABI getCSKYFloatABI(const Driver &D, const llvm::opt::ArgList &Args);
32
33void 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
38std::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
48

source code of clang/lib/Driver/ToolChains/Arch/CSKY.h