#include "LoongArch.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/MacroBuilder.h"
#include "clang/Basic/TargetBuiltins.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/TargetParser/LoongArchTargetParser.h"
usingnamespaceclang;
usingnamespaceclang::targets;
ArrayRef<const char *> LoongArchTargetInfo::getGCCRegNames() const { … }
ArrayRef<TargetInfo::GCCRegAlias>
LoongArchTargetInfo::getGCCRegAliases() const { … }
bool LoongArchTargetInfo::validateAsmConstraint(
const char *&Name, TargetInfo::ConstraintInfo &Info) const { … }
std::string
LoongArchTargetInfo::convertConstraint(const char *&Constraint) const { … }
void LoongArchTargetInfo::getTargetDefines(const LangOptions &Opts,
MacroBuilder &Builder) const { … }
static constexpr Builtin::Info BuiltinInfo[] = …;
bool LoongArchTargetInfo::initFeatureMap(
llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags, StringRef CPU,
const std::vector<std::string> &FeaturesVec) const { … }
bool LoongArchTargetInfo::hasFeature(StringRef Feature) const { … }
ArrayRef<Builtin::Info> LoongArchTargetInfo::getTargetBuiltins() const { … }
bool LoongArchTargetInfo::handleTargetFeatures(
std::vector<std::string> &Features, DiagnosticsEngine &Diags) { … }
bool LoongArchTargetInfo::isValidCPUName(StringRef Name) const { … }
void LoongArchTargetInfo::fillValidCPUList(
SmallVectorImpl<StringRef> &Values) const { … }