llvm::DiagnosticInfoOptimizationBase::isEnabled

Return true if this optimization remark is enabled by one of 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).

Synopsis

Declared in <llvm/IR/DiagnosticInfo.h>

virtual
bool
isEnabled() const = 0;