Rafael Espindola | a17151a | 2013-10-08 13:08:17 +0000 | [diff] [blame] | 1 | //===-- MipsTargetStreamer.h - Mips Target Streamer ------------*- C++ -*--===// |
| 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 | |
Benjamin Kramer | a7c40ef | 2014-08-13 16:26:38 +0000 | [diff] [blame] | 10 | #ifndef LLVM_LIB_TARGET_MIPS_MIPSTARGETSTREAMER_H |
| 11 | #define LLVM_LIB_TARGET_MIPS_MIPSTARGETSTREAMER_H |
Rafael Espindola | a17151a | 2013-10-08 13:08:17 +0000 | [diff] [blame] | 12 | |
Chandler Carruth | d990388 | 2015-01-14 11:23:27 +0000 | [diff] [blame] | 13 | #include "MCTargetDesc/MipsABIFlagsSection.h" |
Eric Christopher | a576281 | 2015-01-26 17:33:46 +0000 | [diff] [blame] | 14 | #include "MCTargetDesc/MipsABIInfo.h" |
Jack Carter | 86ac5c1 | 2013-11-18 23:55:27 +0000 | [diff] [blame] | 15 | #include "llvm/MC/MCELFStreamer.h" |
Daniel Sanders | d97a634 | 2014-08-13 10:07:34 +0000 | [diff] [blame] | 16 | #include "llvm/MC/MCRegisterInfo.h" |
Rafael Espindola | a17151a | 2013-10-08 13:08:17 +0000 | [diff] [blame] | 17 | #include "llvm/MC/MCStreamer.h" |
| 18 | |
| 19 | namespace llvm { |
Vladimir Medic | fb8a2a9 | 2014-07-08 08:59:22 +0000 | [diff] [blame] | 20 | |
Daniel Sanders | 324ad95 | 2014-07-08 13:13:42 +0000 | [diff] [blame] | 21 | struct MipsABIFlagsSection; |
Vladimir Medic | fb8a2a9 | 2014-07-08 08:59:22 +0000 | [diff] [blame] | 22 | |
Rafael Espindola | a17151a | 2013-10-08 13:08:17 +0000 | [diff] [blame] | 23 | class MipsTargetStreamer : public MCTargetStreamer { |
Rafael Espindola | a17151a | 2013-10-08 13:08:17 +0000 | [diff] [blame] | 24 | public: |
Rafael Espindola | 24ea09e | 2014-01-26 06:06:37 +0000 | [diff] [blame] | 25 | MipsTargetStreamer(MCStreamer &S); |
Rafael Espindola | 60890b8 | 2014-06-23 19:43:40 +0000 | [diff] [blame] | 26 | virtual void emitDirectiveSetMicroMips(); |
| 27 | virtual void emitDirectiveSetNoMicroMips(); |
| 28 | virtual void emitDirectiveSetMips16(); |
| 29 | virtual void emitDirectiveSetNoMips16(); |
Rafael Espindola | eb0a8af | 2014-01-26 05:06:48 +0000 | [diff] [blame] | 30 | |
Rafael Espindola | 60890b8 | 2014-06-23 19:43:40 +0000 | [diff] [blame] | 31 | virtual void emitDirectiveSetReorder(); |
| 32 | virtual void emitDirectiveSetNoReorder(); |
| 33 | virtual void emitDirectiveSetMacro(); |
| 34 | virtual void emitDirectiveSetNoMacro(); |
Daniel Sanders | 4493443 | 2014-08-07 12:03:36 +0000 | [diff] [blame] | 35 | virtual void emitDirectiveSetMsa(); |
| 36 | virtual void emitDirectiveSetNoMsa(); |
Rafael Espindola | 60890b8 | 2014-06-23 19:43:40 +0000 | [diff] [blame] | 37 | virtual void emitDirectiveSetAt(); |
Toma Tabacu | 16a7449 | 2015-02-13 10:30:57 +0000 | [diff] [blame] | 38 | virtual void emitDirectiveSetAtWithArg(unsigned RegNo); |
Rafael Espindola | 60890b8 | 2014-06-23 19:43:40 +0000 | [diff] [blame] | 39 | virtual void emitDirectiveSetNoAt(); |
| 40 | virtual void emitDirectiveEnd(StringRef Name); |
Rafael Espindola | eb0a8af | 2014-01-26 05:06:48 +0000 | [diff] [blame] | 41 | |
Rafael Espindola | 60890b8 | 2014-06-23 19:43:40 +0000 | [diff] [blame] | 42 | virtual void emitDirectiveEnt(const MCSymbol &Symbol); |
| 43 | virtual void emitDirectiveAbiCalls(); |
| 44 | virtual void emitDirectiveNaN2008(); |
| 45 | virtual void emitDirectiveNaNLegacy(); |
| 46 | virtual void emitDirectiveOptionPic0(); |
| 47 | virtual void emitDirectiveOptionPic2(); |
Toma Tabacu | 9ca5096 | 2015-04-16 09:53:47 +0000 | [diff] [blame] | 48 | virtual void emitDirectiveInsn(); |
Rafael Espindola | 054234f | 2014-01-27 03:53:56 +0000 | [diff] [blame] | 49 | virtual void emitFrame(unsigned StackReg, unsigned StackSize, |
Rafael Espindola | 60890b8 | 2014-06-23 19:43:40 +0000 | [diff] [blame] | 50 | unsigned ReturnReg); |
| 51 | virtual void emitMask(unsigned CPUBitmask, int CPUTopSavedRegOff); |
| 52 | virtual void emitFMask(unsigned FPUBitmask, int FPUTopSavedRegOff); |
Vladimir Medic | 615b26e | 2014-03-04 09:54:09 +0000 | [diff] [blame] | 53 | |
Toma Tabacu | 85618b3 | 2014-08-19 14:22:52 +0000 | [diff] [blame] | 54 | virtual void emitDirectiveSetArch(StringRef Arch); |
Toma Tabacu | 2664779 | 2014-09-09 12:52:14 +0000 | [diff] [blame] | 55 | virtual void emitDirectiveSetMips0(); |
Daniel Sanders | f0df221 | 2014-08-04 12:20:00 +0000 | [diff] [blame] | 56 | virtual void emitDirectiveSetMips1(); |
| 57 | virtual void emitDirectiveSetMips2(); |
| 58 | virtual void emitDirectiveSetMips3(); |
| 59 | virtual void emitDirectiveSetMips4(); |
| 60 | virtual void emitDirectiveSetMips5(); |
| 61 | virtual void emitDirectiveSetMips32(); |
Rafael Espindola | 60890b8 | 2014-06-23 19:43:40 +0000 | [diff] [blame] | 62 | virtual void emitDirectiveSetMips32R2(); |
Daniel Sanders | 1779314 | 2015-02-18 16:24:50 +0000 | [diff] [blame] | 63 | virtual void emitDirectiveSetMips32R3(); |
| 64 | virtual void emitDirectiveSetMips32R5(); |
Daniel Sanders | f0df221 | 2014-08-04 12:20:00 +0000 | [diff] [blame] | 65 | virtual void emitDirectiveSetMips32R6(); |
Rafael Espindola | 60890b8 | 2014-06-23 19:43:40 +0000 | [diff] [blame] | 66 | virtual void emitDirectiveSetMips64(); |
| 67 | virtual void emitDirectiveSetMips64R2(); |
Daniel Sanders | 1779314 | 2015-02-18 16:24:50 +0000 | [diff] [blame] | 68 | virtual void emitDirectiveSetMips64R3(); |
| 69 | virtual void emitDirectiveSetMips64R5(); |
Daniel Sanders | f0df221 | 2014-08-04 12:20:00 +0000 | [diff] [blame] | 70 | virtual void emitDirectiveSetMips64R6(); |
Rafael Espindola | 60890b8 | 2014-06-23 19:43:40 +0000 | [diff] [blame] | 71 | virtual void emitDirectiveSetDsp(); |
Toma Tabacu | 351b2fe | 2014-09-17 09:01:54 +0000 | [diff] [blame] | 72 | virtual void emitDirectiveSetNoDsp(); |
Toma Tabacu | 9db22db | 2014-09-09 10:15:38 +0000 | [diff] [blame] | 73 | virtual void emitDirectiveSetPop(); |
| 74 | virtual void emitDirectiveSetPush(); |
Toma Tabacu | 2969650 | 2015-06-02 09:48:04 +0000 | [diff] [blame] | 75 | virtual void emitDirectiveSetSoftFloat(); |
| 76 | virtual void emitDirectiveSetHardFloat(); |
Matheus Almeida | 525bc4f | 2014-04-30 11:28:42 +0000 | [diff] [blame] | 77 | |
| 78 | // PIC support |
Toma Tabacu | c4c202a | 2014-10-01 14:53:19 +0000 | [diff] [blame] | 79 | virtual void emitDirectiveCpLoad(unsigned RegNo); |
Matheus Almeida | d92a3fa | 2014-05-01 10:24:46 +0000 | [diff] [blame] | 80 | virtual void emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset, |
Rafael Espindola | 60890b8 | 2014-06-23 19:43:40 +0000 | [diff] [blame] | 81 | const MCSymbol &Sym, bool IsReg); |
Daniel Sanders | 7e52742 | 2014-07-10 13:38:23 +0000 | [diff] [blame] | 82 | |
Toma Tabacu | a64e540 | 2015-06-25 12:44:38 +0000 | [diff] [blame] | 83 | // FP abiflags directives |
| 84 | virtual void emitDirectiveModuleFP(); |
Toma Tabacu | 3c49958 | 2015-06-25 10:56:57 +0000 | [diff] [blame] | 85 | virtual void emitDirectiveModuleOddSPReg(); |
Toma Tabacu | 4e0cf8e | 2015-03-06 12:15:12 +0000 | [diff] [blame] | 86 | virtual void emitDirectiveSetFp(MipsABIFlagsSection::FpABIKind Value); |
Toma Tabacu | 32c72aa | 2015-06-30 09:36:50 +0000 | [diff] [blame^] | 87 | virtual void emitDirectiveSetOddSPReg(); |
| 88 | virtual void emitDirectiveSetNoOddSPReg(); |
Toma Tabacu | a64e540 | 2015-06-25 12:44:38 +0000 | [diff] [blame] | 89 | |
Daniel Sanders | cdb45fa | 2014-08-14 09:18:14 +0000 | [diff] [blame] | 90 | void forbidModuleDirective() { ModuleDirectiveAllowed = false; } |
Toma Tabacu | 4e0cf8e | 2015-03-06 12:15:12 +0000 | [diff] [blame] | 91 | void reallowModuleDirective() { ModuleDirectiveAllowed = true; } |
Daniel Sanders | cdb45fa | 2014-08-14 09:18:14 +0000 | [diff] [blame] | 92 | bool isModuleDirectiveAllowed() { return ModuleDirectiveAllowed; } |
Vladimir Medic | fb8a2a9 | 2014-07-08 08:59:22 +0000 | [diff] [blame] | 93 | |
Vladimir Medic | fb8a2a9 | 2014-07-08 08:59:22 +0000 | [diff] [blame] | 94 | // This method enables template classes to set internal abi flags |
| 95 | // structure values. |
| 96 | template <class PredicateLibrary> |
| 97 | void updateABIInfo(const PredicateLibrary &P) { |
Eric Christopher | a576281 | 2015-01-26 17:33:46 +0000 | [diff] [blame] | 98 | ABI = &P.getABI(); |
Daniel Sanders | c7dbc63 | 2014-07-08 10:11:38 +0000 | [diff] [blame] | 99 | ABIFlagsSection.setAllFromPredicates(P); |
Vladimir Medic | fb8a2a9 | 2014-07-08 08:59:22 +0000 | [diff] [blame] | 100 | } |
| 101 | |
Daniel Sanders | c7dbc63 | 2014-07-08 10:11:38 +0000 | [diff] [blame] | 102 | MipsABIFlagsSection &getABIFlagsSection() { return ABIFlagsSection; } |
Eric Christopher | a576281 | 2015-01-26 17:33:46 +0000 | [diff] [blame] | 103 | const MipsABIInfo &getABI() const { |
| 104 | assert(ABI && "ABI hasn't been set!"); |
| 105 | return *ABI; |
| 106 | } |
Daniel Sanders | c7dbc63 | 2014-07-08 10:11:38 +0000 | [diff] [blame] | 107 | |
Vladimir Medic | fb8a2a9 | 2014-07-08 08:59:22 +0000 | [diff] [blame] | 108 | protected: |
Eric Christopher | a576281 | 2015-01-26 17:33:46 +0000 | [diff] [blame] | 109 | const MipsABIInfo *ABI; |
Daniel Sanders | c7dbc63 | 2014-07-08 10:11:38 +0000 | [diff] [blame] | 110 | MipsABIFlagsSection ABIFlagsSection; |
Vladimir Medic | fb8a2a9 | 2014-07-08 08:59:22 +0000 | [diff] [blame] | 111 | |
Daniel Sanders | d97a634 | 2014-08-13 10:07:34 +0000 | [diff] [blame] | 112 | bool GPRInfoSet; |
| 113 | unsigned GPRBitMask; |
| 114 | int GPROffset; |
| 115 | |
| 116 | bool FPRInfoSet; |
| 117 | unsigned FPRBitMask; |
| 118 | int FPROffset; |
| 119 | |
| 120 | bool FrameInfoSet; |
| 121 | int FrameOffset; |
| 122 | unsigned FrameReg; |
| 123 | unsigned ReturnReg; |
| 124 | |
Vladimir Medic | fb8a2a9 | 2014-07-08 08:59:22 +0000 | [diff] [blame] | 125 | private: |
Daniel Sanders | cdb45fa | 2014-08-14 09:18:14 +0000 | [diff] [blame] | 126 | bool ModuleDirectiveAllowed; |
Rafael Espindola | a17151a | 2013-10-08 13:08:17 +0000 | [diff] [blame] | 127 | }; |
Jack Carter | 86ac5c1 | 2013-11-18 23:55:27 +0000 | [diff] [blame] | 128 | |
| 129 | // This part is for ascii assembly output |
| 130 | class MipsTargetAsmStreamer : public MipsTargetStreamer { |
Jack Carter | 6ef6cc5 | 2013-11-19 20:53:28 +0000 | [diff] [blame] | 131 | formatted_raw_ostream &OS; |
| 132 | |
Jack Carter | 86ac5c1 | 2013-11-18 23:55:27 +0000 | [diff] [blame] | 133 | public: |
Rafael Espindola | 24ea09e | 2014-01-26 06:06:37 +0000 | [diff] [blame] | 134 | MipsTargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS); |
Craig Topper | 56c590a | 2014-04-29 07:58:02 +0000 | [diff] [blame] | 135 | void emitDirectiveSetMicroMips() override; |
| 136 | void emitDirectiveSetNoMicroMips() override; |
| 137 | void emitDirectiveSetMips16() override; |
| 138 | void emitDirectiveSetNoMips16() override; |
Rafael Espindola | eb0a8af | 2014-01-26 05:06:48 +0000 | [diff] [blame] | 139 | |
Craig Topper | 56c590a | 2014-04-29 07:58:02 +0000 | [diff] [blame] | 140 | void emitDirectiveSetReorder() override; |
| 141 | void emitDirectiveSetNoReorder() override; |
| 142 | void emitDirectiveSetMacro() override; |
| 143 | void emitDirectiveSetNoMacro() override; |
Daniel Sanders | 4493443 | 2014-08-07 12:03:36 +0000 | [diff] [blame] | 144 | void emitDirectiveSetMsa() override; |
| 145 | void emitDirectiveSetNoMsa() override; |
Craig Topper | 56c590a | 2014-04-29 07:58:02 +0000 | [diff] [blame] | 146 | void emitDirectiveSetAt() override; |
Toma Tabacu | 16a7449 | 2015-02-13 10:30:57 +0000 | [diff] [blame] | 147 | void emitDirectiveSetAtWithArg(unsigned RegNo) override; |
Craig Topper | 56c590a | 2014-04-29 07:58:02 +0000 | [diff] [blame] | 148 | void emitDirectiveSetNoAt() override; |
| 149 | void emitDirectiveEnd(StringRef Name) override; |
Rafael Espindola | eb0a8af | 2014-01-26 05:06:48 +0000 | [diff] [blame] | 150 | |
Craig Topper | 56c590a | 2014-04-29 07:58:02 +0000 | [diff] [blame] | 151 | void emitDirectiveEnt(const MCSymbol &Symbol) override; |
| 152 | void emitDirectiveAbiCalls() override; |
| 153 | void emitDirectiveNaN2008() override; |
| 154 | void emitDirectiveNaNLegacy() override; |
| 155 | void emitDirectiveOptionPic0() override; |
| 156 | void emitDirectiveOptionPic2() override; |
Toma Tabacu | 9ca5096 | 2015-04-16 09:53:47 +0000 | [diff] [blame] | 157 | void emitDirectiveInsn() override; |
Craig Topper | 56c590a | 2014-04-29 07:58:02 +0000 | [diff] [blame] | 158 | void emitFrame(unsigned StackReg, unsigned StackSize, |
| 159 | unsigned ReturnReg) override; |
| 160 | void emitMask(unsigned CPUBitmask, int CPUTopSavedRegOff) override; |
| 161 | void emitFMask(unsigned FPUBitmask, int FPUTopSavedRegOff) override; |
Vladimir Medic | 615b26e | 2014-03-04 09:54:09 +0000 | [diff] [blame] | 162 | |
Toma Tabacu | 85618b3 | 2014-08-19 14:22:52 +0000 | [diff] [blame] | 163 | void emitDirectiveSetArch(StringRef Arch) override; |
Toma Tabacu | 2664779 | 2014-09-09 12:52:14 +0000 | [diff] [blame] | 164 | void emitDirectiveSetMips0() override; |
Daniel Sanders | f0df221 | 2014-08-04 12:20:00 +0000 | [diff] [blame] | 165 | void emitDirectiveSetMips1() override; |
| 166 | void emitDirectiveSetMips2() override; |
| 167 | void emitDirectiveSetMips3() override; |
| 168 | void emitDirectiveSetMips4() override; |
| 169 | void emitDirectiveSetMips5() override; |
| 170 | void emitDirectiveSetMips32() override; |
Craig Topper | 56c590a | 2014-04-29 07:58:02 +0000 | [diff] [blame] | 171 | void emitDirectiveSetMips32R2() override; |
Daniel Sanders | 1779314 | 2015-02-18 16:24:50 +0000 | [diff] [blame] | 172 | void emitDirectiveSetMips32R3() override; |
| 173 | void emitDirectiveSetMips32R5() override; |
Daniel Sanders | f0df221 | 2014-08-04 12:20:00 +0000 | [diff] [blame] | 174 | void emitDirectiveSetMips32R6() override; |
Craig Topper | 56c590a | 2014-04-29 07:58:02 +0000 | [diff] [blame] | 175 | void emitDirectiveSetMips64() override; |
| 176 | void emitDirectiveSetMips64R2() override; |
Daniel Sanders | 1779314 | 2015-02-18 16:24:50 +0000 | [diff] [blame] | 177 | void emitDirectiveSetMips64R3() override; |
| 178 | void emitDirectiveSetMips64R5() override; |
Daniel Sanders | f0df221 | 2014-08-04 12:20:00 +0000 | [diff] [blame] | 179 | void emitDirectiveSetMips64R6() override; |
Craig Topper | 56c590a | 2014-04-29 07:58:02 +0000 | [diff] [blame] | 180 | void emitDirectiveSetDsp() override; |
Toma Tabacu | 351b2fe | 2014-09-17 09:01:54 +0000 | [diff] [blame] | 181 | void emitDirectiveSetNoDsp() override; |
Toma Tabacu | 9db22db | 2014-09-09 10:15:38 +0000 | [diff] [blame] | 182 | void emitDirectiveSetPop() override; |
| 183 | void emitDirectiveSetPush() override; |
Toma Tabacu | 2969650 | 2015-06-02 09:48:04 +0000 | [diff] [blame] | 184 | void emitDirectiveSetSoftFloat() override; |
| 185 | void emitDirectiveSetHardFloat() override; |
Matheus Almeida | 525bc4f | 2014-04-30 11:28:42 +0000 | [diff] [blame] | 186 | |
| 187 | // PIC support |
Toma Tabacu | c4c202a | 2014-10-01 14:53:19 +0000 | [diff] [blame] | 188 | void emitDirectiveCpLoad(unsigned RegNo) override; |
Matheus Almeida | d92a3fa | 2014-05-01 10:24:46 +0000 | [diff] [blame] | 189 | void emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset, |
| 190 | const MCSymbol &Sym, bool IsReg) override; |
Vladimir Medic | fb8a2a9 | 2014-07-08 08:59:22 +0000 | [diff] [blame] | 191 | |
Toma Tabacu | a64e540 | 2015-06-25 12:44:38 +0000 | [diff] [blame] | 192 | // FP abiflags directives |
| 193 | void emitDirectiveModuleFP() override; |
Toma Tabacu | 3c49958 | 2015-06-25 10:56:57 +0000 | [diff] [blame] | 194 | void emitDirectiveModuleOddSPReg() override; |
Daniel Sanders | 7e52742 | 2014-07-10 13:38:23 +0000 | [diff] [blame] | 195 | void emitDirectiveSetFp(MipsABIFlagsSection::FpABIKind Value) override; |
Toma Tabacu | 32c72aa | 2015-06-30 09:36:50 +0000 | [diff] [blame^] | 196 | void emitDirectiveSetOddSPReg() override; |
| 197 | void emitDirectiveSetNoOddSPReg() override; |
Jack Carter | 86ac5c1 | 2013-11-18 23:55:27 +0000 | [diff] [blame] | 198 | }; |
| 199 | |
| 200 | // This part is for ELF object output |
| 201 | class MipsTargetELFStreamer : public MipsTargetStreamer { |
Rafael Espindola | 6d5f7ce | 2014-01-14 04:25:13 +0000 | [diff] [blame] | 202 | bool MicroMipsEnabled; |
Rafael Espindola | 972e71a | 2014-01-31 23:10:26 +0000 | [diff] [blame] | 203 | const MCSubtargetInfo &STI; |
Matheus Almeida | f79b281 | 2014-03-26 13:40:29 +0000 | [diff] [blame] | 204 | bool Pic; |
Jack Carter | 3953672 | 2014-01-22 23:08:42 +0000 | [diff] [blame] | 205 | |
Jack Carter | 86ac5c1 | 2013-11-18 23:55:27 +0000 | [diff] [blame] | 206 | public: |
Rafael Espindola | 6d5f7ce | 2014-01-14 04:25:13 +0000 | [diff] [blame] | 207 | bool isMicroMipsEnabled() const { return MicroMipsEnabled; } |
Jack Carter | 86ac5c1 | 2013-11-18 23:55:27 +0000 | [diff] [blame] | 208 | MCELFStreamer &getStreamer(); |
Rafael Espindola | cb1953f | 2014-01-26 06:57:13 +0000 | [diff] [blame] | 209 | MipsTargetELFStreamer(MCStreamer &S, const MCSubtargetInfo &STI); |
Rafael Espindola | 6d5f7ce | 2014-01-14 04:25:13 +0000 | [diff] [blame] | 210 | |
Craig Topper | 56c590a | 2014-04-29 07:58:02 +0000 | [diff] [blame] | 211 | void emitLabel(MCSymbol *Symbol) override; |
| 212 | void emitAssignment(MCSymbol *Symbol, const MCExpr *Value) override; |
Craig Topper | 7315602 | 2014-03-02 09:09:27 +0000 | [diff] [blame] | 213 | void finish() override; |
Rafael Espindola | 6d5f7ce | 2014-01-14 04:25:13 +0000 | [diff] [blame] | 214 | |
Craig Topper | 56c590a | 2014-04-29 07:58:02 +0000 | [diff] [blame] | 215 | void emitDirectiveSetMicroMips() override; |
| 216 | void emitDirectiveSetNoMicroMips() override; |
| 217 | void emitDirectiveSetMips16() override; |
Rafael Espindola | eb0a8af | 2014-01-26 05:06:48 +0000 | [diff] [blame] | 218 | |
Craig Topper | 56c590a | 2014-04-29 07:58:02 +0000 | [diff] [blame] | 219 | void emitDirectiveSetNoReorder() override; |
Craig Topper | 56c590a | 2014-04-29 07:58:02 +0000 | [diff] [blame] | 220 | void emitDirectiveEnd(StringRef Name) override; |
Rafael Espindola | eb0a8af | 2014-01-26 05:06:48 +0000 | [diff] [blame] | 221 | |
Craig Topper | 56c590a | 2014-04-29 07:58:02 +0000 | [diff] [blame] | 222 | void emitDirectiveEnt(const MCSymbol &Symbol) override; |
| 223 | void emitDirectiveAbiCalls() override; |
| 224 | void emitDirectiveNaN2008() override; |
| 225 | void emitDirectiveNaNLegacy() override; |
| 226 | void emitDirectiveOptionPic0() override; |
| 227 | void emitDirectiveOptionPic2() override; |
Toma Tabacu | 9ca5096 | 2015-04-16 09:53:47 +0000 | [diff] [blame] | 228 | void emitDirectiveInsn() override; |
Craig Topper | 56c590a | 2014-04-29 07:58:02 +0000 | [diff] [blame] | 229 | void emitFrame(unsigned StackReg, unsigned StackSize, |
| 230 | unsigned ReturnReg) override; |
| 231 | void emitMask(unsigned CPUBitmask, int CPUTopSavedRegOff) override; |
| 232 | void emitFMask(unsigned FPUBitmask, int FPUTopSavedRegOff) override; |
Vladimir Medic | 615b26e | 2014-03-04 09:54:09 +0000 | [diff] [blame] | 233 | |
Matheus Almeida | 525bc4f | 2014-04-30 11:28:42 +0000 | [diff] [blame] | 234 | // PIC support |
Toma Tabacu | c4c202a | 2014-10-01 14:53:19 +0000 | [diff] [blame] | 235 | void emitDirectiveCpLoad(unsigned RegNo) override; |
Matheus Almeida | d92a3fa | 2014-05-01 10:24:46 +0000 | [diff] [blame] | 236 | void emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset, |
| 237 | const MCSymbol &Sym, bool IsReg) override; |
Matheus Almeida | 525bc4f | 2014-04-30 11:28:42 +0000 | [diff] [blame] | 238 | |
Toma Tabacu | e95a491 | 2015-03-13 11:40:01 +0000 | [diff] [blame] | 239 | void emitMipsAbiFlags(); |
Jack Carter | 86ac5c1 | 2013-11-18 23:55:27 +0000 | [diff] [blame] | 240 | }; |
Alexander Kornienko | f00654e | 2015-06-23 09:49:53 +0000 | [diff] [blame] | 241 | } |
Rafael Espindola | a17151a | 2013-10-08 13:08:17 +0000 | [diff] [blame] | 242 | #endif |