#include "PPC.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/MacroBuilder.h"
#include "clang/Basic/TargetBuiltins.h"
#include "llvm/TargetParser/PPCTargetParser.h"
usingnamespaceclang;
usingnamespaceclang::targets;
static constexpr Builtin::Info BuiltinInfo[] = …;
bool PPCTargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
DiagnosticsEngine &Diags) { … }
static void defineXLCompatMacros(MacroBuilder &Builder) { … }
void PPCTargetInfo::getTargetDefines(const LangOptions &Opts,
MacroBuilder &Builder) const { … }
static bool ppcUserFeaturesCheck(DiagnosticsEngine &Diags,
const std::vector<std::string> &FeaturesVec) { … }
bool PPCTargetInfo::initFeatureMap(
llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags, StringRef CPU,
const std::vector<std::string> &FeaturesVec) const { … }
void PPCTargetInfo::addP10SpecificFeatures(
llvm::StringMap<bool> &Features) const { … }
void PPCTargetInfo::addP11SpecificFeatures(
llvm::StringMap<bool> &Features) const { … }
void PPCTargetInfo::addFutureSpecificFeatures(
llvm::StringMap<bool> &Features) const { … }
bool PPCTargetInfo::hasFeature(StringRef Feature) const { … }
void PPCTargetInfo::setFeatureEnabled(llvm::StringMap<bool> &Features,
StringRef Name, bool Enabled) const { … }
const char *const PPCTargetInfo::GCCRegNames[] = …;
ArrayRef<const char *> PPCTargetInfo::getGCCRegNames() const { … }
const TargetInfo::GCCRegAlias PPCTargetInfo::GCCRegAliases[] = …;
ArrayRef<TargetInfo::GCCRegAlias> PPCTargetInfo::getGCCRegAliases() const { … }
const TargetInfo::AddlRegName GCCAddlRegNames[] = …;
ArrayRef<TargetInfo::AddlRegName> PPCTargetInfo::getGCCAddlRegNames() const { … }
bool PPCTargetInfo::isValidCPUName(StringRef Name) const { … }
void PPCTargetInfo::fillValidCPUList(SmallVectorImpl<StringRef> &Values) const { … }
void PPCTargetInfo::adjust(DiagnosticsEngine &Diags, LangOptions &Opts) { … }
ArrayRef<Builtin::Info> PPCTargetInfo::getTargetBuiltins() const { … }
bool PPCTargetInfo::validateCpuSupports(StringRef FeatureStr) const { … }
bool PPCTargetInfo::validateCpuIs(StringRef CPUName) const { … }