Lines Matching refs:TM

351           TM->getFunctionSections() ? Name->getString() : StringRef());  in emitModuleMetadata()
379 const GlobalValue *GV, const TargetMachine &TM, in getCFIPersonalitySymbol() argument
384 TM.getSymbol(GV)->getName()); in getCFIPersonalitySymbol()
386 return TM.getSymbol(GV); in getCFIPersonalitySymbol()
413 const GlobalValue *GV, unsigned Encoding, const TargetMachine &TM, in getTTypeGlobalReference() argument
418 MCSymbol *SSym = getSymbolWithGlobalValueBase(GV, ".DW.stub", TM); in getTTypeGlobalReference()
424 MCSymbol *Sym = TM.getSymbol(GV); in getTTypeGlobalReference()
433 return TargetLoweringObjectFile::getTTypeGlobalReference(GV, Encoding, TM, in getTTypeGlobalReference()
555 const TargetMachine &TM) { in getLinkedToSymbol() argument
569 return OtherGV ? dyn_cast<MCSymbolELF>(TM.getSymbol(OtherGV)) : nullptr; in getLinkedToSymbol()
618 Mangler &Mang, const TargetMachine &TM, in getELFSectionNameForGlobal() argument
647 TM.getNameWithPrefix(Name, GO, Mang, /*MayAlwaysUsePrivate*/true); in getELFSectionNameForGlobal()
671 SectionKind Kind, const TargetMachine &TM, in calcUniqueIDUpdateFlagsAndSize() argument
690 if (TM.getTargetTriple().isOSSolaris()) in calcUniqueIDUpdateFlagsAndSize()
733 getELFSectionNameForGlobal(GO, Kind, Mang, TM, EntrySize, false); in calcUniqueIDUpdateFlagsAndSize()
745 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM, in selectExplicitSectionGlobal() argument
785 GO, SectionName, Kind, TM, Ctx, Mang, Flags, EntrySize, NextUniqueID, in selectExplicitSectionGlobal()
788 const MCSymbolELF *LinkedToSym = getLinkedToSymbol(GO, TM); in selectExplicitSectionGlobal()
818 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
819 return selectExplicitSectionGlobal(GO, Kind, TM, getContext(), getMangler(), in getExplicitSectionGlobal()
826 const TargetMachine &TM, bool EmitUniqueSection, unsigned Flags, in selectELFSectionForGlobal() argument
843 if (TM.getUniqueSectionNames()) { in selectELFSectionForGlobal()
851 GO, Kind, Mang, TM, EntrySize, UniqueSectionName); in selectELFSectionForGlobal()
863 const TargetMachine &TM, bool Retain, bool EmitUniqueSection, in selectELFSectionForGlobal() argument
865 const MCSymbolELF *LinkedToSym = getLinkedToSymbol(GO, TM); in selectELFSectionForGlobal()
871 if (TM.getTargetTriple().isOSSolaris()) { in selectELFSectionForGlobal()
882 Ctx, GO, Kind, Mang, TM, EmitUniqueSection, Flags, in selectELFSectionForGlobal()
889 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
897 EmitUniqueSection = TM.getFunctionSections(); in SelectSectionForGlobal()
899 EmitUniqueSection = TM.getDataSections(); in SelectSectionForGlobal()
902 return selectELFSectionForGlobal(getContext(), GO, Kind, getMangler(), TM, in SelectSectionForGlobal()
908 const Function &F, const TargetMachine &TM) const { in getUniqueSectionForFunction()
915 &F, Kind, TM, getContext(), getMangler(), NextUniqueID, in getUniqueSectionForFunction()
919 getContext(), &F, Kind, getMangler(), TM, Used.count(&F), in getUniqueSectionForFunction()
924 const Function &F, const TargetMachine &TM) const { in getSectionForJumpTable()
928 bool EmitUniqueSection = TM.getFunctionSections() || C; in getSectionForJumpTable()
933 getMangler(), TM, EmitUniqueSection, in getSectionForJumpTable()
939 const Function &F, const MCSymbol &FnSym, const TargetMachine &TM) const { in getSectionForLSDA()
942 if (!LSDASection || (!F.hasComdat() && !TM.getFunctionSections())) in getSectionForLSDA()
957 if (TM.getFunctionSections() && in getSectionForLSDA()
967 (TM.getUniqueSectionNames() ? LSDA->getName() + "." + F.getName() in getSectionForLSDA()
1003 const TargetMachine &TM) const { in getSectionForMachineBasicBlock()
1021 if (TM.getUniqueBasicBlockSectionNames()) { in getSectionForMachineBasicBlock()
1093 const TargetMachine &TM) const { in lowerRelativeReference()
1106 MCSymbolRefExpr::create(TM.getSymbol(LHS), PLTRelativeVariantKind, in lowerRelativeReference()
1108 MCSymbolRefExpr::create(TM.getSymbol(RHS), getContext()), getContext()); in lowerRelativeReference()
1112 const DSOLocalEquivalent *Equiv, const TargetMachine &TM) const { in lowerDSOLocalEquivalent()
1119 return MCSymbolRefExpr::create(TM.getSymbol(GV), getContext()); in lowerDSOLocalEquivalent()
1121 return MCSymbolRefExpr::create(TM.getSymbol(GV), PLTRelativeVariantKind, in lowerDSOLocalEquivalent()
1161 const TargetMachine &TM) { in Initialize() argument
1162 TargetLoweringObjectFile::Initialize(Ctx, TM); in Initialize()
1163 if (TM.getRelocationModel() == Reloc::Static) { in Initialize()
1188 if (TM->Options.LowerGlobalDtorsViaCxaAtExit) in getStaticDtorSection()
1247 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
1294 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
1381 const GlobalValue *GV, unsigned Encoding, const TargetMachine &TM, in getTTypeGlobalReference() argument
1389 MCSymbol *SSym = getSymbolWithGlobalValueBase(GV, "$non_lazy_ptr", TM); in getTTypeGlobalReference()
1395 MCSymbol *Sym = TM.getSymbol(GV); in getTTypeGlobalReference()
1404 return TargetLoweringObjectFile::getTTypeGlobalReference(GV, Encoding, TM, in getTTypeGlobalReference()
1409 const GlobalValue *GV, const TargetMachine &TM, in getCFIPersonalitySymbol() argument
1415 MCSymbol *SSym = getSymbolWithGlobalValueBase(GV, "$non_lazy_ptr", TM); in getCFIPersonalitySymbol()
1421 MCSymbol *Sym = TM.getSymbol(GV); in getCFIPersonalitySymbol()
1519 const TargetMachine &TM) const { in getNameWithPrefix()
1522 SectionKind GOKind = TargetLoweringObjectFile::getKindForGlobal(GO, TM); in getNameWithPrefix()
1523 const MCSection *TheSection = SectionForGlobal(GO, GOKind, TM); in getNameWithPrefix()
1525 !canUsePrivateLabel(*TM.getMCAsmInfo(), *TheSection); in getNameWithPrefix()
1535 getCOFFSectionFlags(SectionKind K, const TargetMachine &TM) { in getCOFFSectionFlags() argument
1537 bool isThumb = TM.getTargetTriple().getArch() == Triple::thumb; in getCOFFSectionFlags()
1617 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
1619 unsigned Characteristics = getCOFFSectionFlags(Kind, TM); in getExplicitSectionGlobal()
1631 MCSymbol *Sym = TM.getSymbol(ComdatGV); in getExplicitSectionGlobal()
1656 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
1661 EmitUniquedSection = TM.getFunctionSections(); in SelectSectionForGlobal()
1663 EmitUniquedSection = TM.getDataSections(); in SelectSectionForGlobal()
1668 unsigned Characteristics = getCOFFSectionFlags(Kind, TM); in SelectSectionForGlobal()
1685 MCSymbol *Sym = TM.getSymbol(ComdatGV); in SelectSectionForGlobal()
1728 const TargetMachine &TM) const { in getNameWithPrefix()
1731 ((isa<Function>(GV) && TM.getFunctionSections()) || in getNameWithPrefix()
1732 (isa<GlobalVariable>(GV) && TM.getDataSections()))) in getNameWithPrefix()
1739 const Function &F, const TargetMachine &TM) const { in getSectionForJumpTable()
1743 bool EmitUniqueSection = TM.getFunctionSections() || C; in getSectionForJumpTable()
1751 MCSymbol *Sym = TM.getSymbol(&F); in getSectionForJumpTable()
1756 unsigned Characteristics = getCOFFSectionFlags(Kind, TM); in getSectionForJumpTable()
1852 const TargetMachine &TM) { in Initialize() argument
1853 TargetLoweringObjectFile::Initialize(Ctx, TM); in Initialize()
1854 this->TM = &TM; in Initialize()
1855 const Triple &T = TM.getTargetTriple(); in Initialize()
1931 const TargetMachine &TM) const { in lowerRelativeReference()
1932 const Triple &T = TM.getTargetTriple(); in lowerRelativeReference()
1955 return MCSymbolRefExpr::create(TM.getSymbol(LHS), in lowerRelativeReference()
2070 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
2074 return SelectSectionForGlobal(GO, Kind, TM); in getExplicitSectionGlobal()
2101 const TargetMachine &TM, bool EmitUniqueSection, unsigned *NextUniqueID) { in selectWasmSectionForGlobal() argument
2107 bool UniqueSectionNames = TM.getUniqueSectionNames(); in selectWasmSectionForGlobal()
2118 TM.getNameWithPrefix(Name, GO, Mang, true); in selectWasmSectionForGlobal()
2131 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
2140 EmitUniqueSection = TM.getFunctionSections(); in SelectSectionForGlobal()
2142 EmitUniqueSection = TM.getDataSections(); in SelectSectionForGlobal()
2145 return selectWasmSectionForGlobal(getContext(), GO, Kind, getMangler(), TM, in SelectSectionForGlobal()
2158 const TargetMachine &TM) const { in lowerRelativeReference()
2171 MCSymbolRefExpr::create(TM.getSymbol(LHS), MCSymbolRefExpr::VK_None, in lowerRelativeReference()
2173 MCSymbolRefExpr::create(TM.getSymbol(RHS), getContext()), getContext()); in lowerRelativeReference()
2238 const TargetMachine &TM) const { in getTargetSymbol()
2251 SectionForGlobal(GVar, SectionKind::getData(), TM)) in getTargetSymbol()
2255 return cast<MCSectionXCOFF>(getSectionForExternalReference(GO, TM)) in getTargetSymbol()
2258 SectionKind GOKind = getKindForGlobal(GO, TM); in getTargetSymbol()
2261 getSectionForFunctionDescriptor(cast<Function>(GO), TM)) in getTargetSymbol()
2263 if ((TM.getDataSections() && !GO->hasSection()) || GO->hasCommonLinkage() || in getTargetSymbol()
2265 return cast<MCSectionXCOFF>(SectionForGlobal(GO, GOKind, TM)) in getTargetSymbol()
2274 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
2304 const GlobalObject *GO, const TargetMachine &TM) const { in getSectionForExternalReference()
2309 getNameWithPrefix(Name, GO, TM); in getSectionForExternalReference()
2323 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
2328 getNameWithPrefix(Name, GO, TM); in SelectSectionForGlobal()
2340 getNameWithPrefix(Name, GO, TM); in SelectSectionForGlobal()
2357 if (TM.getDataSections()) in SelectSectionForGlobal()
2358 getNameWithPrefix(Name, GO, TM); in SelectSectionForGlobal()
2362 /* MultiSymbolsAllowed*/ !TM.getDataSections()); in SelectSectionForGlobal()
2366 if (TM.getFunctionSections()) { in SelectSectionForGlobal()
2367 return cast<MCSymbolXCOFF>(getFunctionEntryPointSymbol(GO, TM)) in SelectSectionForGlobal()
2381 if (TM.getDataSections()) { in SelectSectionForGlobal()
2383 getNameWithPrefix(Name, GO, TM); in SelectSectionForGlobal()
2392 if (TM.getDataSections()) { in SelectSectionForGlobal()
2394 getNameWithPrefix(Name, GO, TM); in SelectSectionForGlobal()
2407 if (TM.getDataSections()) { in SelectSectionForGlobal()
2409 getNameWithPrefix(Name, GO, TM); in SelectSectionForGlobal()
2420 const Function &F, const TargetMachine &TM) const { in getSectionForJumpTable()
2423 if (!TM.getFunctionSections()) in getSectionForJumpTable()
2429 getNameWithPrefix(NameStr, &F, TM); in getSectionForJumpTable()
2486 const TargetMachine &TM) const { in lowerRelativeReference()
2517 const GlobalValue *Func, const TargetMachine &TM) const { in getFunctionEntryPointSymbol()
2527 getNameWithPrefix(NameStr, Func, TM); in getFunctionEntryPointSymbol()
2533 if (((TM.getFunctionSections() && !Func->hasSection()) || in getFunctionEntryPointSymbol()
2549 const Function *F, const TargetMachine &TM) const { in getSectionForFunctionDescriptor()
2551 getNameWithPrefix(NameStr, F, TM); in getSectionForFunctionDescriptor()
2558 const MCSymbol *Sym, const TargetMachine &TM) const { in getSectionForTOCEntry()
2564 TM.getCodeModel() == CodeModel::Large ? XCOFF::XMC_TE : XCOFF::XMC_TC, in getSectionForTOCEntry()
2569 const Function &F, const MCSymbol &FnSym, const TargetMachine &TM) const { in getSectionForLSDA()
2571 if (TM.getFunctionSections()) { in getSectionForLSDA()
2588 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
2589 return SelectSectionForGlobal(GO, Kind, TM); in getExplicitSectionGlobal()
2593 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
2594 auto *Symbol = TM.getSymbol(GO); in SelectSectionForGlobal()