Mercurial > hg > Members > tobaru > cbc > CbC_llvm
comparison lib/Target/SystemZ/InstPrinter/SystemZInstPrinter.h @ 95:afa8332a0e37
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | 54457678186b |
children | 7d135dc70f03 |
comparison
equal
deleted
inserted
replaced
84:f3e34b893a5f | 95:afa8332a0e37 |
---|---|
33 // Print an address with the given base, displacement and index. | 33 // Print an address with the given base, displacement and index. |
34 static void printAddress(unsigned Base, int64_t Disp, unsigned Index, | 34 static void printAddress(unsigned Base, int64_t Disp, unsigned Index, |
35 raw_ostream &O); | 35 raw_ostream &O); |
36 | 36 |
37 // Print the given operand. | 37 // Print the given operand. |
38 static void printOperand(const MCOperand &MO, raw_ostream &O); | 38 static void printOperand(const MCOperand &MO, const MCAsmInfo *MAI, |
39 raw_ostream &O); | |
39 | 40 |
40 // Override MCInstPrinter. | 41 // Override MCInstPrinter. |
41 void printRegName(raw_ostream &O, unsigned RegNo) const override; | 42 void printRegName(raw_ostream &O, unsigned RegNo) const override; |
42 void printInst(const MCInst *MI, raw_ostream &O, StringRef Annot) override; | 43 void printInst(const MCInst *MI, raw_ostream &O, StringRef Annot, |
44 const MCSubtargetInfo &STI) override; | |
43 | 45 |
44 private: | 46 private: |
45 // Print various types of operand. | 47 // Print various types of operand. |
46 void printOperand(const MCInst *MI, int OpNum, raw_ostream &O); | 48 void printOperand(const MCInst *MI, int OpNum, raw_ostream &O); |
47 void printBDAddrOperand(const MCInst *MI, int OpNum, raw_ostream &O); | 49 void printBDAddrOperand(const MCInst *MI, int OpNum, raw_ostream &O); |
48 void printBDXAddrOperand(const MCInst *MI, int OpNum, raw_ostream &O); | 50 void printBDXAddrOperand(const MCInst *MI, int OpNum, raw_ostream &O); |
49 void printBDLAddrOperand(const MCInst *MI, int OpNum, raw_ostream &O); | 51 void printBDLAddrOperand(const MCInst *MI, int OpNum, raw_ostream &O); |
52 void printBDVAddrOperand(const MCInst *MI, int OpNum, raw_ostream &O); | |
53 void printU1ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O); | |
54 void printU2ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O); | |
55 void printU3ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O); | |
50 void printU4ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O); | 56 void printU4ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O); |
51 void printU6ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O); | 57 void printU6ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O); |
52 void printS8ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O); | 58 void printS8ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O); |
53 void printU8ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O); | 59 void printU8ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O); |
60 void printU12ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O); | |
54 void printS16ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O); | 61 void printS16ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O); |
55 void printU16ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O); | 62 void printU16ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O); |
56 void printS32ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O); | 63 void printS32ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O); |
57 void printU32ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O); | 64 void printU32ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O); |
58 void printPCRelOperand(const MCInst *MI, int OpNum, raw_ostream &O); | 65 void printPCRelOperand(const MCInst *MI, int OpNum, raw_ostream &O); |
66 void printPCRelTLSOperand(const MCInst *MI, int OpNum, raw_ostream &O); | |
59 void printAccessRegOperand(const MCInst *MI, int OpNum, raw_ostream &O); | 67 void printAccessRegOperand(const MCInst *MI, int OpNum, raw_ostream &O); |
60 | 68 |
61 // Print the mnemonic for a condition-code mask ("ne", "lh", etc.) | 69 // Print the mnemonic for a condition-code mask ("ne", "lh", etc.) |
62 // This forms part of the instruction name rather than the operand list. | 70 // This forms part of the instruction name rather than the operand list. |
63 void printCond4Operand(const MCInst *MI, int OpNum, raw_ostream &O); | 71 void printCond4Operand(const MCInst *MI, int OpNum, raw_ostream &O); |