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

Name

Description

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

Name

Description

setupLLVMOptimizationRemarks

Set up optimization remarks that output to a file.

lto::finalizeOptimizationRemarks

Finalizes and flushes an optimization remarks output file.

lto::setupLLVMOptimizationRemarks

Setup optimization remarks.

Created with MrDocs