LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
llvm::AutoInitRemark Struct Reference

Special case for -ftrivial-auto-var-init remarks. More...

#include "llvm/Transforms/Utils/MemoryOpRemark.h"

Inheritance diagram for llvm::AutoInitRemark:
Inheritance graph
[legend]

Public Member Functions

 AutoInitRemark (OptimizationRemarkEmitter &ORE, StringRef RemarkPass, const DataLayout &DL, const TargetLibraryInfo &TLI)
 
- Public Member Functions inherited from llvm::MemoryOpRemark
 MemoryOpRemark (OptimizationRemarkEmitter &ORE, StringRef RemarkPass, const DataLayout &DL, const TargetLibraryInfo &TLI)
 
virtual ~MemoryOpRemark ()
 
void visit (const Instruction *I)
 

Static Public Member Functions

static bool canHandle (const Instruction *I)
 
- Static Public Member Functions inherited from llvm::MemoryOpRemark
static bool canHandle (const Instruction *I, const TargetLibraryInfo &TLI)
 

Protected Member Functions

std::string explainSource (StringRef Type) const override
 
StringRef remarkName (RemarkKind RK) const override
 
DiagnosticKind diagnosticKind () const override
 
virtual std::string explainSource (StringRef Type) const
 
virtual StringRef remarkName (RemarkKind RK) const
 
virtual DiagnosticKind diagnosticKind () const
 

Additional Inherited Members

- Public Attributes inherited from llvm::MemoryOpRemark
OptimizationRemarkEmitterORE
 
StringRef RemarkPass
 
const DataLayoutDL
 
const TargetLibraryInfoTLI
 
- Protected Types inherited from llvm::MemoryOpRemark
enum  RemarkKind { RK_Store , RK_Unknown , RK_IntrinsicCall , RK_Call }
 

Detailed Description

Special case for -ftrivial-auto-var-init remarks.

Definition at line 97 of file MemoryOpRemark.h.

Constructor & Destructor Documentation

◆ AutoInitRemark()

llvm::AutoInitRemark::AutoInitRemark ( OptimizationRemarkEmitter ORE,
StringRef  RemarkPass,
const DataLayout DL,
const TargetLibraryInfo TLI 
)
inline

Definition at line 98 of file MemoryOpRemark.h.

Member Function Documentation

◆ canHandle()

bool AutoInitRemark::canHandle ( const Instruction I)
static
Returns
true iff the instruction is understood by AutoInitRemark.

Definition at line 388 of file MemoryOpRemark.cpp.

References llvm::any_of(), and I.

Referenced by tryEmitAutoInitRemark().

◆ diagnosticKind()

DiagnosticKind llvm::AutoInitRemark::diagnosticKind ( ) const
inlineoverrideprotectedvirtual

Reimplemented from llvm::MemoryOpRemark.

Definition at line 108 of file MemoryOpRemark.h.

References llvm::DK_OptimizationRemarkMissed.

◆ explainSource()

std::string AutoInitRemark::explainSource ( StringRef  Type) const
overrideprotectedvirtual

Reimplemented from llvm::MemoryOpRemark.

Definition at line 398 of file MemoryOpRemark.cpp.

◆ remarkName()

StringRef AutoInitRemark::remarkName ( RemarkKind  RK) const
overrideprotectedvirtual

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