Lines Matching refs:TM

351           TM->getFunctionSections() ? Name->getString() : StringRef());  in emitModuleMetadata()
404 const GlobalValue *GV, const TargetMachine &TM, in getCFIPersonalitySymbol() argument
409 TM.getSymbol(GV)->getName()); in getCFIPersonalitySymbol()
411 return TM.getSymbol(GV); in getCFIPersonalitySymbol()
438 const GlobalValue *GV, unsigned Encoding, const TargetMachine &TM, in getTTypeGlobalReference() argument
443 MCSymbol *SSym = getSymbolWithGlobalValueBase(GV, ".DW.stub", TM); in getTTypeGlobalReference()
449 MCSymbol *Sym = TM.getSymbol(GV); in getTTypeGlobalReference()
458 return TargetLoweringObjectFile::getTTypeGlobalReference(GV, Encoding, TM, in getTTypeGlobalReference()
581 const TargetMachine &TM) { in getLinkedToSymbol() argument
588 return OtherGV ? dyn_cast<MCSymbolELF>(TM.getSymbol(OtherGV)) : nullptr; in getLinkedToSymbol()
637 Mangler &Mang, const TargetMachine &TM, in getELFSectionNameForGlobal() argument
640 getSectionPrefixForGlobal(Kind, TM.isLargeGlobalValue(GO)); in getELFSectionNameForGlobal()
667 TM.getNameWithPrefix(Name, GO, Mang, /*MayAlwaysUsePrivate*/true); in getELFSectionNameForGlobal()
691 SectionKind Kind, const TargetMachine &TM, in calcUniqueIDUpdateFlagsAndSize() argument
710 if (TM.getTargetTriple().isOSSolaris()) in calcUniqueIDUpdateFlagsAndSize()
738 if (TM.getSeparateNamedSections()) in calcUniqueIDUpdateFlagsAndSize()
749 if (PreviousID && (!TM.getSeparateNamedSections() || in calcUniqueIDUpdateFlagsAndSize()
758 getELFSectionNameForGlobal(GO, Kind, Mang, TM, EntrySize, false); in calcUniqueIDUpdateFlagsAndSize()
770 getGlobalObjectInfo(const GlobalObject *GO, const TargetMachine &TM) { in getGlobalObjectInfo() argument
779 if (TM.isLargeGlobalValue(GO)) in getGlobalObjectInfo()
785 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM, in selectExplicitSectionGlobal() argument
811 auto [Group, IsComdat, ExtraFlags] = getGlobalObjectInfo(GO, TM); in selectExplicitSectionGlobal()
816 GO, SectionName, Kind, TM, Ctx, Mang, Flags, EntrySize, NextUniqueID, in selectExplicitSectionGlobal()
819 const MCSymbolELF *LinkedToSym = getLinkedToSymbol(GO, TM); in selectExplicitSectionGlobal()
849 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
850 return selectExplicitSectionGlobal(GO, Kind, TM, getContext(), getMangler(), in getExplicitSectionGlobal()
857 const TargetMachine &TM, bool EmitUniqueSection, unsigned Flags, in selectELFSectionForGlobal() argument
860 auto [Group, IsComdat, ExtraFlags] = getGlobalObjectInfo(GO, TM); in selectELFSectionForGlobal()
869 if (TM.getUniqueSectionNames()) { in selectELFSectionForGlobal()
877 GO, Kind, Mang, TM, EntrySize, UniqueSectionName); in selectELFSectionForGlobal()
889 const TargetMachine &TM, bool Retain, bool EmitUniqueSection, in selectELFSectionForGlobal() argument
891 const MCSymbolELF *LinkedToSym = getLinkedToSymbol(GO, TM); in selectELFSectionForGlobal()
897 if (TM.getTargetTriple().isOSSolaris()) { in selectELFSectionForGlobal()
908 Ctx, GO, Kind, Mang, TM, EmitUniqueSection, Flags, in selectELFSectionForGlobal()
915 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
923 EmitUniqueSection = TM.getFunctionSections(); in SelectSectionForGlobal()
925 EmitUniqueSection = TM.getDataSections(); in SelectSectionForGlobal()
928 return selectELFSectionForGlobal(getContext(), GO, Kind, getMangler(), TM, in SelectSectionForGlobal()
934 const Function &F, const TargetMachine &TM) const { in getUniqueSectionForFunction()
941 &F, Kind, TM, getContext(), getMangler(), NextUniqueID, in getUniqueSectionForFunction()
945 getContext(), &F, Kind, getMangler(), TM, Used.count(&F), in getUniqueSectionForFunction()
950 const Function &F, const TargetMachine &TM) const { in getSectionForJumpTable()
954 bool EmitUniqueSection = TM.getFunctionSections() || C; in getSectionForJumpTable()
959 getMangler(), TM, EmitUniqueSection, in getSectionForJumpTable()
965 const Function &F, const MCSymbol &FnSym, const TargetMachine &TM) const { in getSectionForLSDA()
968 if (!LSDASection || (!F.hasComdat() && !TM.getFunctionSections())) in getSectionForLSDA()
983 if (TM.getFunctionSections() && in getSectionForLSDA()
993 (TM.getUniqueSectionNames() ? LSDA->getName() + "." + F.getName() in getSectionForLSDA()
1029 const TargetMachine &TM) const { in getSectionForMachineBasicBlock()
1052 if (TM.getUniqueBasicBlockSectionNames()) { in getSectionForMachineBasicBlock()
1130 const TargetMachine &TM) const { in lowerRelativeReference()
1143 MCSymbolRefExpr::create(TM.getSymbol(LHS), PLTRelativeVariantKind, in lowerRelativeReference()
1145 MCSymbolRefExpr::create(TM.getSymbol(RHS), getContext()), getContext()); in lowerRelativeReference()
1149 const DSOLocalEquivalent *Equiv, const TargetMachine &TM) const { in lowerDSOLocalEquivalent()
1156 return MCSymbolRefExpr::create(TM.getSymbol(GV), getContext()); in lowerDSOLocalEquivalent()
1158 return MCSymbolRefExpr::create(TM.getSymbol(GV), PLTRelativeVariantKind, in lowerDSOLocalEquivalent()
1198 const TargetMachine &TM) { in Initialize() argument
1199 TargetLoweringObjectFile::Initialize(Ctx, TM); in Initialize()
1200 if (TM.getRelocationModel() == Reloc::Static) { in Initialize()
1285 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
1341 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
1433 const GlobalValue *GV, unsigned Encoding, const TargetMachine &TM, in getTTypeGlobalReference() argument
1441 MCSymbol *SSym = getSymbolWithGlobalValueBase(GV, "$non_lazy_ptr", TM); in getTTypeGlobalReference()
1447 MCSymbol *Sym = TM.getSymbol(GV); in getTTypeGlobalReference()
1456 return TargetLoweringObjectFile::getTTypeGlobalReference(GV, Encoding, TM, in getTTypeGlobalReference()
1461 const GlobalValue *GV, const TargetMachine &TM, in getCFIPersonalitySymbol() argument
1467 MCSymbol *SSym = getSymbolWithGlobalValueBase(GV, "$non_lazy_ptr", TM); in getCFIPersonalitySymbol()
1473 MCSymbol *Sym = TM.getSymbol(GV); in getCFIPersonalitySymbol()
1571 const TargetMachine &TM) const { in getNameWithPrefix()
1574 SectionKind GOKind = TargetLoweringObjectFile::getKindForGlobal(GO, TM); in getNameWithPrefix()
1575 const MCSection *TheSection = SectionForGlobal(GO, GOKind, TM); in getNameWithPrefix()
1577 !canUsePrivateLabel(*TM.getMCAsmInfo(), *TheSection); in getNameWithPrefix()
1587 getCOFFSectionFlags(SectionKind K, const TargetMachine &TM) { in getCOFFSectionFlags() argument
1589 bool isThumb = TM.getTargetTriple().getArch() == Triple::thumb; in getCOFFSectionFlags()
1669 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
1681 unsigned Characteristics = getCOFFSectionFlags(Kind, TM); in getExplicitSectionGlobal()
1692 MCSymbol *Sym = TM.getSymbol(ComdatGV); in getExplicitSectionGlobal()
1717 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
1722 EmitUniquedSection = TM.getFunctionSections(); in SelectSectionForGlobal()
1724 EmitUniquedSection = TM.getDataSections(); in SelectSectionForGlobal()
1729 unsigned Characteristics = getCOFFSectionFlags(Kind, TM); in SelectSectionForGlobal()
1746 MCSymbol *Sym = TM.getSymbol(ComdatGV); in SelectSectionForGlobal()
1789 const TargetMachine &TM) const { in getNameWithPrefix()
1792 ((isa<Function>(GV) && TM.getFunctionSections()) || in getNameWithPrefix()
1793 (isa<GlobalVariable>(GV) && TM.getDataSections()))) in getNameWithPrefix()
1800 const Function &F, const TargetMachine &TM) const { in getSectionForJumpTable()
1804 bool EmitUniqueSection = TM.getFunctionSections() || C; in getSectionForJumpTable()
1812 MCSymbol *Sym = TM.getSymbol(&F); in getSectionForJumpTable()
1817 unsigned Characteristics = getCOFFSectionFlags(Kind, TM); in getSectionForJumpTable()
1828 if (TM->getTargetTriple().getArch() == Triple::x86_64) { in shouldPutJumpTableInFunctionSection()
1924 const TargetMachine &TM) { in Initialize() argument
1925 TargetLoweringObjectFile::Initialize(Ctx, TM); in Initialize()
1926 this->TM = &TM; in Initialize()
1927 const Triple &T = TM.getTargetTriple(); in Initialize()
2010 const TargetMachine &TM) const { in lowerRelativeReference()
2011 const Triple &T = TM.getTargetTriple(); in lowerRelativeReference()
2034 return MCSymbolRefExpr::create(TM.getSymbol(LHS), in lowerRelativeReference()
2160 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
2164 return SelectSectionForGlobal(GO, Kind, TM); in getExplicitSectionGlobal()
2192 const TargetMachine &TM, bool EmitUniqueSection, in selectWasmSectionForGlobal() argument
2199 bool UniqueSectionNames = TM.getUniqueSectionNames(); in selectWasmSectionForGlobal()
2210 TM.getNameWithPrefix(Name, GO, Mang, true); in selectWasmSectionForGlobal()
2223 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
2232 EmitUniqueSection = TM.getFunctionSections(); in SelectSectionForGlobal()
2234 EmitUniqueSection = TM.getDataSections(); in SelectSectionForGlobal()
2239 return selectWasmSectionForGlobal(getContext(), GO, Kind, getMangler(), TM, in SelectSectionForGlobal()
2252 const TargetMachine &TM) const { in lowerRelativeReference()
2265 MCSymbolRefExpr::create(TM.getSymbol(LHS), MCSymbolRefExpr::VK_None, in lowerRelativeReference()
2267 MCSymbolRefExpr::create(TM.getSymbol(RHS), getContext()), getContext()); in lowerRelativeReference()
2334 const TargetMachine &TM) const { in getTargetSymbol()
2345 return cast<MCSectionXCOFF>(getSectionForExternalReference(GO, TM)) in getTargetSymbol()
2351 SectionForGlobal(GVar, SectionKind::getData(), TM)) in getTargetSymbol()
2354 SectionKind GOKind = getKindForGlobal(GO, TM); in getTargetSymbol()
2357 getSectionForFunctionDescriptor(cast<Function>(GO), TM)) in getTargetSymbol()
2359 if ((TM.getDataSections() && !GO->hasSection()) || GO->hasCommonLinkage() || in getTargetSymbol()
2361 return cast<MCSectionXCOFF>(SectionForGlobal(GO, GOKind, TM)) in getTargetSymbol()
2370 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
2391 TM.Options.XCOFFReadOnlyPointers ? XCOFF::XMC_RO : XCOFF::XMC_RW; in getExplicitSectionGlobal()
2403 const GlobalObject *GO, const TargetMachine &TM) const { in getSectionForExternalReference()
2408 getNameWithPrefix(Name, GO, TM); in getSectionForExternalReference()
2435 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
2440 getNameWithPrefix(Name, GO, TM); in SelectSectionForGlobal()
2454 getNameWithPrefix(Name, GO, TM); in SelectSectionForGlobal()
2463 if (TM.getFunctionSections()) { in SelectSectionForGlobal()
2464 return cast<MCSymbolXCOFF>(getFunctionEntryPointSymbol(GO, TM)) in SelectSectionForGlobal()
2470 if (TM.Options.XCOFFReadOnlyPointers && Kind.isReadOnlyWithRel()) { in SelectSectionForGlobal()
2471 if (!TM.getDataSections()) in SelectSectionForGlobal()
2476 getNameWithPrefix(Name, GO, TM); in SelectSectionForGlobal()
2487 if (TM.getDataSections()) { in SelectSectionForGlobal()
2489 getNameWithPrefix(Name, GO, TM); in SelectSectionForGlobal()
2498 if (TM.getDataSections()) { in SelectSectionForGlobal()
2500 getNameWithPrefix(Name, GO, TM); in SelectSectionForGlobal()
2513 if (TM.getDataSections()) { in SelectSectionForGlobal()
2515 getNameWithPrefix(Name, GO, TM); in SelectSectionForGlobal()
2526 const Function &F, const TargetMachine &TM) const { in getSectionForJumpTable()
2529 if (!TM.getFunctionSections()) in getSectionForJumpTable()
2535 getNameWithPrefix(NameStr, &F, TM); in getSectionForJumpTable()
2599 const TargetMachine &TM) const { in lowerRelativeReference()
2630 const GlobalValue *Func, const TargetMachine &TM) const { in getFunctionEntryPointSymbol()
2640 getNameWithPrefix(NameStr, Func, TM); in getFunctionEntryPointSymbol()
2646 if (((TM.getFunctionSections() && !Func->hasSection()) || in getFunctionEntryPointSymbol()
2662 const Function *F, const TargetMachine &TM) const { in getSectionForFunctionDescriptor()
2664 getNameWithPrefix(NameStr, F, TM); in getSectionForFunctionDescriptor()
2671 const MCSymbol *Sym, const TargetMachine &TM) const { in getSectionForTOCEntry()
2673 const TargetMachine &TM) { in getSectionForTOCEntry() argument
2689 return TM.getCodeModel() == CodeModel::Large ? XCOFF::XMC_TE in getSectionForTOCEntry()
2695 }(Sym, TM); in getSectionForTOCEntry()
2703 const Function &F, const MCSymbol &FnSym, const TargetMachine &TM) const { in getSectionForLSDA()
2705 if (TM.getFunctionSections()) { in getSectionForLSDA()
2722 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
2723 return SelectSectionForGlobal(GO, Kind, TM); in getExplicitSectionGlobal()
2727 const Function &F, const MCSymbol &FnSym, const TargetMachine &TM) const { in getSectionForLSDA()
2733 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
2734 auto *Symbol = TM.getSymbol(GO); in SelectSectionForGlobal()