LLVM 20.0.0git
Macros | Functions
AnnotationRemarks.cpp File Reference
#include "llvm/Transforms/Scalar/AnnotationRemarks.h"
#include "llvm/ADT/MapVector.h"
#include "llvm/Analysis/OptimizationRemarkEmitter.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/Transforms/Utils/MemoryOpRemark.h"

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.

Function Documentation

◆ runImpl()

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

◆ tryEmitAutoInitRemark()

static 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().