Lines Matching refs:TM

97   TM = &TgtM;  in Initialize()
310 return TM->getSymbol(F); in emitModuleMetadata()
332 const GlobalValue *GV, const TargetMachine &TM, in getCFIPersonalitySymbol() argument
337 TM.getSymbol(GV)->getName()); in getCFIPersonalitySymbol()
339 return TM.getSymbol(GV); in getCFIPersonalitySymbol()
366 const GlobalValue *GV, unsigned Encoding, const TargetMachine &TM, in getTTypeGlobalReference() argument
371 MCSymbol *SSym = getSymbolWithGlobalValueBase(GV, ".DW.stub", TM); in getTTypeGlobalReference()
377 MCSymbol *Sym = TM.getSymbol(GV); in getTTypeGlobalReference()
386 return TargetLoweringObjectFile::getTTypeGlobalReference(GV, Encoding, TM, in getTTypeGlobalReference()
492 const TargetMachine &TM) { in getAssociatedSymbol() argument
506 return OtherGO ? dyn_cast<MCSymbolELF>(TM.getSymbol(OtherGO)) : nullptr; in getAssociatedSymbol()
534 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
569 const MCSymbolELF *AssociatedSymbol = getAssociatedSymbol(GO, TM); in getExplicitSectionGlobal()
606 const TargetMachine &TM, bool EmitUniqueSection, unsigned Flags, in selectELFSectionForGlobal() argument
643 if (TM.getUniqueSectionNames()) { in selectELFSectionForGlobal()
645 TM.getNameWithPrefix(Name, GO, Mang, true /*MayAlwaysUsePrivate*/); in selectELFSectionForGlobal()
659 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
667 EmitUniqueSection = TM.getFunctionSections(); in SelectSectionForGlobal()
669 EmitUniqueSection = TM.getDataSections(); in SelectSectionForGlobal()
673 const MCSymbolELF *AssociatedSymbol = getAssociatedSymbol(GO, TM); in SelectSectionForGlobal()
680 getContext(), GO, Kind, getMangler(), TM, EmitUniqueSection, Flags, in SelectSectionForGlobal()
687 const Function &F, const TargetMachine &TM) const { in getSectionForJumpTable()
691 bool EmitUniqueSection = TM.getFunctionSections() || C; in getSectionForJumpTable()
696 getMangler(), TM, EmitUniqueSection, in getSectionForJumpTable()
780 const TargetMachine &TM) const { in lowerRelativeReference()
793 MCSymbolRefExpr::create(TM.getSymbol(LHS), PLTRelativeVariantKind, in lowerRelativeReference()
795 MCSymbolRefExpr::create(TM.getSymbol(RHS), getContext()), getContext()); in lowerRelativeReference()
835 const TargetMachine &TM) { in Initialize() argument
836 TargetLoweringObjectFile::Initialize(Ctx, TM); in Initialize()
837 if (TM.getRelocationModel() == Reloc::Static) { in Initialize()
912 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
953 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
1040 const GlobalValue *GV, unsigned Encoding, const TargetMachine &TM, in getTTypeGlobalReference() argument
1048 MCSymbol *SSym = getSymbolWithGlobalValueBase(GV, "$non_lazy_ptr", TM); in getTTypeGlobalReference()
1054 MCSymbol *Sym = TM.getSymbol(GV); in getTTypeGlobalReference()
1063 return TargetLoweringObjectFile::getTTypeGlobalReference(GV, Encoding, TM, in getTTypeGlobalReference()
1068 const GlobalValue *GV, const TargetMachine &TM, in getCFIPersonalitySymbol() argument
1074 MCSymbol *SSym = getSymbolWithGlobalValueBase(GV, "$non_lazy_ptr", TM); in getCFIPersonalitySymbol()
1080 MCSymbol *Sym = TM.getSymbol(GV); in getCFIPersonalitySymbol()
1181 const TargetMachine &TM) const { in getNameWithPrefix()
1184 SectionKind GOKind = TargetLoweringObjectFile::getKindForGlobal(GO, TM); in getNameWithPrefix()
1185 const MCSection *TheSection = SectionForGlobal(GO, GOKind, TM); in getNameWithPrefix()
1187 !canUsePrivateLabel(*TM.getMCAsmInfo(), *TheSection); in getNameWithPrefix()
1197 getCOFFSectionFlags(SectionKind K, const TargetMachine &TM) { in getCOFFSectionFlags() argument
1199 bool isThumb = TM.getTargetTriple().getArch() == Triple::thumb; in getCOFFSectionFlags()
1276 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
1278 unsigned Characteristics = getCOFFSectionFlags(Kind, TM); in getExplicitSectionGlobal()
1290 MCSymbol *Sym = TM.getSymbol(ComdatGV); in getExplicitSectionGlobal()
1315 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
1320 EmitUniquedSection = TM.getFunctionSections(); in SelectSectionForGlobal()
1322 EmitUniquedSection = TM.getDataSections(); in SelectSectionForGlobal()
1327 unsigned Characteristics = getCOFFSectionFlags(Kind, TM); in SelectSectionForGlobal()
1344 MCSymbol *Sym = TM.getSymbol(ComdatGV); in SelectSectionForGlobal()
1383 const TargetMachine &TM) const { in getNameWithPrefix()
1386 ((isa<Function>(GV) && TM.getFunctionSections()) || in getNameWithPrefix()
1387 (isa<GlobalVariable>(GV) && TM.getDataSections()))) in getNameWithPrefix()
1394 const Function &F, const TargetMachine &TM) const { in getSectionForJumpTable()
1398 bool EmitUniqueSection = TM.getFunctionSections() || C; in getSectionForJumpTable()
1406 MCSymbol *Sym = TM.getSymbol(&F); in getSectionForJumpTable()
1411 unsigned Characteristics = getCOFFSectionFlags(Kind, TM); in getSectionForJumpTable()
1458 const TargetMachine &TM) { in Initialize() argument
1459 TargetLoweringObjectFile::Initialize(Ctx, TM); in Initialize()
1460 const Triple &T = TM.getTargetTriple(); in Initialize()
1545 const TargetMachine &TM) const { in lowerRelativeReference()
1546 const Triple &T = TM.getTargetTriple(); in lowerRelativeReference()
1571 return MCSymbolRefExpr::create(TM.getSymbol(LHS), in lowerRelativeReference()
1681 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
1685 return SelectSectionForGlobal(GO, Kind, TM); in getExplicitSectionGlobal()
1703 const TargetMachine &TM, bool EmitUniqueSection, unsigned *NextUniqueID) { in selectWasmSectionForGlobal() argument
1709 bool UniqueSectionNames = TM.getUniqueSectionNames(); in selectWasmSectionForGlobal()
1720 TM.getNameWithPrefix(Name, GO, Mang, true); in selectWasmSectionForGlobal()
1731 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
1740 EmitUniqueSection = TM.getFunctionSections(); in SelectSectionForGlobal()
1742 EmitUniqueSection = TM.getDataSections(); in SelectSectionForGlobal()
1745 return selectWasmSectionForGlobal(getContext(), GO, Kind, getMangler(), TM, in SelectSectionForGlobal()
1758 const TargetMachine &TM) const { in lowerRelativeReference()
1771 MCSymbolRefExpr::create(TM.getSymbol(LHS), MCSymbolRefExpr::VK_None, in lowerRelativeReference()
1773 MCSymbolRefExpr::create(TM.getSymbol(RHS), getContext()), getContext()); in lowerRelativeReference()