LLVM 19.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

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

Definition at line 98 of file MemoryOpRemark.h.

Member Function Documentation

◆ canHandle()

bool AutoInitRemark::canHandle ( const Instruction I)
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

Reimplemented from llvm::MemoryOpRemark.

Definition at line 108 of file MemoryOpRemark.h.

References llvm::DK_OptimizationRemarkMissed.

◆ explainSource()

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

Reimplemented from llvm::MemoryOpRemark.

Definition at line 398 of file MemoryOpRemark.cpp.

◆ remarkName()

StringRef AutoInitRemark::remarkName ( RemarkKind  RK) const

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