13#ifndef LLVM_CLANG_LIB_BASIC_TARGETS_AVR_H
14#define LLVM_CLANG_LIB_BASIC_TARGETS_AVR_H
18#include "llvm/Support/Compiler.h"
19#include "llvm/TargetParser/Triple.h"
60 resetDataLayout(
"e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8:16-a:8");
80 "r0",
"r1",
"r2",
"r3",
"r4",
"r5",
"r6",
"r7",
"r8",
"r9",
81 "r10",
"r11",
"r12",
"r13",
"r14",
"r15",
"r16",
"r17",
"r18",
"r19",
82 "r20",
"r21",
"r22",
"r23",
"r24",
"r25",
"X",
"Y",
"Z",
"SP"};
103 if (StringRef(Name).size() > 1)
173 return BitWidth == 16
178 bool isValidCPUName(StringRef Name)
const override;
180 bool setCPU(
const std::string &Name)
override;
181 std::optional<std::string> handleAsmEscapedChar(
char EscChar)
const override;
185 return std::make_pair(32, 32);
Defines the clang::TargetOptions class.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
TargetInfo(const llvm::Triple &T)
virtual IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const
Return the smallest integer type with at least the specified width.
void resetDataLayout(StringRef DL, const char *UserLabelPrefix="")
BuiltinVaListKind
The different kinds of __builtin_va_list types defined by the target implementation.
@ VoidPtrBuiltinVaList
typedef void* __builtin_va_list;
virtual IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const
Return integer type with specified width.
Options for controlling the target.
bool validateAsmConstraint(const char *&Name, TargetInfo::ConstraintInfo &Info) const override
BuiltinVaListKind getBuiltinVaListKind() const override
Returns the kind of __builtin_va_list type that should be used with this target.
std::string_view getClobbers() const override
Returns a string of target-specific clobbers, in LLVM format.
ArrayRef< const char * > getGCCRegNames() const override
ArrayRef< TargetInfo::GCCRegAlias > getGCCRegAliases() const override
llvm::SmallVector< Builtin::InfosShard > getTargetBuiltins() const override
Return information about target-specific builtins for the current primary target, and info about whic...
IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final
Return the smallest integer type with at least the specified width.
bool allowsLargerPreferedTypeAlignment() const override
Whether target allows to overalign ABI-specified preferred alignment.
StringRef getABI() const override
Get the ABI currently in use.
ArrayRef< TargetInfo::AddlRegName > getGCCAddlRegNames() const override
std::pair< unsigned, unsigned > hardwareInterferenceSizes() const override
The first value in the pair is the minimum offset between two objects to avoid false sharing (destruc...
IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final
Return integer type with specified width.
AVRTargetInfo(const llvm::Triple &Triple, const TargetOptions &)
Defines the clang::TargetInfo interface.
const TargetInfo::AddlRegName AddlRegNames[]
static const char *const GCCRegNames[]
The JSON file list parser is used to communicate input to InstallAPI.
void setRequiresImmediate(int Min, int Max)
const llvm::fltSemantics * DoubleFormat
unsigned short SuitableAlign
unsigned char PointerWidth
IntType
===-— Target Data Type Query Methods ----------------------------—===//
const llvm::fltSemantics * LongDoubleFormat
unsigned char DoubleWidth
unsigned char LongLongAlign
unsigned char PointerAlign
unsigned char LongDoubleAlign
unsigned char LongDoubleWidth
unsigned char DoubleAlign
unsigned char LongLongWidth
unsigned char DefaultAlignForAttributeAligned