OLD | NEW |
1 //===- subzero/src/IceTargetLoweringARM32.cpp - ARM32 lowering ------------===// | 1 //===- subzero/src/IceTargetLoweringARM32.cpp - ARM32 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 6799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6810 const std::string &SectionSuffix) { | 6810 const std::string &SectionSuffix) { |
6811 const bool IsPIC = getFlags().getUseNonsfi(); | 6811 const bool IsPIC = getFlags().getUseNonsfi(); |
6812 switch (getFlags().getOutFileType()) { | 6812 switch (getFlags().getOutFileType()) { |
6813 case FT_Elf: { | 6813 case FT_Elf: { |
6814 ELFObjectWriter *Writer = Ctx->getObjectWriter(); | 6814 ELFObjectWriter *Writer = Ctx->getObjectWriter(); |
6815 Writer->writeDataSection(Vars, llvm::ELF::R_ARM_ABS32, SectionSuffix, | 6815 Writer->writeDataSection(Vars, llvm::ELF::R_ARM_ABS32, SectionSuffix, |
6816 IsPIC); | 6816 IsPIC); |
6817 } break; | 6817 } break; |
6818 case FT_Asm: | 6818 case FT_Asm: |
6819 case FT_Iasm: { | 6819 case FT_Iasm: { |
6820 const std::string TranslateOnly = getFlags().getTranslateOnly(); | |
6821 OstreamLocker _(Ctx); | 6820 OstreamLocker _(Ctx); |
6822 for (const VariableDeclaration *Var : Vars) { | 6821 for (const VariableDeclaration *Var : Vars) { |
6823 if (GlobalContext::matchSymbolName(Var->getName(), TranslateOnly)) { | 6822 if (getFlags().matchTranslateOnly(Var->getName(), 0)) { |
6824 emitGlobal(*Var, SectionSuffix); | 6823 emitGlobal(*Var, SectionSuffix); |
6825 } | 6824 } |
6826 } | 6825 } |
6827 } break; | 6826 } break; |
6828 } | 6827 } |
6829 } | 6828 } |
6830 | 6829 |
6831 namespace { | 6830 namespace { |
6832 template <typename T> struct ConstantPoolEmitterTraits; | 6831 template <typename T> struct ConstantPoolEmitterTraits; |
6833 | 6832 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6998 // However, for compatibility with current NaCl LLVM, don't claim that. | 6997 // However, for compatibility with current NaCl LLVM, don't claim that. |
6999 Str << ".eabi_attribute 14, 3 @ Tag_ABI_PCS_R9_use: Not used\n"; | 6998 Str << ".eabi_attribute 14, 3 @ Tag_ABI_PCS_R9_use: Not used\n"; |
7000 } | 6999 } |
7001 | 7000 |
7002 SmallBitVector TargetARM32::TypeToRegisterSet[RegARM32::RCARM32_NUM]; | 7001 SmallBitVector TargetARM32::TypeToRegisterSet[RegARM32::RCARM32_NUM]; |
7003 SmallBitVector TargetARM32::TypeToRegisterSetUnfiltered[RegARM32::RCARM32_NUM]; | 7002 SmallBitVector TargetARM32::TypeToRegisterSetUnfiltered[RegARM32::RCARM32_NUM]; |
7004 SmallBitVector TargetARM32::RegisterAliases[RegARM32::Reg_NUM]; | 7003 SmallBitVector TargetARM32::RegisterAliases[RegARM32::Reg_NUM]; |
7005 | 7004 |
7006 } // end of namespace ARM32 | 7005 } // end of namespace ARM32 |
7007 } // end of namespace Ice | 7006 } // end of namespace Ice |
OLD | NEW |