LLVM 19.0.0git
Macros | Functions
ARMMCTargetDesc.cpp File Reference
#include "ARMMCTargetDesc.h"
#include "ARMAddressingModes.h"
#include "ARMBaseInfo.h"
#include "ARMInstPrinter.h"
#include "ARMMCAsmInfo.h"
#include "TargetInfo/ARMTargetInfo.h"
#include "llvm/DebugInfo/CodeView/CodeView.h"
#include "llvm/MC/MCAsmBackend.h"
#include "llvm/MC/MCCodeEmitter.h"
#include "llvm/MC/MCELFStreamer.h"
#include "llvm/MC/MCInstrAnalysis.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCObjectWriter.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/TargetParser/Triple.h"
#include "ARMGenRegisterInfo.inc"
#include "ARMGenInstrInfo.inc"
#include "ARMGenSubtargetInfo.inc"

Go to the source code of this file.

Macros

#define GET_REGINFO_MC_DESC
 
#define GET_INSTRINFO_MC_DESC
 
#define ENABLE_INSTR_PREDICATE_VERIFIER
 
#define GET_SUBTARGETINFO_MC_DESC
 

Functions

static bool getMCRDeprecationInfo (MCInst &MI, const MCSubtargetInfo &STI, std::string &Info)
 
static bool getMRCDeprecationInfo (MCInst &MI, const MCSubtargetInfo &STI, std::string &Info)
 
static bool getARMStoreDeprecationInfo (MCInst &MI, const MCSubtargetInfo &STI, std::string &Info)
 
static bool getARMLoadDeprecationInfo (MCInst &MI, const MCSubtargetInfo &STI, std::string &Info)
 
static MCInstrInfocreateARMMCInstrInfo ()
 
static MCRegisterInfocreateARMMCRegisterInfo (const Triple &Triple)
 
static MCAsmInfocreateARMMCAsmInfo (const MCRegisterInfo &MRI, const Triple &TheTriple, const MCTargetOptions &Options)
 
static MCStreamercreateELFStreamer (const Triple &T, MCContext &Ctx, std::unique_ptr< MCAsmBackend > &&MAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&Emitter, bool RelaxAll)
 
static MCStreamercreateARMMachOStreamer (MCContext &Ctx, std::unique_ptr< MCAsmBackend > &&MAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&Emitter, bool RelaxAll, bool DWARFMustBeAtTheEnd)
 
