class DiagnosticInfoOptimizationFailure
Declaration
class DiagnosticInfoOptimizationFailure
: public DiagnosticInfoIROptimization { /* full declaration omitted */ };
Description
Diagnostic information for optimization failures.
Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:948
Inherits from: DiagnosticInfoIROptimization
Member Variables
Inherited from DiagnosticInfoOptimizationBase:
- protected PassName
- protected RemarkName
- protected Hotness
- protected Args
- protected IsVerbose = false
- protected FirstExtraArgIndex = -1
Method Overview
- public DiagnosticInfoOptimizationFailure(const llvm::Function & Fn, const llvm::DiagnosticLocation & Loc, const llvm::Twine & Msg)
- public DiagnosticInfoOptimizationFailure(const char * PassName, llvm::StringRef RemarkName, const llvm::DiagnosticLocation & Loc, const llvm::Value * CodeRegion)
- public static bool classof(const llvm::DiagnosticInfo * DI)
- public bool isEnabled() const
Inherited from DiagnosticInfoIROptimization:
Inherited from DiagnosticInfoOptimizationBase:
- public classof
- public getArgs
- public getHotness
- public getMsg
- public getPassName
- public getRemarkName
- public insert
- public insert
- public insert
- public insert
- public isAnalysis
- public isEnabled
- public isMissed
- public isPassed
- public isVerbose
- public print
- public setHotness
Inherited from DiagnosticInfoWithLocationBase:
- public getAbsolutePath
- public getFunction
- public getLocation
- public getLocation
- public getLocationStr
- public isLocationAvailable
Inherited from DiagnosticInfo:
Methods
¶DiagnosticInfoOptimizationFailure(
const llvm::Function& Fn,
const llvm::DiagnosticLocation& Loc,
const llvm::Twine& Msg)
DiagnosticInfoOptimizationFailure(
const llvm::Function& Fn,
const llvm::DiagnosticLocation& Loc,
const llvm::Twine& Msg)
Description
\p Fn is the function where the diagnostic is being emitted. \p Loc is the location information to use in the diagnostic. If line table information is available, the diagnostic will include the source code location. \p 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.
Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:956
Parameters
- const llvm::Function& Fn
- const llvm::DiagnosticLocation& Loc
- const llvm::Twine& Msg
¶DiagnosticInfoOptimizationFailure(
const char* PassName,
llvm::StringRef RemarkName,
const llvm::DiagnosticLocation& Loc,
const llvm::Value* CodeRegion)
DiagnosticInfoOptimizationFailure(
const char* PassName,
llvm::StringRef RemarkName,
const llvm::DiagnosticLocation& Loc,
const llvm::Value* CodeRegion)
Description
\p PassName is the name of the pass emitting this diagnostic. \p RemarkName is a textual identifier for the remark (single-word, camel-case). \p Loc is the debug location and \p CodeRegion is the region that the optimization operates on (currently basic block is supported).
Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:967
Parameters
- const char* PassName
- llvm::StringRef RemarkName
- const llvm::DiagnosticLocation& Loc
- const llvm::Value* CodeRegion
¶static bool classof(
const llvm::DiagnosticInfo* DI)
static bool classof(
const llvm::DiagnosticInfo* DI)
Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:971
Parameters
- const llvm::DiagnosticInfo* DI
¶bool isEnabled() const
bool isEnabled() const
Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:976