LLVM  8.0.1
Macros | Functions
WebAssemblyMCTargetDesc.cpp File Reference

This file provides WebAssembly-specific target descriptions. More...

#include "WebAssemblyMCTargetDesc.h"
#include "InstPrinter/WebAssemblyInstPrinter.h"
#include "WebAssemblyMCAsmInfo.h"
#include "WebAssemblyTargetStreamer.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/TargetRegistry.h"
#include "WebAssemblyGenInstrInfo.inc"
#include "WebAssemblyGenSubtargetInfo.inc"
#include "WebAssemblyGenRegisterInfo.inc"
Include dependency graph for WebAssemblyMCTargetDesc.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "wasm-mc-target-desc"
 
#define GET_INSTRINFO_MC_DESC
 
#define GET_SUBTARGETINFO_MC_DESC
 
#define GET_REGINFO_MC_DESC
 

Functions

static MCAsmInfocreateMCAsmInfo (const MCRegisterInfo &, const Triple &TT)
 
static MCInstrInfocreateMCInstrInfo ()
 
static MCRegisterInfocreateMCRegisterInfo (const Triple &)
 
static MCInstPrintercreateMCInstPrinter (const Triple &, unsigned SyntaxVariant, const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
 
static MCCodeEmittercreateCodeEmitter (const MCInstrInfo &MCII, const MCRegisterInfo &, MCContext &Ctx)
 
static MCAsmBackendcreateAsmBackend (const Target &, const MCSubtargetInfo &STI, const MCRegisterInfo &, const MCTargetOptions &)
 
static MCSubtargetInfocreateMCSubtargetInfo (const Triple &TT, StringRef CPU, StringRef FS)
 
static MCTargetStreamercreateObjectTargetStreamer (MCStreamer &S, const MCSubtargetInfo &STI)
 
static MCTargetStreamercreateAsmTargetStreamer (MCStreamer &S, formatted_raw_ostream &OS, MCInstPrinter *, bool)
 
static MCTargetStreamercreateNullTargetStreamer (MCStreamer &S)
 
void LLVMInitializeWebAssemblyTargetMC ()
 

Detailed Description

This file provides WebAssembly-specific target descriptions.

Definition in file WebAssemblyMCTargetDesc.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "wasm-mc-target-desc"

Definition at line 26 of file WebAssemblyMCTargetDesc.cpp.

◆ GET_INSTRINFO_MC_DESC

#define GET_INSTRINFO_MC_DESC

Definition at line 28 of file WebAssemblyMCTargetDesc.cpp.

◆ GET_REGINFO_MC_DESC

#define GET_REGINFO_MC_DESC

Definition at line 34 of file WebAssemblyMCTargetDesc.cpp.

◆ GET_SUBTARGETINFO_MC_DESC

#define GET_SUBTARGETINFO_MC_DESC

Definition at line 31 of file WebAssemblyMCTargetDesc.cpp.

Function Documentation

◆ createAsmBackend()

static MCAsmBackend* createAsmBackend ( const Target ,
const MCSubtargetInfo STI,
const MCRegisterInfo ,
const MCTargetOptions  
)
static

◆ createAsmTargetStreamer()

static MCTargetStreamer* createAsmTargetStreamer ( MCStreamer S,
formatted_raw_ostream OS,
MCInstPrinter ,
bool   
)
static

Definition at line 86 of file WebAssemblyMCTargetDesc.cpp.

Referenced by LLVMInitializeWebAssemblyTargetMC().

◆ createCodeEmitter()

static MCCodeEmitter* createCodeEmitter ( const MCInstrInfo MCII,
const MCRegisterInfo ,
MCContext Ctx 
)
static

◆ createMCAsmInfo()

static MCAsmInfo* createMCAsmInfo ( const MCRegisterInfo ,
const Triple TT 
)
static

Definition at line 37 of file WebAssemblyMCTargetDesc.cpp.

Referenced by LLVMInitializeWebAssemblyTargetMC().

◆ createMCInstPrinter()

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

Definition at line 54 of file WebAssemblyMCTargetDesc.cpp.

References assert().

Referenced by LLVMInitializeWebAssemblyTargetMC().

◆ createMCInstrInfo()

static MCInstrInfo* createMCInstrInfo ( )
static

Definition at line 42 of file WebAssemblyMCTargetDesc.cpp.

References X.

Referenced by LLVMInitializeWebAssemblyTargetMC().

◆ createMCRegisterInfo()

static MCRegisterInfo* createMCRegisterInfo ( const Triple )
static

Definition at line 48 of file WebAssemblyMCTargetDesc.cpp.

References X.

Referenced by LLVMInitializeWebAssemblyTargetMC().

◆ createMCSubtargetInfo()

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

Definition at line 76 of file WebAssemblyMCTargetDesc.cpp.

Referenced by LLVMInitializeWebAssemblyTargetMC().

◆ createNullTargetStreamer()

static MCTargetStreamer* createNullTargetStreamer ( MCStreamer S)
static

Definition at line 93 of file WebAssemblyMCTargetDesc.cpp.

Referenced by LLVMInitializeWebAssemblyTargetMC().

◆ createObjectTargetStreamer()

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

Definition at line 82 of file WebAssemblyMCTargetDesc.cpp.

Referenced by LLVMInitializeWebAssemblyTargetMC().

◆ LLVMInitializeWebAssemblyTargetMC()

void LLVMInitializeWebAssemblyTargetMC ( )