blob: 67fe79cf83a190b85d6f4025b5d0e1db2f929e14 [file] [log] [blame]
Chris Lattner9cf0eb52009-10-19 20:21:05 +00001//===-- ARMMCInstLower.h - Lower MachineInstr to MCInst -------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef ARM_MCINSTLOWER_H
11#define ARM_MCINSTLOWER_H
12
13#include "llvm/Support/Compiler.h"
14
15namespace llvm {
16 class MCContext;
17 class MCInst;
18 class MCOperand;
19 class MCSymbol;
20 class MachineInstr;
21 class MachineModuleInfoMachO;
22 class MachineOperand;
23 class Mangler;
24 //class ARMSubtarget;
25
26/// ARMMCInstLower - This class is used to lower an MachineInstr into an MCInst.
27class VISIBILITY_HIDDEN ARMMCInstLower {
28 MCContext &Ctx;
29 Mangler *Mang;
30
31 //const ARMSubtarget &getSubtarget() const;
32public:
33 ARMMCInstLower(MCContext &ctx, Mangler *mang)
34 : Ctx(ctx), Mang(mang) {}
35
36 void Lower(const MachineInstr *MI, MCInst &OutMI) const;
37
38/*
39 MCSymbol *GetPICBaseSymbol() const;
40
41 MCSymbol *GetGlobalAddressSymbol(const MachineOperand &MO) const;
42 MCSymbol *GetExternalSymbolSymbol(const MachineOperand &MO) const;
43 MCSymbol *GetJumpTableSymbol(const MachineOperand &MO) const;
44 MCSymbol *GetConstantPoolIndexSymbol(const MachineOperand &MO) const;
45 MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const;
46
47private:
48 MachineModuleInfoMachO &getMachOMMI() const;
49 */
50};
51
52}
53
54#endif