LLVM  14.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]
Collaboration diagram for llvm::AutoInitRemark:
Collaboration 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

virtual std::string explainSource (StringRef Type) const override
 
virtual StringRef remarkName (RemarkKind RK) const override
 
virtual 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 98 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 99 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 383 of file MemoryOpRemark.cpp.

References llvm::any_of(), and I.

Referenced by tryEmitAutoInitRemark().

◆ diagnosticKind()

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

Reimplemented from llvm::MemoryOpRemark.

Definition at line 109 of file MemoryOpRemark.h.

References llvm::DK_OptimizationRemarkMissed.

◆ explainSource()

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

Reimplemented from llvm::MemoryOpRemark.

Definition at line 392 of file MemoryOpRemark.cpp.

◆ remarkName()

StringRef AutoInitRemark::remarkName ( RemarkKind  RK) const
overrideprotectedvirtual

Reimplemented from llvm::MemoryOpRemark.

Definition at line 396 of file MemoryOpRemark.cpp.

References llvm_unreachable.


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