llvm::LLVMRemarkFileHandle

RAII handle that manages the lifetime of the ToolOutputFile used to output remarks.

Synopsis

Declared in <llvm/IR/LLVMRemarkStreamer.h>

class LLVMRemarkFileHandle final

Description

On destruction (or when calling releaseFile()), this handle ensures that the optimization remarks are finalized and the RemarkStreamer is correctly deregistered from the LLVMContext.

Member Functions

NameDescription
LLVMRemarkFileHandle [constructor]Constructors
finalize Finalize remark emission for the associated LLVM context.
get Return a pointer to the owned ToolOutputFile, or null.
operator* Return a reference to the owned ToolOutputFile.
operator-> Return a pointer to the owned ToolOutputFile.
releaseFile Finalize remark emission and release the underlying ToolOutputFile.
operator bool Return true if this handle owns a ToolOutputFile.

Non-Member Functions

NameDescription
setupLLVMOptimizationRemarksSet up optimization remarks that output to a file.
lto::finalizeOptimizationRemarksFinalizes and flushes an optimization remarks output file.
lto::setupLLVMOptimizationRemarksSetup optimization remarks.