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/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)...);tools/lld/wasm/SymbolTable.cpp
109 Symbol *sym = reinterpret_cast<Symbol *>(make<SymbolUnion>()); 585 variant = reinterpret_cast<Symbol *>(make<SymbolUnion>());tools/lld/wasm/Symbols.h
512 static_assert(sizeof(SymbolUnion) <= 96, "SymbolUnion too large"); 521 static_assert(sizeof(T) <= sizeof(SymbolUnion), "SymbolUnion too small"); 522 static_assert(alignof(T) <= alignof(SymbolUnion),