clang 20.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
18namespace clang {
19namespace driver {
20namespace tools {
21namespace ppc {
22
23bool hasPPCAbiArg(const llvm::opt::ArgList &Args, const char *Value);
24
25enum class FloatABI {
26 Invalid,
27 Soft,
28 Hard,
29};
30
31enum class ReadGOTPtrMode {
32 Bss,
34};
35
36FloatABI getPPCFloatABI(const Driver &D, const llvm::opt::ArgList &Args);
37
38const char *getPPCAsmModeForCPU(StringRef Name);
39ReadGOTPtrMode getPPCReadGOTPtrMode(const Driver &D, const llvm::Triple &Triple,
40 const llvm::opt::ArgList &Args);
41
42void getPPCTargetFeatures(const Driver &D, const llvm::Triple &Triple,
43 const llvm::opt::ArgList &Args,
44 std::vector<llvm::StringRef> &Features);
45
46} // end namespace ppc
47} // end namespace target
48} // end namespace driver
49} // end namespace clang
50
51#endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_PPC_H
const Decl * D
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:77
FloatABI getPPCFloatABI(const Driver &D, const llvm::opt::ArgList &Args)
const char * getPPCAsmModeForCPU(StringRef Name)
Definition: PPC.cpp:23
void getPPCTargetFeatures(const Driver &D, const llvm::Triple &Triple, const llvm::opt::ArgList &Args, std::vector< llvm::StringRef > &Features)
ReadGOTPtrMode getPPCReadGOTPtrMode(const Driver &D, const llvm::Triple &Triple, const llvm::opt::ArgList &Args)
bool hasPPCAbiArg(const llvm::opt::ArgList &Args, const char *Value)
The JSON file list parser is used to communicate input to InstallAPI.