LLVM API Documentation

Public Member Functions | Static Public Member Functions
llvm::DiagnosticInfoOptimizationRemark Class Reference

Diagnostic information for applied optimization remarks. More...

#include <DiagnosticInfo.h>

Inheritance diagram for llvm::DiagnosticInfoOptimizationRemark:
Inheritance graph
[legend]
Collaboration diagram for llvm::DiagnosticInfoOptimizationRemark:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DiagnosticInfoOptimizationRemark (const char *PassName, const Function &Fn, const DebugLoc &DLoc, const Twine &Msg)
bool isEnabled () const override

Static Public Member Functions

static bool classof (const DiagnosticInfo *DI)

Detailed Description

Diagnostic information for applied optimization remarks.

Definition at line 308 of file DiagnosticInfo.h.


Constructor & Destructor Documentation

PassName is the name of the pass emitting this diagnostic. If this name matches the regular expression given in -Rpass=, then the diagnostic will be emitted. Fn is the function where the diagnostic is being emitted. DLoc is the location information to use in the diagnostic. If line table information is available, the diagnostic will include the source code location. Msg is the message to show. Note that this class does not copy this message, so this reference must be valid for the whole life time of the diagnostic.

Definition at line 318 of file DiagnosticInfo.h.


Member Function Documentation

bool DiagnosticInfoOptimizationRemark::isEnabled ( ) const [override, virtual]

The documentation for this class was generated from the following files: