summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsMCInstLower.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/Mips/MipsMCInstLower.h')
-rw-r--r--llvm/lib/Target/Mips/MipsMCInstLower.h28
1 files changed, 17 insertions, 11 deletions
diff --git a/llvm/lib/Target/Mips/MipsMCInstLower.h b/llvm/lib/Target/Mips/MipsMCInstLower.h
index c25f9000548..fb507964382 100644
--- a/llvm/lib/Target/Mips/MipsMCInstLower.h
+++ b/llvm/lib/Target/Mips/MipsMCInstLower.h
@@ -1,4 +1,4 @@
-//===-- MipsMCInstLower.h - Lower MachineInstr to MCInst -------*- C++ -*--===//
+//===- MipsMCInstLower.h - Lower MachineInstr to MCInst --------*- C++ -*--===//
//
// The LLVM Compiler Infrastructure
//
@@ -9,26 +9,31 @@
#ifndef LLVM_LIB_TARGET_MIPS_MIPSMCINSTLOWER_H
#define LLVM_LIB_TARGET_MIPS_MIPSMCINSTLOWER_H
+
#include "MCTargetDesc/MipsMCExpr.h"
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/Support/Compiler.h"
namespace llvm {
- class MCContext;
- class MCInst;
- class MCOperand;
- class MachineInstr;
- class MachineFunction;
- class MipsAsmPrinter;
+
+class MachineBasicBlock;
+class MachineInstr;
+class MCContext;
+class MCInst;
+class MCOperand;
+class MipsAsmPrinter;
/// MipsMCInstLower - This class is used to lower an MachineInstr into an
-// MCInst.
+/// MCInst.
class LLVM_LIBRARY_VISIBILITY MipsMCInstLower {
- typedef MachineOperand::MachineOperandType MachineOperandType;
+ using MachineOperandType = MachineOperand::MachineOperandType;
+
MCContext *Ctx;
MipsAsmPrinter &AsmPrinter;
+
public:
MipsMCInstLower(MipsAsmPrinter &asmprinter);
+
void Initialize(MCContext *C);
void Lower(const MachineInstr *MI, MCInst &OutMI) const;
MCOperand LowerOperand(const MachineOperand& MO, unsigned offset = 0) const;
@@ -43,6 +48,7 @@ private:
MipsMCExpr::MipsExprKind Kind) const;
bool lowerLongBranch(const MachineInstr *MI, MCInst &OutMI) const;
};
-}
-#endif
+} // end namespace llvm
+
+#endif // LLVM_LIB_TARGET_MIPS_MIPSMCINSTLOWER_H
OpenPOWER on IntegriCloud