OLD | NEW |
1 //===- subzero/src/IceTargetLoweringMIPS32.cpp - MIPS32 lowering ----------===// | 1 //===- subzero/src/IceTargetLoweringMIPS32.cpp - MIPS32 lowering ----------===// |
2 // | 2 // |
3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
4 // | 4 // |
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 /// \file | 10 /// \file |
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1204 const std::string &SectionSuffix) { | 1204 const std::string &SectionSuffix) { |
1205 const bool IsPIC = getFlags().getUseNonsfi(); | 1205 const bool IsPIC = getFlags().getUseNonsfi(); |
1206 switch (getFlags().getOutFileType()) { | 1206 switch (getFlags().getOutFileType()) { |
1207 case FT_Elf: { | 1207 case FT_Elf: { |
1208 ELFObjectWriter *Writer = Ctx->getObjectWriter(); | 1208 ELFObjectWriter *Writer = Ctx->getObjectWriter(); |
1209 Writer->writeDataSection(Vars, llvm::ELF::R_MIPS_GLOB_DAT, SectionSuffix, | 1209 Writer->writeDataSection(Vars, llvm::ELF::R_MIPS_GLOB_DAT, SectionSuffix, |
1210 IsPIC); | 1210 IsPIC); |
1211 } break; | 1211 } break; |
1212 case FT_Asm: | 1212 case FT_Asm: |
1213 case FT_Iasm: { | 1213 case FT_Iasm: { |
1214 const std::string TranslateOnly = getFlags().getTranslateOnly(); | |
1215 OstreamLocker L(Ctx); | 1214 OstreamLocker L(Ctx); |
1216 for (const VariableDeclaration *Var : Vars) { | 1215 for (const VariableDeclaration *Var : Vars) { |
1217 if (GlobalContext::matchSymbolName(Var->getName(), TranslateOnly)) { | 1216 if (getFlags().matchTranslateOnly(Var->getName(), 0)) { |
1218 emitGlobal(*Var, SectionSuffix); | 1217 emitGlobal(*Var, SectionSuffix); |
1219 } | 1218 } |
1220 } | 1219 } |
1221 } break; | 1220 } break; |
1222 } | 1221 } |
1223 } | 1222 } |
1224 | 1223 |
1225 void TargetDataMIPS32::lowerConstants() { | 1224 void TargetDataMIPS32::lowerConstants() { |
1226 if (getFlags().getDisableTranslation()) | 1225 if (getFlags().getDisableTranslation()) |
1227 return; | 1226 return; |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1322 Str << "\t.set\t" | 1321 Str << "\t.set\t" |
1323 << "nomips16\n"; | 1322 << "nomips16\n"; |
1324 } | 1323 } |
1325 | 1324 |
1326 SmallBitVector TargetMIPS32::TypeToRegisterSet[RCMIPS32_NUM]; | 1325 SmallBitVector TargetMIPS32::TypeToRegisterSet[RCMIPS32_NUM]; |
1327 SmallBitVector TargetMIPS32::TypeToRegisterSetUnfiltered[RCMIPS32_NUM]; | 1326 SmallBitVector TargetMIPS32::TypeToRegisterSetUnfiltered[RCMIPS32_NUM]; |
1328 SmallBitVector TargetMIPS32::RegisterAliases[RegMIPS32::Reg_NUM]; | 1327 SmallBitVector TargetMIPS32::RegisterAliases[RegMIPS32::Reg_NUM]; |
1329 | 1328 |
1330 } // end of namespace MIPS32 | 1329 } // end of namespace MIPS32 |
1331 } // end of namespace Ice | 1330 } // end of namespace Ice |
OLD | NEW |