static MCInstPrintercreateARMMCInstPrinter (const Triple &T, unsigned SyntaxVariant, const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
 
static MCRelocationInfocreateARMMCRelocationInfo (const Triple &TT, MCContext &Ctx)
 
static std::optional< uint64_tevaluateMemOpAddrForAddrMode_i12 (const MCInst &Inst, const MCInstrDesc &Desc, unsigned MemOpIndex, uint64_t Addr)
 
static std::optional< uint64_tevaluateMemOpAddrForAddrMode3 (const MCInst &Inst, const MCInstrDesc &Desc, unsigned MemOpIndex, uint64_t Addr)
 
static std::optional< uint64_tevaluateMemOpAddrForAddrMode5 (const MCInst &Inst, const MCInstrDesc &Desc, unsigned MemOpIndex, uint64_t Addr)
 
static std::optional< uint64_tevaluateMemOpAddrForAddrMode5FP16 (const MCInst &Inst, const MCInstrDesc &Desc, unsigned MemOpIndex, uint64_t Addr)
 
static std::optional< uint64_tevaluateMemOpAddrForAddrModeT2_i8s4 (const MCInst &Inst, const MCInstrDesc &Desc, unsigned MemOpIndex, uint64_t Addr)
 
static std::optional< uint64_tevaluateMemOpAddrForAddrModeT2_pc (const MCInst &Inst, const MCInstrDesc &Desc, unsigned MemOpIndex, uint64_t Addr)
 
static std::optional< uint64_tevaluateMemOpAddrForAddrModeT1_s (const MCInst &Inst, const MCInstrDesc &Desc, unsigned MemOpIndex, uint64_t Addr)
 
static MCInstrAnalysiscreateARMMCInstrAnalysis (const MCInstrInfo *Info)
 
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeARMTargetMC ()
 

Macro Definition Documentation

◆ ENABLE_INSTR_PREDICATE_VERIFIER

#define ENABLE_INSTR_PREDICATE_VERIFIER

Definition at line 135 of file ARMMCTargetDesc.cpp.

◆ GET_INSTRINFO_MC_DESC

#define GET_INSTRINFO_MC_DESC

Definition at line 134 of file ARMMCTargetDesc.cpp.

◆ GET_REGINFO_MC_DESC

#define GET_REGINFO_MC_DESC

Definition at line 35 of file ARMMCTargetDesc.cpp.

◆ GET_SUBTARGETINFO_MC_DESC

#define GET_SUBTARGETINFO_MC_DESC

Definition at line 138 of file ARMMCTargetDesc.cpp.

Function Documentation

◆ createARMMachOStreamer()

static MCStreamer * createARMMachOStreamer ( MCContext Ctx,
std::unique_ptr< MCAsmBackend > &&  MAB,
std::unique_ptr< MCObjectWriter > &&  OW,
std::unique_ptr< MCCodeEmitter > &&  Emitter,
bool  RelaxAll,
bool  DWARFMustBeAtTheEnd 
)
static

Definition at line 371 of file ARMMCTargetDesc.cpp.

References llvm::createMachOStreamer(), and Emitter.

Referenced by LLVMInitializeARMTargetMC().

◆ createARMMCAsmInfo()

static MCAsmInfo * createARMMCAsmInfo ( const MCRegisterInfo MRI,
const Triple TheTriple,
const MCTargetOptions Options 
)
static

◆ createARMMCInstPrinter()

static MCInstPrinter * createARMMCInstPrinter ( const Triple T,
unsigned  SyntaxVariant,
const MCAsmInfo MAI,
const MCInstrInfo MII,
const MCRegisterInfo MRI 
)
static

Definition at line 379 of file ARMMCTargetDesc.cpp.

References MRI.

Referenced by LLVMInitializeARMTargetMC().

◆ createARMMCInstrAnalysis()

static MCInstrAnalysis * createARMMCInstrAnalysis ( const MCInstrInfo Info)
static

Definition at line 626 of file ARMMCTargetDesc.cpp.

References Info.

Referenced by LLVMInitializeARMTargetMC().

◆ createARMMCInstrInfo()

static MCInstrInfo * createARMMCInstrInfo ( )
static

Definition at line 217 of file ARMMCTargetDesc.cpp.

References X.

Referenced by LLVMInitializeARMTargetMC().

◆ createARMMCRegisterInfo()

static MCRegisterInfo * createARMMCRegisterInfo ( const Triple Triple)
static

Definition at line 333 of file ARMMCTargetDesc.cpp.

References llvm::ARM_MC::initLLVMToCVRegMapping(), and X.

Referenced by LLVMInitializeARMTargetMC().

◆ createARMMCRelocationInfo()

static MCRelocationInfo * createARMMCRelocationInfo ( const Triple TT,
MCContext Ctx 
)
static

◆ createELFStreamer()

static MCStreamer * createELFStreamer ( const Triple T,
MCContext Ctx,
std::unique_ptr< MCAsmBackend > &&  MAB,
std::unique_ptr< MCObjectWriter > &&  OW,
std::unique_ptr< MCCodeEmitter > &&  Emitter,
bool  RelaxAll 
)
static

◆ evaluateMemOpAddrForAddrMode3()

static std::optional< uint64_t > evaluateMemOpAddrForAddrMode3 ( const MCInst Inst,
const MCInstrDesc Desc,
unsigned  MemOpIndex,
uint64_t  Addr 
)
static

◆ evaluateMemOpAddrForAddrMode5()

static std::optional< uint64_t > evaluateMemOpAddrForAddrMode5 ( const MCInst Inst,
const MCInstrDesc Desc,
unsigned  MemOpIndex,
uint64_t  Addr 
)
static

◆ evaluateMemOpAddrForAddrMode5FP16()

static std::optional< uint64_t > evaluateMemOpAddrForAddrMode5FP16 ( const MCInst Inst,
const MCInstrDesc Desc,
unsigned  MemOpIndex,
uint64_t  Addr 
)
static

◆ evaluateMemOpAddrForAddrMode_i12()

static std::optional< uint64_t > evaluateMemOpAddrForAddrMode_i12 ( const MCInst Inst,
const MCInstrDesc Desc,
unsigned  MemOpIndex,
uint64_t  Addr 
)
static

◆ evaluateMemOpAddrForAddrModeT1_s()

static std::optional< uint64_t > evaluateMemOpAddrForAddrModeT1_s ( const MCInst Inst,
const MCInstrDesc Desc,
unsigned  MemOpIndex,
uint64_t  Addr 
)
static

Definition at line 556 of file ARMMCTargetDesc.cpp.

References Addr, and evaluateMemOpAddrForAddrModeT2_pc().

◆ evaluateMemOpAddrForAddrModeT2_i8s4()

static std::optional< uint64_t > evaluateMemOpAddrForAddrModeT2_i8s4 ( const MCInst Inst,
const MCInstrDesc Desc,
unsigned  MemOpIndex,
uint64_t  Addr 
)
static

◆ evaluateMemOpAddrForAddrModeT2_pc()

static std::optional< uint64_t > evaluateMemOpAddrForAddrModeT2_pc ( const MCInst Inst,
const MCInstrDesc Desc,
unsigned  MemOpIndex,
uint64_t  Addr 
)
static

◆ getARMLoadDeprecationInfo()

static bool getARMLoadDeprecationInfo ( MCInst MI,
const MCSubtargetInfo STI,
std::string &  Info 
)
static

Definition at line 105 of file ARMMCTargetDesc.cpp.

References assert(), llvm::MCSubtargetInfo::hasFeature(), Info, and MI.

◆ getARMStoreDeprecationInfo()

static bool getARMStoreDeprecationInfo ( MCInst MI,
const MCSubtargetInfo STI,
std::string &  Info 
)
static

Definition at line 89 of file ARMMCTargetDesc.cpp.

References assert(), llvm::MCSubtargetInfo::hasFeature(), Info, and MI.

◆ getMCRDeprecationInfo()

static bool getMCRDeprecationInfo ( MCInst MI,
const MCSubtargetInfo STI,
std::string &  Info 
)
static

Definition at line 38 of file ARMMCTargetDesc.cpp.

References llvm::MCSubtargetInfo::hasFeature(), Info, and MI.

◆ getMRCDeprecationInfo()

static bool getMRCDeprecationInfo ( MCInst MI,
const MCSubtargetInfo STI,
std::string &  Info 
)
static

Definition at line 77 of file ARMMCTargetDesc.cpp.

References llvm::MCSubtargetInfo::hasFeature(), Info, and MI.

◆ LLVMInitializeARMTargetMC()

LLVM_EXTERNAL_VISIBILITY void LLVMInitializeARMTargetMC ( )