LLVM 20.0.0git
|
#include "llvm/Transforms/Utils/MemoryOpRemark.h"
Public Member Functions | |
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, const TargetLibraryInfo &TLI) |
Public Attributes | |
OptimizationRemarkEmitter & | ORE |
StringRef | RemarkPass |
const DataLayout & | DL |
const TargetLibraryInfo & | TLI |
Protected Types | |
enum | RemarkKind { RK_Store , RK_Unknown , RK_IntrinsicCall , RK_Call } |
Protected Member Functions | |
virtual std::string | explainSource (StringRef Type) const |
virtual StringRef | remarkName (RemarkKind RK) const |
virtual DiagnosticKind | diagnosticKind () const |
Definition at line 35 of file MemoryOpRemark.h.
|
protected |
Enumerator | |
---|---|
RK_Store | |
RK_Unknown | |
RK_IntrinsicCall | |
RK_Call |
Definition at line 55 of file MemoryOpRemark.h.
|
inline |
Definition at line 41 of file MemoryOpRemark.h.
|
virtualdefault |
|
static |
Definition at line 27 of file MemoryOpRemark.cpp.
References llvm::TargetLibraryInfo::getLibFunc(), llvm::TargetLibraryInfo::has(), I, II, and TLI.
|
inlineprotectedvirtual |
Reimplemented in llvm::AutoInitRemark.
Definition at line 58 of file MemoryOpRemark.h.
References llvm::DK_OptimizationRemarkAnalysis.
|
protectedvirtual |
Reimplemented in llvm::AutoInitRemark.
Definition at line 110 of file MemoryOpRemark.cpp.
|
protectedvirtual |
Reimplemented in llvm::AutoInitRemark.
Definition at line 114 of file MemoryOpRemark.cpp.
References llvm_unreachable, RK_Call, RK_IntrinsicCall, RK_Store, and RK_Unknown.
void MemoryOpRemark::visit | ( | const Instruction * | I | ) |
Definition at line 79 of file MemoryOpRemark.cpp.
const DataLayout& llvm::MemoryOpRemark::DL |
Definition at line 38 of file MemoryOpRemark.h.
OptimizationRemarkEmitter& llvm::MemoryOpRemark::ORE |
Definition at line 36 of file MemoryOpRemark.h.
StringRef llvm::MemoryOpRemark::RemarkPass |
Definition at line 37 of file MemoryOpRemark.h.
const TargetLibraryInfo& llvm::MemoryOpRemark::TLI |
Definition at line 39 of file MemoryOpRemark.h.
Referenced by canHandle().