#include "Targets.h"
#include "Targets/AArch64.h"
#include "Targets/AMDGPU.h"
#include "Targets/ARC.h"
#include "Targets/ARM.h"
#include "Targets/AVR.h"
#include "Targets/BPF.h"
#include "Targets/CSKY.h"
#include "Targets/DirectX.h"
#include "Targets/Hexagon.h"
#include "Targets/Lanai.h"
#include "Targets/LoongArch.h"
#include "Targets/M68k.h"
#include "Targets/MSP430.h"
#include "Targets/Mips.h"
#include "Targets/NVPTX.h"
#include "Targets/OSTargets.h"
#include "Targets/PNaCl.h"
#include "Targets/PPC.h"
#include "Targets/RISCV.h"
#include "Targets/SPIR.h"
#include "Targets/Sparc.h"
#include "Targets/SystemZ.h"
#include "Targets/TCE.h"
#include "Targets/VE.h"
#include "Targets/WebAssembly.h"
#include "Targets/X86.h"
#include "Targets/XCore.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/DiagnosticFrontend.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/TargetParser/Triple.h"
usingnamespaceclang;
namespace clang {
namespace targets {
void DefineStd(MacroBuilder &Builder, StringRef MacroName,
const LangOptions &Opts) { … }
void defineCPUMacros(MacroBuilder &Builder, StringRef CPUName, bool Tuning) { … }
void addCygMingDefines(const LangOptions &Opts, MacroBuilder &Builder) { … }
std::unique_ptr<TargetInfo> AllocateTarget(const llvm::Triple &Triple,
const TargetOptions &Opts) { … }
}
}
usingnamespaceclang::targets;
TargetInfo *
TargetInfo::CreateTargetInfo(DiagnosticsEngine &Diags,
const std::shared_ptr<TargetOptions> &Opts) { … }
bool TargetInfo::validateOpenCLTarget(const LangOptions &Opts,
DiagnosticsEngine &Diags) const { … }