xref: /openbsd-src/gnu/llvm/clang/lib/Driver/ToolChains/Arch/Sparc.h (revision 12c855180aad702bbcca06e0398d774beeafb155)
1e5dd7070Spatrick //===--- Sparc.h - Sparc-specific Tool Helpers ----------------------*- C++ -*-===//
2e5dd7070Spatrick //
3e5dd7070Spatrick // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4e5dd7070Spatrick // See https://llvm.org/LICENSE.txt for license information.
5e5dd7070Spatrick // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6e5dd7070Spatrick //
7e5dd7070Spatrick //===----------------------------------------------------------------------===//
8e5dd7070Spatrick 
9e5dd7070Spatrick #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_SPARC_H
10e5dd7070Spatrick #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_SPARC_H
11e5dd7070Spatrick 
12e5dd7070Spatrick #include "clang/Driver/Driver.h"
13e5dd7070Spatrick #include "llvm/ADT/StringRef.h"
14e5dd7070Spatrick #include "llvm/Option/Option.h"
15e5dd7070Spatrick #include <string>
16e5dd7070Spatrick #include <vector>
17e5dd7070Spatrick 
18e5dd7070Spatrick namespace clang {
19e5dd7070Spatrick namespace driver {
20e5dd7070Spatrick namespace tools {
21e5dd7070Spatrick namespace sparc {
22e5dd7070Spatrick 
23e5dd7070Spatrick enum class FloatABI {
24e5dd7070Spatrick   Invalid,
25e5dd7070Spatrick   Soft,
26e5dd7070Spatrick   Hard,
27e5dd7070Spatrick };
28e5dd7070Spatrick 
29e5dd7070Spatrick FloatABI getSparcFloatABI(const Driver &D, const llvm::opt::ArgList &Args);
30e5dd7070Spatrick 
31*12c85518Srobert std::string getSparcTargetCPU(const Driver &D, const llvm::opt::ArgList &Args,
32*12c85518Srobert                               const llvm::Triple &Triple);
33*12c85518Srobert 
34e5dd7070Spatrick void getSparcTargetFeatures(const Driver &D, const llvm::opt::ArgList &Args,
35e5dd7070Spatrick                             std::vector<llvm::StringRef> &Features);
36e5dd7070Spatrick const char *getSparcAsmModeForCPU(llvm::StringRef Name,
37e5dd7070Spatrick                                   const llvm::Triple &Triple);
38e5dd7070Spatrick 
39e5dd7070Spatrick } // end namespace sparc
40e5dd7070Spatrick } // end namespace target
41e5dd7070Spatrick } // end namespace driver
42e5dd7070Spatrick } // end namespace clang
43e5dd7070Spatrick 
44e5dd7070Spatrick #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_SPARC_H
45