reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
39 class BitcodeFile;
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); }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/COFF/Driver.cpp
86 BitcodeFile::instances.clear(); 200 symtab->addFile(make<BitcodeFile>(mbref, "", 0)); 267 obj = make<BitcodeFile>(mb, parentName, offsetInArchive); 1818 if (!BitcodeFile::instances.empty()) 1857 if (!BitcodeFile::instances.empty() && !config->forceUnresolved)tools/lld/COFF/InputFiles.cpp
72 std::vector<BitcodeFile *> BitcodeFile::instances; 147 file = make<BitcodeFile>(mb, "", 0, std::move(symbols));tools/lld/COFF/InputFiles.h
347 static std::vector<BitcodeFile *> instances;
tools/lld/COFF/LTO.cpp 116 void BitcodeCompiler::add(BitcodeFile &f) {
tools/lld/COFF/LTO.h 47 void add(BitcodeFile &f);
tools/lld/COFF/SymbolTable.cpp49 } else if (auto *f = dyn_cast<BitcodeFile>(file)) { 49 } else if (auto *f = dyn_cast<BitcodeFile>(file)) { 50 BitcodeFile::instances.push_back(f); 102 static std::vector<std::string> getSymbolLocations(BitcodeFile *file) { 184 if (auto *b = dyn_cast<BitcodeFile>(file)) 184 if (auto *b = dyn_cast<BitcodeFile>(file)) 314 const std::vector<BitcodeFile *> *bitcodeFiles) { 360 for (BitcodeFile *file : *bitcodeFiles) 391 &BitcodeFile::instances); 471 if (!file || !isa<BitcodeFile>(file)) 521 static std::string getSourceLocationBitcode(BitcodeFile *file) { 551 if (auto *b = dyn_cast<BitcodeFile>(file)) 551 if (auto *b = dyn_cast<BitcodeFile>(file)) 787 for (BitcodeFile *f : BitcodeFile::instances) 787 for (BitcodeFile *f : BitcodeFile::instances) 793 if (BitcodeFile::instances.empty())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)...);