1 //===-- MipsMCCodeEmitter.cpp - Convert Mips code to machine code ---------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file implements the MipsMCCodeEmitter class.
12 //===----------------------------------------------------------------------===//
14 #define DEBUG_TYPE "mccodeemitter"
15 #include "llvm/MC/MCCodeEmitter.h"
16 #include "llvm/MC/MCExpr.h"
17 #include "llvm/MC/MCInst.h"
18 #include "llvm/MC/MCInstrInfo.h"
19 #include "llvm/MC/MCRegisterInfo.h"
20 #include "llvm/MC/MCSubtargetInfo.h"
21 #include "llvm/ADT/APFloat.h"
22 #include "llvm/ADT/Statistic.h"
23 #include "llvm/Support/raw_ostream.h"
24 #include "MCTargetDesc/MipsMCTargetDesc.h"
29 class MipsMCCodeEmitter : public MCCodeEmitter {
30 MipsMCCodeEmitter(const MipsMCCodeEmitter &); // DO NOT IMPLEMENT
31 void operator=(const MipsMCCodeEmitter &); // DO NOT IMPLEMENT
32 const MCInstrInfo &MCII;
33 const MCSubtargetInfo &STI;
36 MipsMCCodeEmitter(const MCInstrInfo &mcii, const MCSubtargetInfo &sti,
38 : MCII(mcii), STI(sti) {}
40 ~MipsMCCodeEmitter() {}
42 void EncodeInstruction(const MCInst &MI, raw_ostream &OS,
43 SmallVectorImpl<MCFixup> &Fixups) const {
45 }; // class MipsMCCodeEmitter
48 MCCodeEmitter *llvm::createMipsMCCodeEmitter(const MCInstrInfo &MCII,
49 const MCSubtargetInfo &STI,
51 return new MipsMCCodeEmitter(MCII, STI, Ctx);