1 //===--- PPC.h - PPC-specific Tool Helpers ----------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_PPC_H
11 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_PPC_H
13 #include "clang/Driver/Driver.h"
14 #include "llvm/ADT/StringRef.h"
15 #include "llvm/Option/Option.h"
24 bool hasPPCAbiArg(const llvm::opt::ArgList &Args, const char *Value);
32 enum class ReadGOTPtrMode {
37 FloatABI getPPCFloatABI(const Driver &D, const llvm::opt::ArgList &Args);
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);
44 void getPPCTargetFeatures(const Driver &D, const llvm::Triple &Triple,
45 const llvm::opt::ArgList &Args,
46 std::vector<llvm::StringRef> &Features);
48 } // end namespace ppc
49 } // end namespace target
50 } // end namespace driver
51 } // end namespace clang
53 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_PPC_H