clang 23.0.0git
AVR.cpp File Reference
#include "AVR.h"
#include "clang/Basic/Builtins.h"
#include "clang/Basic/MacroBuilder.h"
#include "clang/Basic/TargetBuiltins.h"
#include "llvm/ADT/StringSwitch.h"
#include "clang/Basic/BuiltinsAVR.def"

Go to the source code of this file.

Classes

struct  clang::targets::MCUInfo
 Information about a specific microcontroller. More...

Namespaces

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

Macros

#define BUILTIN   CLANG_BUILTIN_STR_TABLE
#define BUILTIN   CLANG_BUILTIN_ENTRY
#define LIBBUILTIN   CLANG_LIBBUILTIN_ENTRY

Functions

static bool ArchHasELPM (StringRef Arch)
static bool ArchHasELPMX (StringRef Arch)
static bool ArchHasMOVW (StringRef Arch)
static bool ArchHasLPMX (StringRef Arch)
static bool ArchHasMUL (StringRef Arch)
static bool ArchHasJMPCALL (StringRef Arch)
static bool ArchHas3BytePC (StringRef Arch)

Variables

static constexpr int NumBuiltins = AVR::LastTSBuiltin - Builtin::FirstTSBuiltin
static constexpr llvm::StringTable BuiltinStrings
static constexpr auto BuiltinInfos
static const MCUInfo clang::targets::AVRMcus []

Macro Definition Documentation

◆ BUILTIN [1/2]

#define BUILTIN   CLANG_BUILTIN_STR_TABLE

◆ BUILTIN [2/2]

#define BUILTIN   CLANG_BUILTIN_ENTRY

◆ LIBBUILTIN

#define LIBBUILTIN   CLANG_LIBBUILTIN_ENTRY

Function Documentation

◆ ArchHas3BytePC()

bool ArchHas3BytePC ( StringRef Arch)
static

◆ ArchHasELPM()

bool ArchHasELPM ( StringRef Arch)
static

Definition at line 437 of file AVR.cpp.

References Arch, and clang::Default.

Referenced by clang::targets::AVRTargetInfo::getTargetDefines().

◆ ArchHasELPMX()

bool ArchHasELPMX ( StringRef Arch)
static

Definition at line 444 of file AVR.cpp.

References Arch, and clang::Default.

Referenced by clang::targets::AVRTargetInfo::getTargetDefines().

◆ ArchHasJMPCALL()

bool ArchHasJMPCALL ( StringRef Arch)
static

◆ ArchHasLPMX()

bool ArchHasLPMX ( StringRef Arch)
static

Definition at line 458 of file AVR.cpp.

References Arch, and ArchHasMOVW().

Referenced by clang::targets::AVRTargetInfo::getTargetDefines().

◆ ArchHasMOVW()

bool ArchHasMOVW ( StringRef Arch)
static

Definition at line 451 of file AVR.cpp.

References Arch, and clang::Default.

Referenced by ArchHasLPMX(), and clang::targets::AVRTargetInfo::getTargetDefines().

◆ ArchHasMUL()

bool ArchHasMUL ( StringRef Arch)
static

Definition at line 462 of file AVR.cpp.

References Arch, and clang::Default.

Referenced by clang::targets::AVRTargetInfo::getTargetDefines().

Variable Documentation

◆ BuiltinInfos

auto BuiltinInfos
staticconstexpr
Initial value:
#define BUILTIN
#define LIBBUILTIN
})
static constexpr std::array< Info, N > MakeInfos(std::array< Info, N > Infos)
A constexpr function to construct an infos array from X-macros.
Definition Builtins.h:115

Definition at line 30 of file AVR.cpp.

◆ BuiltinStrings

llvm::StringTable BuiltinStrings
staticconstexpr
Initial value:
=
#define BUILTIN
#define CLANG_BUILTIN_STR_TABLE_START
Definition Builtins.h:166

Definition at line 24 of file AVR.cpp.

◆ NumBuiltins

int NumBuiltins = AVR::LastTSBuiltin - Builtin::FirstTSBuiltin
staticconstexpr

Definition at line 22 of file AVR.cpp.