llvm::MemoryOpRemark

Emit optimization remarks for instructions that copy, move, or initialize memory.

Synopsis

Declared in <llvm/Transforms/Utils/MemoryOpRemark.h>

struct MemoryOpRemark;

Member Functions

NameDescription
MemoryOpRemark [constructor]Construct a remark helper bound to the given emitter and analyses.
~MemoryOpRemark [destructor] [virtual]Destroy the remark helper.
visit Emit a remark describing the memory operation performed by I.

Static Member Functions

NameDescription
canHandle Return true if I is a memory operation this helper can remark on.

Data Members

NameDescription
DL Data layout used to compute store and operand sizes.
ORE Emitter used to report memory-operation remarks.
RemarkPass Pass name attached to emitted remarks.
TLI Target library info used to recognize known memory libcalls.

Protected Enums

NameDescription
RemarkKind Classification of the memory operation being remarked on.

Protected Member Functions

NameDescription
diagnosticKind [virtual]Return the diagnostic category used when constructing remarks.
explainSource [virtual]Return a short explanation string for a memory operation of kind Type.
remarkName [virtual]Return the stable remark identifier for kind RK.

Derived Classes

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