clang  6.0.0svn
Sparc.h
Go to the documentation of this file.
1 //===--- Sparc.h - Sparc-specific Tool Helpers ----------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_SPARC_H
11 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_SPARC_H
12 
13 #include "clang/Driver/Driver.h"
14 #include "llvm/ADT/StringRef.h"
15 #include "llvm/Option/Option.h"
16 #include <string>
17 #include <vector>
18 
19 namespace clang {
20 namespace driver {
21 namespace tools {
22 namespace sparc {
23 
24 enum class FloatABI {
25  Invalid,
26  Soft,
27  Hard,
28 };
29 
30 FloatABI getSparcFloatABI(const Driver &D, const llvm::opt::ArgList &Args);
31 
32 void getSparcTargetFeatures(const Driver &D, const llvm::opt::ArgList &Args,
33  std::vector<llvm::StringRef> &Features);
34 const char *getSparcAsmModeForCPU(llvm::StringRef Name,
35  const llvm::Triple &Triple);
36 
37 } // end namespace sparc
38 } // end namespace target
39 } // end namespace driver
40 } // end namespace clang
41 
42 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_SPARC_H
const char * getSparcAsmModeForCPU(llvm::StringRef Name, const llvm::Triple &Triple)
FloatABI getSparcFloatABI(const Driver &D, const llvm::opt::ArgList &Args)
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:65
void getSparcTargetFeatures(const Driver &D, const llvm::opt::ArgList &Args, std::vector< llvm::StringRef > &Features)
Dataflow Directional Tag Classes.