clang 23.0.0git
clang::driver::tools::aarch64 Namespace Reference

Functions

void getAArch64TargetFeatures (const Driver &D, const llvm::Triple &Triple, const llvm::opt::ArgList &Args, std::vector< llvm::StringRef > &Features, bool ForAS, bool ForMultilib=false)
std::string getAArch64TargetCPU (const llvm::opt::ArgList &Args, const llvm::Triple &Triple, llvm::opt::Arg *&A)
std::optional< std::string > getAArch64TargetTuneCPU (const llvm::opt::ArgList &Args, const llvm::Triple &Triple)
bool isAArch64BareMetal (const llvm::Triple &Triple)
 Is the triple {aarch64.aarch64_be}-none-elf?

Function Documentation

◆ getAArch64TargetCPU()

std::string clang::driver::tools::aarch64::getAArch64TargetCPU ( const llvm::opt::ArgList & Args,
const llvm::Triple & Triple,
llvm::opt::Arg *& A )

◆ getAArch64TargetFeatures()

void clang::driver::tools::aarch64::getAArch64TargetFeatures ( const Driver & D,
const llvm::Triple & Triple,
const llvm::opt::ArgList & Args,
std::vector< llvm::StringRef > & Features,
bool ForAS,
bool ForMultilib = false )

Referenced by getAArch64MultilibFlags().

◆ getAArch64TargetTuneCPU()

std::optional< std::string > clang::driver::tools::aarch64::getAArch64TargetTuneCPU ( const llvm::opt::ArgList & Args,
const llvm::Triple & Triple )
Returns
the LLVM name of the AArch64 tune CPU we should target. Returns std::nullopt if no tune CPU should be specified.

Note: Unlike getAArch64TargetCPU, this function does not resolve CPU aliases, as it is currently not used for target architecture feature collection, but defers it to the backend.

Definition at line 117 of file AArch64.cpp.

References getAArch64TargetTuneCPUByTriple().

◆ isAArch64BareMetal()

bool clang::driver::tools::aarch64::isAArch64BareMetal ( const llvm::Triple & Triple)

Is the triple {aarch64.aarch64_be}-none-elf?

Definition at line 531 of file AArch64.cpp.

Referenced by clang::driver::toolchains::BareMetal::handlesTarget().