LLVM 22.0.0git
KernelInfo.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "kernel-info"
#define REMARK_PROPERTY(PROP_NAME)

Functions

static void identifyCallee (OptimizationRemark &R, const Module *M, const Value *V, StringRef Kind="")
static void identifyFunction (OptimizationRemark &R, const Function &F)
static void remarkAlloca (OptimizationRemarkEmitter &ORE, const Function &Caller, const AllocaInst &Alloca, TypeSize::ScalarTy StaticSize)
static void remarkCall (OptimizationRemarkEmitter &ORE, const Function &Caller, const CallBase &Call, StringRef CallKind, StringRef RemarkKind)
static void remarkFlatAddrspaceAccess (OptimizationRemarkEmitter &ORE, const Function &Caller, const Instruction &Inst)
static void remarkProperty (OptimizationRemarkEmitter &ORE, const Function &F, StringRef Name, int64_t Value)
static std::optional< int64_t > parseFnAttrAsInteger (Function &F, StringRef Name)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "kernel-info"

Definition at line 28 of file KernelInfo.cpp.

◆ REMARK_PROPERTY

#define REMARK_PROPERTY ( PROP_NAME)
Value:
remarkProperty(ORE, F, #PROP_NAME, KI.PROP_NAME)
static void remarkProperty(OptimizationRemarkEmitter &ORE, const Function &F, StringRef Name, int64_t Value)
#define F(x, y, z)
Definition MD5.cpp:55

Function Documentation

◆ identifyCallee()

void identifyCallee ( OptimizationRemark & R,
const Module * M,
const Value * V,
StringRef Kind = "" )
static

Definition at line 80 of file KernelInfo.cpp.

References llvm::dyn_cast(), and F.

Referenced by identifyFunction(), and remarkCall().

◆ identifyFunction()

void identifyFunction ( OptimizationRemark & R,
const Function & F )
static

Definition at line 99 of file KernelInfo.cpp.

References F, and identifyCallee().

Referenced by remarkAlloca(), remarkCall(), remarkFlatAddrspaceAccess(), and remarkProperty().

◆ parseFnAttrAsInteger()

std::optional< int64_t > parseFnAttrAsInteger ( Function & F,
StringRef Name )
static

Definition at line 276 of file KernelInfo.cpp.

References F.

◆ remarkAlloca()

◆ remarkCall()

void remarkCall ( OptimizationRemarkEmitter & ORE,
const Function & Caller,
const CallBase & Call,
StringRef CallKind,
StringRef RemarkKind )
static

◆ remarkFlatAddrspaceAccess()

◆ remarkProperty()

void remarkProperty ( OptimizationRemarkEmitter & ORE,
const Function & F,
StringRef Name,
int64_t Value )
static