LLVM 20.0.0git
Macros | Functions
AMDGPUMCTargetDesc.cpp File Reference

This file provides AMDGPU specific target descriptions. More...

#include "AMDGPUMCTargetDesc.h"
#include "AMDGPUELFStreamer.h"
#include "AMDGPUInstPrinter.h"
#include "AMDGPUMCAsmInfo.h"
#include "AMDGPUTargetStreamer.h"
#include "R600InstPrinter.h"
#include "R600MCTargetDesc.h"
#include "TargetInfo/AMDGPUTargetInfo.h"
#include "llvm/MC/MCAsmBackend.h"
#include "llvm/MC/MCCodeEmitter.h"
#include "llvm/MC/MCELFStreamer.h"
#include "llvm/MC/MCInstPrinter.h"
#include "llvm/MC/MCInstrAnalysis.h"
#include "llvm/MC/MCInstrDesc.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 "AMDGPUGenInstrInfo.inc"
#include "AMDGPUGenSubtargetInfo.inc"
#include "R600GenSubtargetInfo.inc"
#include "AMDGPUGenRegisterInfo.inc"
#include "R600GenRegisterInfo.inc"

Go to the source code of this file.

Macros

#define GET_INSTRINFO_MC_DESC
 
#define ENABLE_INSTR_PREDICATE_VERIFIER
 
#define GET_SUBTARGETINFO_MC_DESC
 
#define NoSchedModel   NoSchedModelR600
 
#define GET_SUBTARGETINFO_MC_DESC
 
#define GET_REGINFO_MC_DESC
 
#define GET_REGINFO_MC_DESC
 

Functions

static MCInstrInfocreateAMDGPUMCInstrInfo ()
 
static MCRegisterInfocreateAMDGPUMCRegisterInfo (const Triple &TT)
 
static MCSubtargetInfocreateAMDGPUMCSubtargetInfo (const Triple &TT, StringRef CPU, StringRef FS)
 
static MCInstPrintercreateAMDGPUMCInstPrinter (const Triple &T, unsigned SyntaxVariant, const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
 
static MCTargetStreamercreateAMDGPUAsmTargetStreamer (MCStreamer &S, formatted_raw_ostream &OS, MCInstPrinter *InstPrint)
 
static MCTargetStreamercreateAMDGPUObjectTargetStreamer (MCStreamer &S, const MCSubtargetInfo &STI)
 
static MCTargetStreamercreateAMDGPUNullTargetStreamer (MCStreamer &S)
 
static MCStreamercreateMCStreamer (const Triple &T, MCContext &Context, std::unique_ptr< MCAsmBackend > &&MAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&Emitter)
 
static MCInstrAnalysiscreateAMDGPUMCInstrAnalysis (const MCInstrInfo *Info)
 
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeAMDGPUTargetMC ()
 

Detailed Description

This file provides AMDGPU specific target descriptions.

Definition in file AMDGPUMCTargetDesc.cpp.

Macro Definition Documentation

◆ ENABLE_INSTR_PREDICATE_VERIFIER

#define ENABLE_INSTR_PREDICATE_VERIFIER

Definition at line 38 of file AMDGPUMCTargetDesc.cpp.

◆ GET_INSTRINFO_MC_DESC

#define GET_INSTRINFO_MC_DESC

Definition at line 37 of file AMDGPUMCTargetDesc.cpp.

◆ GET_REGINFO_MC_DESC [1/2]

#define GET_REGINFO_MC_DESC

Definition at line 52 of file AMDGPUMCTargetDesc.cpp.

◆ GET_REGINFO_MC_DESC [2/2]

#define GET_REGINFO_MC_DESC

Definition at line 52 of file AMDGPUMCTargetDesc.cpp.

◆ GET_SUBTARGETINFO_MC_DESC [1/2]

#define GET_SUBTARGETINFO_MC_DESC

Definition at line 45 of file AMDGPUMCTargetDesc.cpp.

◆ GET_SUBTARGETINFO_MC_DESC [2/2]

#define GET_SUBTARGETINFO_MC_DESC

Definition at line 45 of file AMDGPUMCTargetDesc.cpp.

◆ NoSchedModel

#define NoSchedModel   NoSchedModelR600

Definition at line 44 of file AMDGPUMCTargetDesc.cpp.

Function Documentation

◆ createAMDGPUAsmTargetStreamer()

static MCTargetStreamer * createAMDGPUAsmTargetStreamer ( MCStreamer S,
formatted_raw_ostream OS,
MCInstPrinter InstPrint 
)
static

Definition at line 109 of file AMDGPUMCTargetDesc.cpp.

References OS.

Referenced by LLVMInitializeAMDGPUTargetMC().

◆ createAMDGPUMCInstPrinter()

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

Definition at line 98 of file AMDGPUMCTargetDesc.cpp.

References MRI, and llvm::Triple::r600.

Referenced by LLVMInitializeAMDGPUTargetMC().

◆ createAMDGPUMCInstrAnalysis()

static MCInstrAnalysis * createAMDGPUMCInstrAnalysis ( const MCInstrInfo Info)
static

Definition at line 155 of file AMDGPUMCTargetDesc.cpp.

References Info.

Referenced by LLVMInitializeAMDGPUTargetMC().

◆ createAMDGPUMCInstrInfo()

static MCInstrInfo * createAMDGPUMCInstrInfo ( )
static

Definition at line 55 of file AMDGPUMCTargetDesc.cpp.

References X.

Referenced by LLVMInitializeAMDGPUTargetMC().

◆ createAMDGPUMCRegisterInfo()

static MCRegisterInfo * createAMDGPUMCRegisterInfo ( const Triple TT)
static

Definition at line 61 of file AMDGPUMCTargetDesc.cpp.

References llvm::Triple::r600, and X.

Referenced by LLVMInitializeAMDGPUTargetMC().

◆ createAMDGPUMCSubtargetInfo()

static MCSubtargetInfo * createAMDGPUMCSubtargetInfo ( const Triple TT,
StringRef  CPU,
StringRef  FS 
)
static

◆ createAMDGPUNullTargetStreamer()

static MCTargetStreamer * createAMDGPUNullTargetStreamer ( MCStreamer S)
static

Definition at line 120 of file AMDGPUMCTargetDesc.cpp.

Referenced by LLVMInitializeAMDGPUTargetMC().

◆ createAMDGPUObjectTargetStreamer()

static MCTargetStreamer * createAMDGPUObjectTargetStreamer ( MCStreamer S,
const MCSubtargetInfo STI 
)
static

Definition at line 114 of file AMDGPUMCTargetDesc.cpp.

Referenced by LLVMInitializeAMDGPUTargetMC().

◆ createMCStreamer()

static MCStreamer * createMCStreamer ( const Triple T,
MCContext Context,
std::unique_ptr< MCAsmBackend > &&  MAB,
std::unique_ptr< MCObjectWriter > &&  OW,
std::unique_ptr< MCCodeEmitter > &&  Emitter 
)
static

Definition at line 124 of file AMDGPUMCTargetDesc.cpp.

References llvm::createAMDGPUELFStreamer(), and Emitter.

Referenced by LLVMInitializeAMDGPUTargetMC().

◆ LLVMInitializeAMDGPUTargetMC()

LLVM_EXTERNAL_VISIBILITY void LLVMInitializeAMDGPUTargetMC ( )