xref: /freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/LoongArch.h (revision 9f23cbd6cae82fd77edfad7173432fa8dccd0a95)
1 //===--- LoongArch.h - LoongArch-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_LOONGARCH_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_LOONGARCH_H
11 
12 #include "clang/Driver/Driver.h"
13 #include "llvm/ADT/StringRef.h"
14 #include "llvm/Option/Option.h"
15 
16 namespace clang {
17 namespace driver {
18 namespace tools {
19 namespace loongarch {
20 void getLoongArchTargetFeatures(const Driver &D, const llvm::Triple &Triple,
21                                 const llvm::opt::ArgList &Args,
22                                 std::vector<llvm::StringRef> &Features);
23 
24 StringRef getLoongArchABI(const Driver &D, const llvm::opt::ArgList &Args,
25                           const llvm::Triple &Triple);
26 } // end namespace loongarch
27 } // end namespace tools
28 } // end namespace driver
29 } // end namespace clang
30 
31 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_LOONGARCH_H
32