LLVM  6.0.0svn
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 MCRegisterInfo &, const Triple &TT, StringRef, 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)
 
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 MCRegisterInfo ,
const Triple TT,
StringRef  ,
const MCTargetOptions  
)
static

◆ createAsmTargetStreamer()

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

Definition at line 92 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

◆ createMCInstPrinter()

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

Definition at line 56 of file WebAssemblyMCTargetDesc.cpp.

References assert().

Referenced by LLVMInitializeWebAssemblyTargetMC().

◆ createMCInstrInfo()

static MCInstrInfo* createMCInstrInfo ( )
static

Definition at line 44 of file WebAssemblyMCTargetDesc.cpp.

References X.

Referenced by LLVMInitializeWebAssemblyTargetMC().

◆ createMCRegisterInfo()

static MCRegisterInfo* createMCRegisterInfo ( const Triple )
static

Definition at line 50 of file WebAssemblyMCTargetDesc.cpp.

References X.

Referenced by LLVMInitializeWebAssemblyTargetMC().

◆ createMCSubtargetInfo()

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

Definition at line 78 of file WebAssemblyMCTargetDesc.cpp.

Referenced by LLVMInitializeWebAssemblyTargetMC().

◆ createObjectTargetStreamer()

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

◆ LLVMInitializeWebAssemblyTargetMC()

void LLVMInitializeWebAssemblyTargetMC ( )