LLVM 19.0.0git
Public Member Functions | List of all members
llvm::AVRSubtarget Class Reference

A specific AVR target MCU. More...

#include "Target/AVR/AVRSubtarget.h"

Inheritance diagram for llvm::AVRSubtarget:
Inheritance graph
[legend]

Public Member Functions

 AVRSubtarget (const Triple &TT, const std::string &CPU, const std::string &FS, const AVRTargetMachine &TM)
 Creates an AVR subtarget.
 
const AVRInstrInfogetInstrInfo () const override
 
const TargetFrameLoweringgetFrameLowering () const override
 
const AVRTargetLoweringgetTargetLowering () const override
 
const AVRSelectionDAGInfogetSelectionDAGInfo () const override
 
const AVRRegisterInfogetRegisterInfo () const override
 
void ParseSubtargetFeatures (StringRef CPU, StringRef TuneCPU, StringRef FS)
 Parses a subtarget feature string, setting appropriate options.
 
AVRSubtargetinitializeSubtargetDependencies (StringRef CPU, StringRef FS, const TargetMachine &TM)
 
uint8_t getIORegisterOffset () const
 
bool enableSubRegLiveness () const override
 
unsigned getELFArch () const
 Gets the ELF architecture for the e_flags field of an ELF object file.
 
int getIORegRAMPZ () const
 Get I/O register addresses.
 
int getIORegEIND () const
 
int getIORegSPL () const
 
int getIORegSPH () const
 
int getIORegSREG () const
 
int getRegTmpIndex () const
 Get GPR aliases.
 
int getRegZeroIndex () const
 
Register getTmpRegister () const
 
Register getZeroRegister () const
 

Detailed Description

A specific AVR target MCU.

Definition at line 32 of file AVRSubtarget.h.

Constructor & Destructor Documentation

◆ AVRSubtarget()

llvm::AVRSubtarget::AVRSubtarget ( const Triple TT,
const std::string &  CPU,
const std::string &  FS,
const AVRTargetMachine TM 
)

Creates an AVR subtarget.

Parameters
TTThe target triple.
CPUThe CPU to target.
FSThe feature string.
TMThe target machine.

Definition at line 30 of file AVRSubtarget.cpp.

References ParseSubtargetFeatures().

Member Function Documentation

◆ enableSubRegLiveness()

bool llvm::AVRSubtarget::enableSubRegLiveness ( ) const
inlineoverride

Definition at line 70 of file AVRSubtarget.h.

◆ getELFArch()

unsigned llvm::AVRSubtarget::getELFArch ( ) const
inline

Gets the ELF architecture for the e_flags field of an ELF object file.

Definition at line 74 of file AVRSubtarget.h.

References assert().

◆ getFrameLowering()

const TargetFrameLowering * llvm::AVRSubtarget::getFrameLowering ( ) const
inlineoverride

Definition at line 43 of file AVRSubtarget.h.

◆ getInstrInfo()

const AVRInstrInfo * llvm::AVRSubtarget::getInstrInfo ( ) const
inlineoverride

◆ getIORegEIND()

int llvm::AVRSubtarget::getIORegEIND ( ) const
inline

Definition at line 82 of file AVRSubtarget.h.

Referenced by llvm::AVRAsmPrinter::emitStartOfAsmFile().

◆ getIORegisterOffset()

uint8_t llvm::AVRSubtarget::getIORegisterOffset ( ) const
inline

Definition at line 68 of file AVRSubtarget.h.

◆ getIORegRAMPZ()

int llvm::AVRSubtarget::getIORegRAMPZ ( ) const
inline

Get I/O register addresses.

Definition at line 81 of file AVRSubtarget.h.

Referenced by llvm::AVRAsmPrinter::emitStartOfAsmFile().

◆ getIORegSPH()

int llvm::AVRSubtarget::getIORegSPH ( ) const
inline

Definition at line 84 of file AVRSubtarget.h.

Referenced by llvm::AVRAsmPrinter::emitStartOfAsmFile().

◆ getIORegSPL()

int llvm::AVRSubtarget::getIORegSPL ( ) const
inline

Definition at line 83 of file AVRSubtarget.h.

Referenced by llvm::AVRAsmPrinter::emitStartOfAsmFile().

◆ getIORegSREG()

int llvm::AVRSubtarget::getIORegSREG ( ) const
inline

◆ getRegisterInfo()

const AVRRegisterInfo * llvm::AVRSubtarget::getRegisterInfo ( ) const
inlineoverride

◆ getRegTmpIndex()

int llvm::AVRSubtarget::getRegTmpIndex ( ) const
inline

Get GPR aliases.

Definition at line 88 of file AVRSubtarget.h.

Referenced by llvm::AVRAsmPrinter::emitStartOfAsmFile().

◆ getRegZeroIndex()

int llvm::AVRSubtarget::getRegZeroIndex ( ) const
inline

Definition at line 89 of file AVRSubtarget.h.

Referenced by llvm::AVRAsmPrinter::emitStartOfAsmFile().

◆ getSelectionDAGInfo()

const AVRSelectionDAGInfo * llvm::AVRSubtarget::getSelectionDAGInfo ( ) const
inlineoverride

Definition at line 49 of file AVRSubtarget.h.

◆ getTargetLowering()

const AVRTargetLowering * llvm::AVRSubtarget::getTargetLowering ( ) const
inlineoverride

Definition at line 46 of file AVRSubtarget.h.

◆ getTmpRegister()

Register llvm::AVRSubtarget::getTmpRegister ( ) const
inline

◆ getZeroRegister()

Register llvm::AVRSubtarget::getZeroRegister ( ) const
inline

◆ initializeSubtargetDependencies()

AVRSubtarget & llvm::AVRSubtarget::initializeSubtargetDependencies ( StringRef  CPU,
StringRef  FS,
const TargetMachine TM 
)

Definition at line 39 of file AVRSubtarget.cpp.

References ParseSubtargetFeatures().

◆ ParseSubtargetFeatures()

void llvm::AVRSubtarget::ParseSubtargetFeatures ( StringRef  CPU,
StringRef  TuneCPU,
StringRef  FS 
)

Parses a subtarget feature string, setting appropriate options.

Note
Definition of function is auto generated by tblgen.

Referenced by AVRSubtarget(), and initializeSubtargetDependencies().


The documentation for this class was generated from the following files: