LLVM API Documentation

Defines | Functions
MipsMCTargetDesc.cpp File Reference
#include "InstPrinter/MipsInstPrinter.h"
#include "MipsELFStreamer.h"
#include "MipsMCAsmInfo.h"
#include "MipsMCNaCl.h"
#include "MipsMCTargetDesc.h"
#include "MipsTargetStreamer.h"
#include "llvm/ADT/Triple.h"
#include "llvm/MC/MCCodeGenInfo.h"
#include "llvm/MC/MCELFStreamer.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/MC/MachineLocation.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FormattedStream.h"
#include "llvm/Support/TargetRegistry.h"
#include "MipsGenInstrInfo.inc"
#include "MipsGenSubtargetInfo.inc"
#include "MipsGenRegisterInfo.inc"
Include dependency graph for MipsMCTargetDesc.cpp:

Go to the source code of this file.

Defines

#define GET_INSTRINFO_MC_DESC
#define GET_SUBTARGETINFO_MC_DESC
#define GET_REGINFO_MC_DESC

Functions

static StringRef selectMipsCPU (StringRef TT, StringRef CPU)
static MCInstrInfocreateMipsMCInstrInfo ()
static MCRegisterInfocreateMipsMCRegisterInfo (StringRef TT)
static MCSubtargetInfocreateMipsMCSubtargetInfo (StringRef TT, StringRef CPU, StringRef FS)
static MCAsmInfocreateMipsMCAsmInfo (const MCRegisterInfo &MRI, StringRef TT)
static MCCodeGenInfocreateMipsMCCodeGenInfo (StringRef TT, Reloc::Model RM, CodeModel::Model CM, CodeGenOpt::Level OL)
static MCInstPrintercreateMipsMCInstPrinter (const Target &T, unsigned SyntaxVariant, const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI, const MCSubtargetInfo &STI)
static MCStreamercreateMCStreamer (const Target &T, StringRef TT, MCContext &Context, MCAsmBackend &MAB, raw_ostream &OS, MCCodeEmitter *Emitter, const MCSubtargetInfo &STI, bool RelaxAll, bool NoExecStack)
static MCStreamercreateMCAsmStreamer (MCContext &Ctx, formatted_raw_ostream &OS, bool isVerboseAsm, bool useDwarfDirectory, MCInstPrinter *InstPrint, MCCodeEmitter *CE, MCAsmBackend *TAB, bool ShowInst)
static MCStreamercreateMipsNullStreamer (MCContext &Ctx)
void LLVMInitializeMipsTargetMC ()

Define Documentation

Definition at line 35 of file MipsMCTargetDesc.cpp.

Definition at line 41 of file MipsMCTargetDesc.cpp.

Definition at line 38 of file MipsMCTargetDesc.cpp.


Function Documentation

static MCStreamer* createMCAsmStreamer ( MCContext Ctx,
formatted_raw_ostream OS,
bool  isVerboseAsm,
bool  useDwarfDirectory,
MCInstPrinter InstPrint,
MCCodeEmitter CE,
MCAsmBackend TAB,
bool  ShowInst 
) [static]

Definition at line 126 of file MipsMCTargetDesc.cpp.

References llvm::createAsmStreamer().

static MCStreamer* createMCStreamer ( const Target T,
StringRef  TT,
MCContext Context,
MCAsmBackend MAB,
raw_ostream OS,
MCCodeEmitter Emitter,
const MCSubtargetInfo STI,
bool  RelaxAll,
bool  NoExecStack 
) [static]
static MCAsmInfo* createMipsMCAsmInfo ( const MCRegisterInfo MRI,
StringRef  TT 
) [static]
static MCInstPrinter* createMipsMCInstPrinter ( const Target T,
unsigned  SyntaxVariant,
const MCAsmInfo MAI,
const MCInstrInfo MII,
const MCRegisterInfo MRI,
const MCSubtargetInfo STI 
) [static]

Definition at line 100 of file MipsMCTargetDesc.cpp.

Referenced by LLVMInitializeMipsTargetMC().

static MCInstrInfo* createMipsMCInstrInfo ( ) [static]

Definition at line 58 of file MipsMCTargetDesc.cpp.

References llvm::X.

Referenced by LLVMInitializeMipsTargetMC().

Definition at line 64 of file MipsMCTargetDesc.cpp.

References llvm::X.

Referenced by LLVMInitializeMipsTargetMC().

static MCSubtargetInfo* createMipsMCSubtargetInfo ( StringRef  TT,
StringRef  CPU,
StringRef  FS 
) [static]

Definition at line 70 of file MipsMCTargetDesc.cpp.

References selectMipsCPU(), and llvm::X.

Referenced by LLVMInitializeMipsTargetMC().

static MCStreamer* createMipsNullStreamer ( MCContext Ctx) [static]

Definition at line 136 of file MipsMCTargetDesc.cpp.

References llvm::createNullStreamer().

Referenced by LLVMInitializeMipsTargetMC().

static StringRef selectMipsCPU ( StringRef  TT,
StringRef  CPU 
) [inline, static]

Select the Mips CPU for the given triple and cpu name. FIXME: Merge with the copy in MipsSubtarget.cpp

Definition at line 46 of file MipsMCTargetDesc.cpp.

References llvm::StringRef::empty(), llvm::Triple::getArch(), llvm::Triple::mips, and llvm::Triple::mipsel.

Referenced by createMipsMCSubtargetInfo().