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

References

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);
  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,
  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) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  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;
tools/lld/ELF/Driver.cpp
 1955                  [](InputSectionBase *s) { return isa<MergeInputSection>(s); });
tools/lld/ELF/ICF.cpp
  282     auto *x = dyn_cast<MergeInputSection>(da->section);
  282     auto *x = dyn_cast<MergeInputSection>(da->section);
  285     auto *y = cast<MergeInputSection>(db->section);
  285     auto *y = cast<MergeInputSection>(db->section);
tools/lld/ELF/InputFiles.cpp
  784 static InputSection *toRegularSection(MergeInputSection *sec) {
  846     if (auto *ms = dyn_cast<MergeInputSection>(target)) {
  846     if (auto *ms = dyn_cast<MergeInputSection>(target)) {
  971     return make<MergeInputSection>(*this, sec, name);
tools/lld/ELF/InputSection.cpp
  182     const MergeInputSection *ms = cast<MergeInputSection>(this);
  182     const MergeInputSection *ms = cast<MergeInputSection>(this);
  199   else if (auto *ms = dyn_cast<MergeInputSection>(this))
  199   else if (auto *ms = dyn_cast<MergeInputSection>(this))
tools/lld/ELF/MarkLive.cpp
  191   if (auto *ms = dyn_cast<MergeInputSection>(sec))
  191   if (auto *ms = dyn_cast<MergeInputSection>(sec))
tools/lld/ELF/OutputSections.cpp
  170       MergeInputSection *ms = dyn_cast<MergeInputSection>(s);
  170       MergeInputSection *ms = dyn_cast<MergeInputSection>(s);
tools/lld/ELF/SyntheticSections.cpp
   84 MergeInputSection *createCommentSection() {
   85   return make<MergeInputSection>(SHF_MERGE | SHF_STRINGS, SHT_PROGBITS, 1,
 3030 void MergeSyntheticSection::addSection(MergeInputSection *ms) {
 3049   for (MergeInputSection *sec : sections)
 3060   for (MergeInputSection *sec : sections)
 3093     for (MergeInputSection *sec : sections) {
 3138     if (auto *s = dyn_cast<MergeInputSection>(sec))
 3138     if (auto *s = dyn_cast<MergeInputSection>(sec))
tools/lld/ELF/SyntheticSections.h
  840   void addSection(MergeInputSection *ms);
  841   std::vector<MergeInputSection *> sections;
 1101 MergeInputSection *createCommentSection();
tools/lld/ELF/Writer.cpp
  667     if (auto *s = dyn_cast<MergeInputSection>(sec))
  667     if (auto *s = dyn_cast<MergeInputSection>(sec))
tools/lld/include/lld/Common/Memory.h
   47   llvm::SpecificBumpPtrAllocator<T> alloc;
   52 template <typename T, typename... U> T *make(U &&... args) {
   53   static SpecificAlloc<T> alloc;
   54   return new (alloc.alloc.Allocate()) T(std::forward<U>(args)...);