Mercurial > hg > CbC > CbC_llvm
comparison lib/Target/Mips/MipsMCInstLower.h @ 77:54457678186b LLVM3.6
LLVM 3.6
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 08 Sep 2014 22:06:00 +0900 |
parents | 95c75e76d11b |
children | 1172e4bd9c6f |
comparison
equal
deleted
inserted
replaced
34:e874dbf0ad9d | 77:54457678186b |
---|---|
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 | 9 |
10 #ifndef MIPSMCINSTLOWER_H | 10 #ifndef LLVM_LIB_TARGET_MIPS_MIPSMCINSTLOWER_H |
11 #define MIPSMCINSTLOWER_H | 11 #define LLVM_LIB_TARGET_MIPS_MIPSMCINSTLOWER_H |
12 #include "MCTargetDesc/MipsMCExpr.h" | |
12 #include "llvm/ADT/SmallVector.h" | 13 #include "llvm/ADT/SmallVector.h" |
13 #include "llvm/CodeGen/MachineOperand.h" | 14 #include "llvm/CodeGen/MachineOperand.h" |
14 #include "llvm/Support/Compiler.h" | 15 #include "llvm/Support/Compiler.h" |
15 | 16 |
16 namespace llvm { | 17 namespace llvm { |
34 MCOperand LowerOperand(const MachineOperand& MO, unsigned offset = 0) const; | 35 MCOperand LowerOperand(const MachineOperand& MO, unsigned offset = 0) const; |
35 | 36 |
36 private: | 37 private: |
37 MCOperand LowerSymbolOperand(const MachineOperand &MO, | 38 MCOperand LowerSymbolOperand(const MachineOperand &MO, |
38 MachineOperandType MOTy, unsigned Offset) const; | 39 MachineOperandType MOTy, unsigned Offset) const; |
40 MCOperand createSub(MachineBasicBlock *BB1, MachineBasicBlock *BB2, | |
41 MCSymbolRefExpr::VariantKind Kind) const; | |
42 void lowerLongBranchLUi(const MachineInstr *MI, MCInst &OutMI) const; | |
43 void lowerLongBranchADDiu(const MachineInstr *MI, MCInst &OutMI, | |
44 int Opcode, | |
45 MCSymbolRefExpr::VariantKind Kind) const; | |
46 bool lowerLongBranch(const MachineInstr *MI, MCInst &OutMI) const; | |
39 }; | 47 }; |
40 } | 48 } |
41 | 49 |
42 #endif | 50 #endif |