LLVM 22.0.0git
|
An output backend that only generates the hash for outputs. More...
#include "llvm/Support/HashingOutputBackend.h"
Public Member Functions | |
auto | outputFiles () const |
Iterator for all the output file names. | |
std::optional< std::string > | getHashValueForFile (StringRef Path) |
Get hash value for the output files in hex representation. | |
Public Member Functions inherited from llvm::vfs::OutputBackend | |
IntrusiveRefCntPtr< OutputBackend > | clone () const |
Get a backend that points to the same destination as this one but that has independent settings. | |
Expected< OutputFile > | createFile (const Twine &Path, std::optional< OutputConfig > Config=std::nullopt) |
Create a file. | |
virtual | ~OutputBackend ()=default |
Public Member Functions inherited from llvm::RefCountedBase< OutputBackend > | |
unsigned | UseCount () const |
void | Retain () const |
void | Release () const |
Protected Member Functions | |
IntrusiveRefCntPtr< OutputBackend > | cloneImpl () const override |
Must be thread-safe. | |
Expected< std::unique_ptr< OutputFileImpl > > | createFileImpl (StringRef Path, std::optional< OutputConfig > Config) override |
Create a file for Path . | |
Protected Member Functions inherited from llvm::vfs::OutputBackend | |
OutputBackend ()=default | |
Protected Member Functions inherited from llvm::RefCountedBase< OutputBackend > | |
RefCountedBase ()=default | |
RefCountedBase & | operator= (const RefCountedBase &)=delete |
~RefCountedBase () |
Friends | |
class | HashingOutputFile< HasherT > |
An output backend that only generates the hash for outputs.
Definition at line 62 of file HashingOutputBackend.h.
|
inlineoverrideprotectedvirtual |
Must be thread-safe.
Virtual function has a different name than clone() so that implementations can override the return value.
Implements llvm::vfs::OutputBackend.
Definition at line 71 of file HashingOutputBackend.h.
|
inlineoverrideprotectedvirtual |
Create a file for Path
.
Must be thread-safe.
Config
is valid or std::nullopt. Implements llvm::vfs::OutputBackend.
Definition at line 76 of file HashingOutputBackend.h.
|
inline |
Get hash value for the output files in hex representation.
Return None if the requested path is not generated.
Not thread safe. Should be queried after all outputs are written.
Definition at line 90 of file HashingOutputBackend.h.
References F, and llvm::toHex().
|
inline |
Iterator for all the output file names.
Not thread safe. Should be queried after all outputs are written.
Definition at line 84 of file HashingOutputBackend.h.
|
friend |
Definition at line 53 of file HashingOutputBackend.h.