8#ifndef LLVM_XRAY_FDRRECORDPRODUCER_H
9#define LLVM_XRAY_FDRRECORDPRODUCER_H
40 : Header(FH), E(DE), OffsetPtr(
OP) {}
Tagged union holding either a T or a Error.
FileBasedRecordProducer(const XRayFileHeader &FH, DataExtractor &DE, uint64_t &OP)
Expected< std::unique_ptr< Record > > produce() override
This producer encapsulates the logic for loading a File-backed RecordProducer hidden behind a DataExt...
virtual Expected< std::unique_ptr< Record > > produce()=0
All producer implementations must yield either an Error or a non-nullptr unique_ptr<Record>.
virtual ~RecordProducer()=default
This is an optimization pass for GlobalISel generic memory operations.