1 //===--- PPC.h - PPC-specific Tool Helpers ----------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_PPC_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_PPC_H
12 #include "clang/Driver/Driver.h"
13 #include "llvm/ADT/StringRef.h"
14 #include "llvm/Option/Option.h"
23 bool hasPPCAbiArg(const llvm::opt::ArgList
&Args
, const char *Value
);
31 enum class ReadGOTPtrMode
{
36 FloatABI
getPPCFloatABI(const Driver
&D
, const llvm::opt::ArgList
&Args
);
38 std::string
getPPCTargetCPU(const Driver
&D
, const llvm::opt::ArgList
&Args
,
39 const llvm::Triple
&T
);
40 std::string
getPPCTuneCPU(const llvm::opt::ArgList
&Args
,
41 const llvm::Triple
&T
);
42 const char *getPPCAsmModeForCPU(StringRef Name
);
43 ReadGOTPtrMode
getPPCReadGOTPtrMode(const Driver
&D
, const llvm::Triple
&Triple
,
44 const llvm::opt::ArgList
&Args
);
46 void getPPCTargetFeatures(const Driver
&D
, const llvm::Triple
&Triple
,
47 const llvm::opt::ArgList
&Args
,
48 std::vector
<llvm::StringRef
> &Features
);
50 } // end namespace ppc
51 } // end namespace target
52 } // end namespace driver
53 } // end namespace clang
55 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_PPC_H