llvm::DiagnosticInfoOptimizationBase::isEnabled

Return true if this optimization remark is enabled.

Synopsis

Declared in <llvm/IR/DiagnosticInfo.h>

virtual
bool
isEnabled() const = 0;

Description

Enabled by one of the LLVM command line flags (-pass-remarks, -pass-remarks-missed, or -pass-remarks-analysis). Note that this only handles the LLVM flags. We cannot access Clang flags from here (they are handled in BackendConsumer::OptimizationRemarkHandler).

Return Value

True if this optimization remark is enabled.