LLVM: lib/Transforms/Scalar/AnnotationRemarks.cpp File Reference (original) (raw)

#include "[llvm/Transforms/Scalar/AnnotationRemarks.h](AnnotationRemarks%5F8h%5Fsource.html)"
#include "[llvm/ADT/MapVector.h](MapVector%5F8h%5Fsource.html)"
#include "[llvm/Analysis/OptimizationRemarkEmitter.h](OptimizationRemarkEmitter%5F8h%5Fsource.html)"
#include "[llvm/Analysis/TargetLibraryInfo.h](TargetLibraryInfo%5F8h%5Fsource.html)"
#include "[llvm/IR/Function.h](IR%5F2Function%5F8h%5Fsource.html)"
#include "[llvm/IR/InstIterator.h](InstIterator%5F8h%5Fsource.html)"
#include "[llvm/Transforms/Utils/MemoryOpRemark.h](MemoryOpRemark%5F8h%5Fsource.html)"

Go to the source code of this file.

Macros
#define DEBUG_TYPE "annotation-remarks"
#define REMARK_PASS DEBUG_TYPE
Functions
static void tryEmitAutoInitRemark (ArrayRef< Instruction * > Instructions, OptimizationRemarkEmitter &ORE, const TargetLibraryInfo &TLI)
static void runImpl (Function &F, const TargetLibraryInfo &TLI)

Macro Definition Documentation

DEBUG_TYPE

#define DEBUG_TYPE "annotation-remarks"

Definition at line 24 of file AnnotationRemarks.cpp.

REMARK_PASS

#define REMARK_PASS DEBUG_TYPE

Definition at line 25 of file AnnotationRemarks.cpp.

Referenced by runImpl(), and tryEmitAutoInitRemark().

Function Documentation

runImpl()

void runImpl ( Function & F, const TargetLibraryInfo & TLI ) static

Definition at line 42 of file AnnotationRemarks.cpp.

References llvm::OptimizationRemarkEmitter::allowExtraAnalysis(), llvm::cast(), llvm::OptimizationRemarkEmitter::emit(), F, I, instructions, llvm::isa(), REMARK_PASS, and tryEmitAutoInitRemark().

tryEmitAutoInitRemark()

void tryEmitAutoInitRemark ( ArrayRef< Instruction * > Instructions, OptimizationRemarkEmitter & ORE, const TargetLibraryInfo & TLI ) static

Definition at line 27 of file AnnotationRemarks.cpp.

References llvm::AutoInitRemark::canHandle(), DL, F, I, llvm::Remark, and REMARK_PASS.

Referenced by runImpl().