clang 20.0.0git
Functions
AArch64.cpp File Reference
#include "AArch64.h"
#include "../CommonArgs.h"
#include "clang/Driver/Driver.h"
#include "clang/Driver/DriverDiagnostic.h"
#include "clang/Driver/Options.h"
#include "llvm/Option/ArgList.h"
#include "llvm/TargetParser/AArch64TargetParser.h"
#include "llvm/TargetParser/Host.h"

Go to the source code of this file.

Functions

static bool isCPUDeterminedByTriple (const llvm::Triple &Triple)
 
static bool DecodeAArch64Features (const Driver &D, StringRef text, llvm::AArch64::ExtensionSet &Extensions)
 
static bool DecodeAArch64Mcpu (const Driver &D, StringRef Mcpu, StringRef &CPU, llvm::AArch64::ExtensionSet &Extensions)
 
static bool getAArch64ArchFeaturesFromMarch (const Driver &D, StringRef March, const ArgList &Args, llvm::AArch64::ExtensionSet &Extensions)
 
static bool getAArch64ArchFeaturesFromMcpu (const Driver &D, StringRef Mcpu, const ArgList &Args, llvm::AArch64::ExtensionSet &Extensions)
 
static bool getAArch64MicroArchFeaturesFromMtune (const Driver &D, StringRef Mtune, const ArgList &Args, std::vector< StringRef > &Features)
 
static bool getAArch64MicroArchFeaturesFromMcpu (const Driver &D, StringRef Mcpu, const ArgList &Args, std::vector< StringRef > &Features)
 

Function Documentation

◆ DecodeAArch64Features()

static bool DecodeAArch64Features ( const Driver D,
StringRef  text,
llvm::AArch64::ExtensionSet &  Extensions 
)
static

Definition at line 74 of file AArch64.cpp.

References D, and clang::driver::tools::Split.

Referenced by DecodeAArch64Mcpu(), and getAArch64ArchFeaturesFromMarch().

◆ DecodeAArch64Mcpu()

static bool DecodeAArch64Mcpu ( const Driver D,
StringRef  Mcpu,
StringRef &  CPU,
llvm::AArch64::ExtensionSet &  Extensions 
)
static

◆ getAArch64ArchFeaturesFromMarch()

static bool getAArch64ArchFeaturesFromMarch ( const Driver D,
StringRef  March,
const ArgList &  Args,
llvm::AArch64::ExtensionSet &  Extensions 
)
static

Definition at line 116 of file AArch64.cpp.

References D, DecodeAArch64Features(), and clang::driver::tools::Split.

◆ getAArch64ArchFeaturesFromMcpu()

static bool getAArch64ArchFeaturesFromMcpu ( const Driver D,
StringRef  Mcpu,
const ArgList &  Args,
llvm::AArch64::ExtensionSet &  Extensions 
)
static

Definition at line 139 of file AArch64.cpp.

References D, and DecodeAArch64Mcpu().

◆ getAArch64MicroArchFeaturesFromMcpu()

static bool getAArch64MicroArchFeaturesFromMcpu ( const Driver D,
StringRef  Mcpu,
const ArgList &  Args,
std::vector< StringRef > &  Features 
)
static

Definition at line 176 of file AArch64.cpp.

References D, DecodeAArch64Mcpu(), and getAArch64MicroArchFeaturesFromMtune().

◆ getAArch64MicroArchFeaturesFromMtune()

static bool getAArch64MicroArchFeaturesFromMtune ( const Driver D,
StringRef  Mtune,
const ArgList &  Args,
std::vector< StringRef > &  Features 
)
static

Definition at line 151 of file AArch64.cpp.

References D, and DecodeAArch64Mcpu().

Referenced by getAArch64MicroArchFeaturesFromMcpu().

◆ isCPUDeterminedByTriple()

static bool isCPUDeterminedByTriple ( const llvm::Triple &  Triple)
static
Returns
true if the given triple can determine the default CPU type even if -arch is not specified.

Definition at line 25 of file AArch64.cpp.