ΒΆllvm::Error setupOptimizationRemarks(
    llvm::LLVMContext& Context,
    llvm::raw_ostream& OS,
    llvm::StringRef RemarksPasses,
    llvm::StringRef RemarksFormat,
    bool RemarksWithHotness,
    unsigned int RemarksHotnessThreshold = 0)

Description

Setup optimization remarks that output directly to a raw_ostream.\p OS is managed by the caller and should be open for writing as long as \p Context is streaming remarks to it.

Declared at: llvm/include/llvm/IR/RemarkStreamer.h:101

Parameters

llvm::LLVMContext& Context
llvm::raw_ostream& OS
llvm::StringRef RemarksPasses
llvm::StringRef RemarksFormat
bool RemarksWithHotness
unsigned int RemarksHotnessThreshold = 0