clang  13.0.0git
PPC.h
Go to the documentation of this file.
1 //===--- PPC.h - PPC-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_PPC_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_PPC_H
11 
12 #include "clang/Driver/Driver.h"
13 #include "llvm/ADT/StringRef.h"
14 #include "llvm/Option/Option.h"
15 #include <string>
16 #include <vector>
17 
18 namespace clang {
19 namespace driver {
20 namespace tools {
21 namespace ppc {
22 
23 bool hasPPCAbiArg(const llvm::opt::ArgList &Args, const char *Value);
24 
25 enum class FloatABI {
26  Invalid,
27  Soft,
28  Hard,
29 };
30 
31 enum class ReadGOTPtrMode {
32  Bss,
33  SecurePlt,
34 };
35 
36 FloatABI getPPCFloatABI(const Driver &D, const llvm::opt::ArgList &Args);
37 
38 std::string getPPCTargetCPU(const llvm::opt::ArgList &Args);
39 const char *getPPCAsmModeForCPU(StringRef Name);
40 ReadGOTPtrMode getPPCReadGOTPtrMode(const Driver &D, const llvm::Triple &Triple,
41  const llvm::opt::ArgList &Args);
42 
43 void getPPCTargetFeatures(const Driver &D, const llvm::Triple &Triple,
44  const llvm::opt::ArgList &Args,
45  std::vector<llvm::StringRef> &Features);
46 
47 } // end namespace ppc
48 } // end namespace target
49 } // end namespace driver
50 } // end namespace clang
51 
52 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_PPC_H
clang::driver::tools::ppc::ReadGOTPtrMode
ReadGOTPtrMode
Definition: PPC.h:31
clang::driver::tools::ppc::getPPCAsmModeForCPU
const char * getPPCAsmModeForCPU(StringRef Name)
Definition: PPC.cpp:93
Driver.h
string
string(SUBSTRING ${CMAKE_CURRENT_BINARY_DIR} 0 ${PATH_LIB_START} PATH_HEAD) string(SUBSTRING $
Definition: CMakeLists.txt:22
clang::driver::tools::ppc::FloatABI::Hard
@ Hard
clang::driver::tools::ppc::getPPCFloatABI
FloatABI getPPCFloatABI(const Driver &D, const llvm::opt::ArgList &Args)
clang::driver::tools::ppc::FloatABI
FloatABI
Definition: PPC.h:25
clang::driver::tools::ppc::FloatABI::Soft
@ Soft
clang::driver::tools::ppc::ReadGOTPtrMode::Bss
@ Bss
clang::driver::tools::ppc::hasPPCAbiArg
bool hasPPCAbiArg(const llvm::opt::ArgList &Args, const char *Value)
clang::driver::tools::ppc::ReadGOTPtrMode::SecurePlt
@ SecurePlt
clang::driver::tools::ppc::FloatABI::Invalid
@ Invalid
Value
Value
Definition: UninitializedValues.cpp:102
clang::driver::tools::ppc::getPPCTargetCPU
std::string getPPCTargetCPU(const llvm::opt::ArgList &Args)
clang::driver::tools::ppc::getPPCTargetFeatures
void getPPCTargetFeatures(const Driver &D, const llvm::Triple &Triple, const llvm::opt::ArgList &Args, std::vector< llvm::StringRef > &Features)
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: CalledOnceCheck.h:17
clang::driver::Driver
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:59