clang 22.0.0git
X86.cpp File Reference
#include "X86.h"
#include "clang/Basic/Builtins.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/TargetBuiltins.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/TargetParser/X86TargetParser.h"
#include <optional>
#include "clang/Basic/BuiltinsX86.inc"
#include "clang/Basic/BuiltinsX86_64.inc"
#include "llvm/TargetParser/X86TargetParser.def"

Go to the source code of this file.

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
namespace  clang::targets
namespace  clang::targets::X86
namespace  clang::targets::X86_64

Macros

#define GET_BUILTIN_STR_TABLE
#define GET_BUILTIN_INFOS
#define GET_BUILTIN_PREFIXED_INFOS
#define GET_BUILTIN_STR_TABLE
#define GET_BUILTIN_INFOS
#define GET_BUILTIN_PREFIXED_INFOS
#define X86_FEATURE_COMPAT(ENUM, STR, PRIORITY)
#define X86_MICROARCH_LEVEL(ENUM, STR, PRIORITY)
#define X86_FEATURE_COMPAT(ENUM, STR, PRIORITY)
#define X86_VENDOR(ENUM, STRING)
#define X86_CPU_TYPE_ALIAS(ENUM, ALIAS)
#define X86_CPU_TYPE(ENUM, STR)
#define X86_CPU_SUBTYPE_ALIAS(ENUM, ALIAS)
#define X86_CPU_SUBTYPE(ENUM, STR)

Functions

static llvm::X86::ProcessorFeatures getFeature (StringRef Name)
static unsigned matchAsmCCConstraint (const char *Name)

Variables

static constexpr int clang::targets::NumX86Builtins
static constexpr int clang::targets::NumX86_64Builtins
static constexpr int clang::targets::NumBuiltins = X86::LastTSBuiltin - Builtin::FirstTSBuiltin
static constexpr Builtin::Info clang::targets::X86::BuiltinInfos []
static constexpr Builtin::Info clang::targets::X86::PrefixedBuiltinInfos []
static constexpr Builtin::Info clang::targets::X86_64::BuiltinInfos []
static constexpr Builtin::Info clang::targets::X86_64::PrefixedBuiltinInfos []
static const char *const clang::targets::GCCRegNames []
const TargetInfo::AddlRegName clang::targets::AddlRegNames []

Macro Definition Documentation

◆ GET_BUILTIN_INFOS [1/2]

#define GET_BUILTIN_INFOS

◆ GET_BUILTIN_INFOS [2/2]

#define GET_BUILTIN_INFOS

◆ GET_BUILTIN_PREFIXED_INFOS [1/2]

#define GET_BUILTIN_PREFIXED_INFOS

◆ GET_BUILTIN_PREFIXED_INFOS [2/2]

#define GET_BUILTIN_PREFIXED_INFOS

◆ GET_BUILTIN_STR_TABLE [1/2]

#define GET_BUILTIN_STR_TABLE

Definition at line 34 of file X86.cpp.

◆ GET_BUILTIN_STR_TABLE [2/2]

#define GET_BUILTIN_STR_TABLE

Definition at line 34 of file X86.cpp.

◆ X86_CPU_SUBTYPE

#define X86_CPU_SUBTYPE ( ENUM,
STR )
Value:
.Case(STR, true)

◆ X86_CPU_SUBTYPE_ALIAS

#define X86_CPU_SUBTYPE_ALIAS ( ENUM,
ALIAS )
Value:
.Case(ALIAS, true)
#define ALIAS(NAME, TOK, FLAGS)

◆ X86_CPU_TYPE

#define X86_CPU_TYPE ( ENUM,
STR )
Value:
.Case(STR, true)

◆ X86_CPU_TYPE_ALIAS

#define X86_CPU_TYPE_ALIAS ( ENUM,
ALIAS )
Value:
.Case(ALIAS, true)

◆ X86_FEATURE_COMPAT [1/2]

#define X86_FEATURE_COMPAT ( ENUM,
STR,
PRIORITY )
Value:
.Case(STR, true)

◆ X86_FEATURE_COMPAT [2/2]

#define X86_FEATURE_COMPAT ( ENUM,
STR,
PRIORITY )
Value:
.Case(STR, llvm::X86::FEATURE_##ENUM)
#define ENUM(NAME, LIT)

◆ X86_MICROARCH_LEVEL

#define X86_MICROARCH_LEVEL ( ENUM,
STR,
PRIORITY )
Value:
.Case(STR, true)

◆ X86_VENDOR

#define X86_VENDOR ( ENUM,
STRING )
Value:
.Case(STRING, true)

Function Documentation

◆ getFeature()

llvm::X86::ProcessorFeatures getFeature ( StringRef Name)
static

Definition at line 1315 of file X86.cpp.

Referenced by clang::targets::X86TargetInfo::getFMVPriority().

◆ matchAsmCCConstraint()

unsigned matchAsmCCConstraint ( const char * Name)
static

Definition at line 1379 of file X86.cpp.