clang 8.0.0

PPC.h
Go to the documentation of this file.
1 //===--- PPC.h - PPC-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_PPC_H
11 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_PPC_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 ppc {
23
24 bool hasPPCAbiArg(const llvm::opt::ArgList &Args, const char *Value);
25
26 enum class FloatABI {
27 Invalid,
28 Soft,
29 Hard,
30 };
31
32 enum class ReadGOTPtrMode {
33 Bss,
34 SecurePlt,
35 };
36
37 FloatABI getPPCFloatABI(const Driver &D, const llvm::opt::ArgList &Args);
38
39 std::string getPPCTargetCPU(const llvm::opt::ArgList &Args);
40 const char *getPPCAsmModeForCPU(StringRef Name);
41 ReadGOTPtrMode getPPCReadGOTPtrMode(const Driver &D, const llvm::Triple &Triple,
42 const llvm::opt::ArgList &Args);
43
44 void getPPCTargetFeatures(const Driver &D, const llvm::Triple &Triple,
45 const llvm::opt::ArgList &Args,
46 std::vector<llvm::StringRef> &Features);
47
48 } // end namespace ppc
49 } // end namespace target
50 } // end namespace driver
51 } // end namespace clang
52
53 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_PPC_H
clang::driver::tools::ppc::getPPCAsmModeForCPU
const char * getPPCAsmModeForCPU(StringRef Name)
Definition: PPC.cpp:89
clang::driver::tools::ppc::ReadGOTPtrMode
ReadGOTPtrMode
Definition: PPC.h:32
Value
Value
Definition: UninitializedValues.cpp:102
clang::driver::tools::ppc::FloatABI::Hard
clang::driver::tools::ppc::getPPCFloatABI
FloatABI getPPCFloatABI(const Driver &D, const llvm::opt::ArgList &Args)
clang::driver::Driver
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:58
clang::driver::tools::ppc::FloatABI
FloatABI
Definition: PPC.h:26
Driver.h
clang::driver::tools::ppc::FloatABI::Soft
clang::driver::tools::ppc::hasPPCAbiArg
bool hasPPCAbiArg(const llvm::opt::ArgList &Args, const char *Value)
clang::driver::tools::ppc::getPPCTargetCPU
std::string getPPCTargetCPU(const llvm::opt::ArgList &Args)
clang::driver::tools::ppc::ReadGOTPtrMode::Bss
clang::driver::tools::ppc::ReadGOTPtrMode::SecurePlt
clang::driver::tools::ppc::getPPCReadGOTPtrMode
ReadGOTPtrMode getPPCReadGOTPtrMode(const Driver &D, const llvm::Triple &Triple, const llvm::opt::ArgList &Args)
clang
Dataflow Directional Tag Classes.
Definition: CFGReachabilityAnalysis.h:22
clang::driver::tools::ppc::FloatABI::Invalid
clang::driver::tools::ppc::getPPCTargetFeatures
void getPPCTargetFeatures(const Driver &D, const llvm::Triple &Triple, const llvm::opt::ArgList &Args, std::vector< llvm::StringRef > &Features)