llvm::InstrProfCorrelatorImpl::get

get overloads

Synopses

Declared in <llvm/ProfileData/InstrProfCorrelator.h>

Construct a correlator implementation for Obj using context Ctx.

static
llvm::Expected<std::unique_ptr<InstrProfCorrelatorImpl<IntPtrT>>>
get(
    std::unique_ptr<InstrProfCorrelator::Context> Ctx,
    object::ObjectFile const& Obj,
    ProfCorrelatorKind FileKind);
» more...

Construct a correlator for the object file at Filename.

static
llvm::Expected<std::unique_ptr<InstrProfCorrelator>>
get(
    StringRef Filename,
    ProfCorrelatorKind FileKind,
    object::BuildIDFetcher const* BIDFetcher = nullptr,
    ArrayRef<llvm::object::BuildID> const BIs = {});
» more...

Return Value

The correlator on success, or an error if construction fails.

Parameters

NameDescription
CtxObject-file context used during correlation.
ObjObject file that supplies correlation metadata.
FileKindKind of correlation data to read from Obj.
FilenamePath to the object file used for correlation.
BIDFetcherOptional build-ID fetcher used to resolve the binary.
BIsBuild IDs from the profile used with BIDFetcher.