1 | |
2 | |
3 | |
4 | |
5 | |
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 | } |
48 | } |
49 | } |
50 | } |
51 | |
52 | #endif |
53 | |