LLVM 22.0.0git
llvm::AutoInitRemark Struct Reference

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

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

Inheritance diagram for llvm::AutoInitRemark:
[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

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()

Member Function Documentation

◆ canHandle()

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

Definition at line 387 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 397 of file MemoryOpRemark.cpp.

◆ remarkName()

StringRef AutoInitRemark::remarkName ( RemarkKind RK) const
overrideprotectedvirtual

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