reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/MC/MCContext.h
   51   class MCSectionELF;

References

include/llvm/MC/MCContext.h
   94     SpecificBumpPtrAllocator<MCSectionELF> ELFAllocator;
  271     std::map<ELFSectionKey, MCSectionELF *> ELFUniquingMap;
  294     MCSectionELF *createELFSectionImpl(StringRef Section, unsigned Type,
  424     MCSectionELF *getELFSection(const Twine &Section, unsigned Type,
  429     MCSectionELF *getELFSection(const Twine &Section, unsigned Type,
  435     MCSectionELF *getELFSection(const Twine &Section, unsigned Type,
  442     MCSectionELF *getELFSection(const Twine &Section, unsigned Type,
  447     MCSectionELF *getELFSection(const Twine &Section, unsigned Type,
  456     MCSectionELF *getELFNamedSection(const Twine &Prefix, const Twine &Suffix,
  460     MCSectionELF *createELFRelSection(const Twine &Name, unsigned Type,
  463                                       const MCSectionELF *RelInfoSection);
  465     void renameELFSection(MCSectionELF *Section, StringRef Name);
  467     MCSectionELF *createELFGroupSection(const MCSymbolELF *Group);
include/llvm/MC/MCELFObjectWriter.h
   96   virtual void addTargetSectionFlags(MCContext &Ctx, MCSectionELF &Sec);
include/llvm/Support/Alignment.h
  103     return Constant<std::alignment_of<T>::value>();
include/llvm/Support/Allocator.h
   81   template <typename T> T *Allocate(size_t Num = 1) {
   82     return static_cast<T *>(Allocate(Num * sizeof(T), alignof(T)));
   82     return static_cast<T *>(Allocate(Num * sizeof(T), alignof(T)));
  470       for (char *Ptr = Begin; Ptr + sizeof(T) <= End; Ptr += sizeof(T))
  470       for (char *Ptr = Begin; Ptr + sizeof(T) <= End; Ptr += sizeof(T))
  478       char *Begin = (char *)alignAddr(*I, Align::Of<T>());
  488       DestroyElements((char *)alignAddr(Ptr, Align::Of<T>()),
  496   T *Allocate(size_t num = 1) { return Allocator.Allocate<T>(num); }
  496   T *Allocate(size_t num = 1) { return Allocator.Allocate<T>(num); }
include/llvm/Support/Casting.h
   58     return To::classof(&Val);
   77     return isa_impl<To, From>::doit(Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  165   using ret_type = To &;       // Normal case, return Ty&
  168   using ret_type = const To &; // Normal case, return Ty&
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  258   return cast_convert_val<X, Y,
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  305 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
  309   return cast<X>(Val);
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
include/llvm/Support/PointerLikeTypeTraits.h
   56   static inline void *getAsVoidPointer(T *P) { return P; }
   57   static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
   59   enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
   91   typedef PointerLikeTypeTraits<T *> NonConst;
   93   static inline const void *getAsVoidPointer(const T *P) {
   96   static inline const T *getFromVoidPointer(const void *P) {
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
  271     auto *S = C.getELFSection(".linker-options", ELF::SHT_LLVM_LINKER_OPTIONS,
  287     auto *S = C.getELFSection(".deplibs", ELF::SHT_LLVM_DEPENDENT_LIBRARIES,
  305     auto *S = C.getELFSection(Section, ELF::SHT_PROGBITS, ELF::SHF_ALLOC);
  601   MCSectionELF *Section = getContext().getELFSection(
  630 static MCSectionELF *selectELFSectionForGlobal(
  705   MCSectionELF *Section = selectELFSectionForGlobal(
  754 static MCSectionELF *getStaticStructorSection(MCContext &Ctx, bool UseInitArray,
lib/MC/ELFObjectWriter.cpp
   70 using SectionIndexMapTy = DenseMap<const MCSectionELF *, uint32_t>;
   75 bool isDwoSection(const MCSectionELF &Sec) {
  152   std::vector<const MCSectionELF *> SectionTable;
  153   unsigned addToSectionTable(const MCSectionELF *Sec);
  189       std::map<const MCSectionELF *, std::pair<uint64_t, uint64_t>>;
  206   MCSectionELF *createRelocationSection(MCContext &Ctx,
  207                                         const MCSectionELF &Sec);
  209   const MCSectionELF *createStringTable(MCContext &Ctx);
  223   void writeRelocations(const MCAssembler &Asm, const MCSectionELF &Sec);
  228                     const MCSectionELF &Section);
  235   DenseMap<const MCSectionELF *, std::vector<ELFRelocationEntry>> Relocations;
  265                                const MCSectionELF *From,
  266                                const MCSectionELF *To) {
  315                                const MCSectionELF *From,
  316                                const MCSectionELF *To) override {
  344 unsigned ELFWriter::addToSectionTable(const MCSectionELF *Sec) {
  639   MCSectionELF *SymtabSection =
  694       const MCSectionELF &Section =
  736     MCSectionELF *SymtabShndxSection =
  792   const MCSectionELF *SymtabShndxSection =
  805 MCSectionELF *ELFWriter::createRelocationSection(MCContext &Ctx,
  806                                                  const MCSectionELF &Sec) {
  824   MCSectionELF *RelaSection = Ctx.createELFRelSection(
  868   MCSectionELF &Section = static_cast<MCSectionELF &>(Sec);
  939                                        const MCSectionELF &Sec) {
 1003 const MCSectionELF *ELFWriter::createStringTable(MCContext &Ctx) {
 1004   const MCSectionELF *StrtabSection = SectionTable[StringTableIndex - 1];
 1011                              uint64_t Size, const MCSectionELF &Section) {
 1028     sh_info = SectionIndexMap.lookup(cast<MCSectionELF>(InfoSection));
 1051     const MCSectionELF *Sec = cast<MCSectionELF>(&Sym->getSection());
 1051     const MCSectionELF *Sec = cast<MCSectionELF>(&Sym->getSection());
 1071   for (const MCSectionELF *Section : SectionTable) {
 1096   MCSectionELF *StrtabSection =
 1103   std::map<const MCSymbol *, std::vector<const MCSectionELF *>> GroupMembers;
 1110   std::vector<MCSectionELF *> Groups;
 1111   std::vector<MCSectionELF *> Relocations;
 1113     MCSectionELF &Section = static_cast<MCSectionELF &>(Sec);
 1130     MCSectionELF *RelSection = createRelocationSection(Ctx, Section);
 1136         MCSectionELF *Group = Ctx.createELFGroupSection(SignatureSymbol);
 1141       std::vector<const MCSectionELF *> &Members =
 1157   MCSectionELF *CGProfileSection = nullptr;
 1165   for (MCSectionELF *Group : Groups) {
 1174     for (const MCSectionELF *Member : GroupMembers[SignatureSymbol]) {
 1188     MCSectionELF *AddrsigSection;
 1199     for (MCSectionELF *RelSection : Relocations) {
 1206                        cast<MCSectionELF>(*RelSection->getAssociatedSection()));
 1233     const MCSectionELF *Sec = createStringTable(Ctx);
 1410     auto &Sec = cast<MCSectionELF>(Sym->getSection());
 1410     auto &Sec = cast<MCSectionELF>(Sym->getSection());
 1450   const MCSectionELF &FixupSection = cast<MCSectionELF>(*Fragment->getParent());
 1450   const MCSectionELF &FixupSection = cast<MCSectionELF>(*Fragment->getParent());
 1492   const MCSectionELF *SecA = (SymA && SymA->isInSection())
 1493                                  ? cast<MCSectionELF>(&SymA->getSection())
lib/MC/MCAssembler.cpp
  687             if (auto *ELFSec = dyn_cast<const MCSectionELF>(Sec))
lib/MC/MCContext.cpp
  313 void MCContext::renameELFSection(MCSectionELF *Section, StringRef Name) {
  329 MCSectionELF *MCContext::createELFSectionImpl(StringRef Section, unsigned Type,
  353   auto *Ret = new (ELFAllocator.Allocate()) MCSectionELF(
  353   auto *Ret = new (ELFAllocator.Allocate()) MCSectionELF(
  364 MCSectionELF *MCContext::createELFRelSection(const Twine &Name, unsigned Type,
  367                                              const MCSectionELF *RelInfoSection) {
  378 MCSectionELF *MCContext::getELFNamedSection(const Twine &Prefix,
  385 MCSectionELF *MCContext::getELFSection(const Twine &Section, unsigned Type,
  397 MCSectionELF *MCContext::getELFSection(const Twine &Section, unsigned Type,
  422   MCSectionELF *Result = createELFSectionImpl(
  428 MCSectionELF *MCContext::createELFGroupSection(const MCSymbolELF *Group) {
lib/MC/MCELFObjectTargetWriter.cpp
   31                                                     MCSectionELF &Sec) {}
lib/MC/MCELFStreamer.cpp
  103   const MCSectionELF &Section =
  113   const MCSectionELF &Section =
lib/MC/MCObjectFileInfo.cpp
  861   const MCSectionELF &ElfSec = static_cast<const MCSectionELF &>(TextSec);
lib/MC/MCParser/ELFAsmParser.cpp
  628     if (const MCSectionELF *Section =
  629             cast_or_null<MCSectionELF>(CurrentSection.first))
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
  435     MCSectionELF *ConfigSection =
  475     MCSectionELF *CommentSection =
lib/Target/AMDGPU/R600AsmPrinter.cpp
  112   MCSectionELF *ConfigSection =
  121     MCSectionELF *CommentSection =
lib/Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp
   44     void addTargetSectionFlags(MCContext &Ctx, MCSectionELF &Sec) override;
  250                                                MCSectionELF &Sec) {
  256   MCSectionELF *TextSection =
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
 1198   const MCSectionELF &FnSection =
 1212   MCSectionELF *EHSection = getContext().getELFSection(
lib/Target/BPF/BTFDebug.cpp
  914     const MCSectionELF *SectionELF = dyn_cast<MCSectionELF>(&Section);
  914     const MCSectionELF *SectionELF = dyn_cast<MCSectionELF>(&Section);
lib/Target/BPF/MCTargetDesc/BPFELFObjectWriter.cpp
   58         const MCSectionELF *SectionELF = dyn_cast<MCSectionELF>(&Section);
   58         const MCSectionELF *SectionELF = dyn_cast<MCSectionELF>(&Section);
lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
 1454       MCSectionELF *mySection;
lib/Target/Hexagon/HexagonAsmPrinter.cpp
  203     MCSectionELF *Section = OutStreamer.getContext().getELFSection(
  231     MCSectionELF *Section = OutStreamer.getContext().getELFSection(
lib/Target/Hexagon/HexagonTargetObjectFile.h
   41     MCSectionELF *SmallDataSection;
   42     MCSectionELF *SmallBSSSection;
lib/Target/Mips/MCTargetDesc/MipsOptionRecord.cpp
   36     MCSectionELF *Sec =
   55     MCSectionELF *Sec = Context.getELFSection(".reginfo", ELF::SHT_MIPS_REGINFO,
lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
  915       MCSectionELF &Section = static_cast<MCSectionELF &>(S);
 1022   MCSectionELF *Sec = Context.getELFSection(".pdr", ELF::SHT_PROGBITS, 0);
 1316   MCSectionELF *Sec = Context.getELFSection(
lib/Target/Mips/MipsAsmPrinter.cpp
 1044   MCSectionELF *M = OutContext.getELFSection(
lib/Target/PowerPC/PPCAsmPrinter.cpp
 1411   MCSectionELF *Section = OutStreamer->getContext().getELFSection(
 1440     MCSectionELF *Section;