Lines Matching refs:TM
352 TM->getFunctionSections() ? Name->getString() : StringRef()); in emitModuleMetadata()
380 const GlobalValue *GV, const TargetMachine &TM, in getCFIPersonalitySymbol() argument
385 TM.getSymbol(GV)->getName()); in getCFIPersonalitySymbol()
387 return TM.getSymbol(GV); in getCFIPersonalitySymbol()
414 const GlobalValue *GV, unsigned Encoding, const TargetMachine &TM, in getTTypeGlobalReference() argument
419 MCSymbol *SSym = getSymbolWithGlobalValueBase(GV, ".DW.stub", TM); in getTTypeGlobalReference()
425 MCSymbol *Sym = TM.getSymbol(GV); in getTTypeGlobalReference()
434 return TargetLoweringObjectFile::getTTypeGlobalReference(GV, Encoding, TM, in getTTypeGlobalReference()
545 const TargetMachine &TM) { in getLinkedToSymbol() argument
559 return OtherGV ? dyn_cast<MCSymbolELF>(TM.getSymbol(OtherGV)) : nullptr; in getLinkedToSymbol()
608 Mangler &Mang, const TargetMachine &TM, in getELFSectionNameForGlobal() argument
637 TM.getNameWithPrefix(Name, GO, Mang, /*MayAlwaysUsePrivate*/true); in getELFSectionNameForGlobal()
661 SectionKind Kind, const TargetMachine &TM, in calcUniqueIDUpdateFlagsAndSize() argument
682 !TM.getTargetTriple().isOSSolaris()) in calcUniqueIDUpdateFlagsAndSize()
722 getELFSectionNameForGlobal(GO, Kind, Mang, TM, EntrySize, false); in calcUniqueIDUpdateFlagsAndSize()
734 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM, in selectExplicitSectionGlobal() argument
774 GO, SectionName, Kind, TM, Ctx, Mang, Flags, EntrySize, NextUniqueID, in selectExplicitSectionGlobal()
777 const MCSymbolELF *LinkedToSym = getLinkedToSymbol(GO, TM); in selectExplicitSectionGlobal()
807 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
808 return selectExplicitSectionGlobal(GO, Kind, TM, getContext(), getMangler(), in getExplicitSectionGlobal()
815 const TargetMachine &TM, bool EmitUniqueSection, unsigned Flags, in selectELFSectionForGlobal() argument
832 if (TM.getUniqueSectionNames()) { in selectELFSectionForGlobal()
840 GO, Kind, Mang, TM, EntrySize, UniqueSectionName); in selectELFSectionForGlobal()
852 const TargetMachine &TM, bool Retain, bool EmitUniqueSection, in selectELFSectionForGlobal() argument
854 const MCSymbolELF *LinkedToSym = getLinkedToSymbol(GO, TM); in selectELFSectionForGlobal()
862 !TM.getTargetTriple().isOSSolaris()) { in selectELFSectionForGlobal()
868 Ctx, GO, Kind, Mang, TM, EmitUniqueSection, Flags, in selectELFSectionForGlobal()
875 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
883 EmitUniqueSection = TM.getFunctionSections(); in SelectSectionForGlobal()
885 EmitUniqueSection = TM.getDataSections(); in SelectSectionForGlobal()
888 return selectELFSectionForGlobal(getContext(), GO, Kind, getMangler(), TM, in SelectSectionForGlobal()
894 const Function &F, const TargetMachine &TM) const { in getUniqueSectionForFunction()
901 &F, Kind, TM, getContext(), getMangler(), NextUniqueID, in getUniqueSectionForFunction()
905 getContext(), &F, Kind, getMangler(), TM, Used.count(&F), in getUniqueSectionForFunction()
910 const Function &F, const TargetMachine &TM) const { in getSectionForJumpTable()
914 bool EmitUniqueSection = TM.getFunctionSections() || C; in getSectionForJumpTable()
919 getMangler(), TM, EmitUniqueSection, in getSectionForJumpTable()
925 const Function &F, const MCSymbol &FnSym, const TargetMachine &TM) const { in getSectionForLSDA()
928 if (!LSDASection || (!F.hasComdat() && !TM.getFunctionSections())) in getSectionForLSDA()
943 if (TM.getFunctionSections() && in getSectionForLSDA()
953 (TM.getUniqueSectionNames() ? LSDA->getName() + "." + F.getName() in getSectionForLSDA()
989 const TargetMachine &TM) const { in getSectionForMachineBasicBlock()
1007 if (TM.getUniqueBasicBlockSectionNames()) { in getSectionForMachineBasicBlock()
1079 const TargetMachine &TM) const { in lowerRelativeReference()
1092 MCSymbolRefExpr::create(TM.getSymbol(LHS), PLTRelativeVariantKind, in lowerRelativeReference()
1094 MCSymbolRefExpr::create(TM.getSymbol(RHS), getContext()), getContext()); in lowerRelativeReference()
1098 const DSOLocalEquivalent *Equiv, const TargetMachine &TM) const { in lowerDSOLocalEquivalent()
1105 return MCSymbolRefExpr::create(TM.getSymbol(GV), getContext()); in lowerDSOLocalEquivalent()
1107 return MCSymbolRefExpr::create(TM.getSymbol(GV), PLTRelativeVariantKind, in lowerDSOLocalEquivalent()
1148 const TargetMachine &TM) { in Initialize() argument
1149 TargetLoweringObjectFile::Initialize(Ctx, TM); in Initialize()
1150 if (TM.getRelocationModel() == Reloc::Static) { in Initialize()
1224 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
1271 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
1358 const GlobalValue *GV, unsigned Encoding, const TargetMachine &TM, in getTTypeGlobalReference() argument
1366 MCSymbol *SSym = getSymbolWithGlobalValueBase(GV, "$non_lazy_ptr", TM); in getTTypeGlobalReference()
1372 MCSymbol *Sym = TM.getSymbol(GV); in getTTypeGlobalReference()
1381 return TargetLoweringObjectFile::getTTypeGlobalReference(GV, Encoding, TM, in getTTypeGlobalReference()
1386 const GlobalValue *GV, const TargetMachine &TM, in getCFIPersonalitySymbol() argument
1392 MCSymbol *SSym = getSymbolWithGlobalValueBase(GV, "$non_lazy_ptr", TM); in getCFIPersonalitySymbol()
1398 MCSymbol *Sym = TM.getSymbol(GV); in getCFIPersonalitySymbol()
1496 const TargetMachine &TM) const { in getNameWithPrefix()
1499 SectionKind GOKind = TargetLoweringObjectFile::getKindForGlobal(GO, TM); in getNameWithPrefix()
1500 const MCSection *TheSection = SectionForGlobal(GO, GOKind, TM); in getNameWithPrefix()
1502 !canUsePrivateLabel(*TM.getMCAsmInfo(), *TheSection); in getNameWithPrefix()
1512 getCOFFSectionFlags(SectionKind K, const TargetMachine &TM) { in getCOFFSectionFlags() argument
1514 bool isThumb = TM.getTargetTriple().getArch() == Triple::thumb; in getCOFFSectionFlags()
1591 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
1593 unsigned Characteristics = getCOFFSectionFlags(Kind, TM); in getExplicitSectionGlobal()
1605 MCSymbol *Sym = TM.getSymbol(ComdatGV); in getExplicitSectionGlobal()
1630 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
1635 EmitUniquedSection = TM.getFunctionSections(); in SelectSectionForGlobal()
1637 EmitUniquedSection = TM.getDataSections(); in SelectSectionForGlobal()
1642 unsigned Characteristics = getCOFFSectionFlags(Kind, TM); in SelectSectionForGlobal()
1659 MCSymbol *Sym = TM.getSymbol(ComdatGV); in SelectSectionForGlobal()
1702 const TargetMachine &TM) const { in getNameWithPrefix()
1705 ((isa<Function>(GV) && TM.getFunctionSections()) || in getNameWithPrefix()
1706 (isa<GlobalVariable>(GV) && TM.getDataSections()))) in getNameWithPrefix()
1713 const Function &F, const TargetMachine &TM) const { in getSectionForJumpTable()
1717 bool EmitUniqueSection = TM.getFunctionSections() || C; in getSectionForJumpTable()
1725 MCSymbol *Sym = TM.getSymbol(&F); in getSectionForJumpTable()
1730 unsigned Characteristics = getCOFFSectionFlags(Kind, TM); in getSectionForJumpTable()
1826 const TargetMachine &TM) { in Initialize() argument
1827 TargetLoweringObjectFile::Initialize(Ctx, TM); in Initialize()
1828 this->TM = &TM; in Initialize()
1829 const Triple &T = TM.getTargetTriple(); in Initialize()
1905 const TargetMachine &TM) const { in lowerRelativeReference()
1906 const Triple &T = TM.getTargetTriple(); in lowerRelativeReference()
1929 return MCSymbolRefExpr::create(TM.getSymbol(LHS), in lowerRelativeReference()
2044 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
2048 return SelectSectionForGlobal(GO, Kind, TM); in getExplicitSectionGlobal()
2075 const TargetMachine &TM, bool EmitUniqueSection, unsigned *NextUniqueID) { in selectWasmSectionForGlobal() argument
2081 bool UniqueSectionNames = TM.getUniqueSectionNames(); in selectWasmSectionForGlobal()
2092 TM.getNameWithPrefix(Name, GO, Mang, true); in selectWasmSectionForGlobal()
2105 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
2114 EmitUniqueSection = TM.getFunctionSections(); in SelectSectionForGlobal()
2116 EmitUniqueSection = TM.getDataSections(); in SelectSectionForGlobal()
2119 return selectWasmSectionForGlobal(getContext(), GO, Kind, getMangler(), TM, in SelectSectionForGlobal()
2132 const TargetMachine &TM) const { in lowerRelativeReference()
2145 MCSymbolRefExpr::create(TM.getSymbol(LHS), MCSymbolRefExpr::VK_None, in lowerRelativeReference()
2147 MCSymbolRefExpr::create(TM.getSymbol(RHS), getContext()), getContext()); in lowerRelativeReference()
2213 const TargetMachine &TM) const { in getTargetSymbol()
2226 SectionForGlobal(GVar, SectionKind::getData(), TM)) in getTargetSymbol()
2230 return cast<MCSectionXCOFF>(getSectionForExternalReference(GO, TM)) in getTargetSymbol()
2233 SectionKind GOKind = getKindForGlobal(GO, TM); in getTargetSymbol()
2236 getSectionForFunctionDescriptor(cast<Function>(GO), TM)) in getTargetSymbol()
2238 if ((TM.getDataSections() && !GO->hasSection()) || GO->hasCommonLinkage() || in getTargetSymbol()
2240 return cast<MCSectionXCOFF>(SectionForGlobal(GO, GOKind, TM)) in getTargetSymbol()
2249 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
2279 const GlobalObject *GO, const TargetMachine &TM) const { in getSectionForExternalReference()
2284 getNameWithPrefix(Name, GO, TM); in getSectionForExternalReference()
2298 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
2303 getNameWithPrefix(Name, GO, TM); in SelectSectionForGlobal()
2315 getNameWithPrefix(Name, GO, TM); in SelectSectionForGlobal()
2332 if (TM.getDataSections()) in SelectSectionForGlobal()
2333 getNameWithPrefix(Name, GO, TM); in SelectSectionForGlobal()
2337 /* MultiSymbolsAllowed*/ !TM.getDataSections()); in SelectSectionForGlobal()
2341 if (TM.getFunctionSections()) { in SelectSectionForGlobal()
2342 return cast<MCSymbolXCOFF>(getFunctionEntryPointSymbol(GO, TM)) in SelectSectionForGlobal()
2356 if (TM.getDataSections()) { in SelectSectionForGlobal()
2358 getNameWithPrefix(Name, GO, TM); in SelectSectionForGlobal()
2367 if (TM.getDataSections()) { in SelectSectionForGlobal()
2369 getNameWithPrefix(Name, GO, TM); in SelectSectionForGlobal()
2382 if (TM.getDataSections()) { in SelectSectionForGlobal()
2384 getNameWithPrefix(Name, GO, TM); in SelectSectionForGlobal()
2395 const Function &F, const TargetMachine &TM) const { in getSectionForJumpTable()
2398 if (!TM.getFunctionSections()) in getSectionForJumpTable()
2404 getNameWithPrefix(NameStr, &F, TM); in getSectionForJumpTable()
2448 const TargetMachine &TM) const { in lowerRelativeReference()
2478 const GlobalValue *Func, const TargetMachine &TM) const { in getFunctionEntryPointSymbol()
2488 getNameWithPrefix(NameStr, Func, TM); in getFunctionEntryPointSymbol()
2494 if (((TM.getFunctionSections() && !Func->hasSection()) || in getFunctionEntryPointSymbol()
2510 const Function *F, const TargetMachine &TM) const { in getSectionForFunctionDescriptor()
2512 getNameWithPrefix(NameStr, F, TM); in getSectionForFunctionDescriptor()
2519 const MCSymbol *Sym, const TargetMachine &TM) const { in getSectionForTOCEntry()
2525 TM.getCodeModel() == CodeModel::Large ? XCOFF::XMC_TE : XCOFF::XMC_TC, in getSectionForTOCEntry()
2536 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
2537 return SelectSectionForGlobal(GO, Kind, TM); in getExplicitSectionGlobal()
2541 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
2542 auto *Symbol = TM.getSymbol(GO); in SelectSectionForGlobal()