LLVM 23.0.0git
ArchiveLinker.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
namespace  llvm::offloading

Functions

static std::optional< std::string > llvm::offloading::findFile (StringRef Dir, StringRef Root, const Twine &Name)
static std::optional< std::string > llvm::offloading::findFromSearchPaths (StringRef Name, StringRef Root, ArrayRef< StringRef > SearchPaths)
static std::optional< std::string > llvm::offloading::searchLibrary (StringRef Input, StringRef Root, ArrayRef< StringRef > SearchPaths)
 Search for static libraries in the linker's library path given input like -lfoo or -l:libfoo.a.
static Expected< boolllvm::offloading::getSymbolsFromBitcode (MemoryBufferRef Buffer, StringMap< Symbol > &SymTab, bool IsLazy)
static Expected< boolllvm::offloading::getSymbolsFromObject (ObjectFile &ObjFile, StringMap< Symbol > &SymTab, bool IsLazy)
static bool llvm::offloading::isFatBinary (MemoryBufferRef Buffer, ArrayRef< Triple::ArchType > DeviceArchs)
 Identify "fat binary" inputs that should be passed through to the linker without symbol-driven extraction.
static Expected< boolllvm::offloading::getSymbols (MemoryBufferRef Buffer, StringMap< Symbol > &SymTab, bool IsLazy)
Expected< ResolvedInputsllvm::offloading::resolveArchiveMembers (ArrayRef< InputDesc > Order, ArrayRef< StringRef > SearchPaths, ArrayRef< StringRef > ForcedUndefs={}, StringRef Root="", ArrayRef< Triple::ArchType > DeviceArchs={})
 Resolve archive members from the given inputs using a symbol-driven fixed-point algorithm.