reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
103 return Constant<std::alignment_of<T>::value>();
include/llvm/Support/Allocator.h81 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); }tools/lld/COFF/DLL.cpp
587 lookups.push_back(make<NullChunk>(config->wordsize)); 588 addresses.push_back(make<NullChunk>(config->wordsize)); 601 dirs.push_back(make<NullChunk>(sizeof(ImportDirectoryTableEntry))); 652 addresses.push_back(make<NullChunk>(8)); 653 names.push_back(make<NullChunk>(8)); 657 auto *mh = make<NullChunk>(8); 657 auto *mh = make<NullChunk>(8); 668 dirs.push_back(make<NullChunk>(sizeof(delay_import_directory_table_entry)));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)...);