LLVM 20.0.0git
Functions | Variables
EntryExitInstrumenter.cpp File Reference
#include "llvm/Transforms/Utils/EntryExitInstrumenter.h"
#include "llvm/Analysis/GlobalsModRef.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Type.h"
#include "llvm/InitializePasses.h"
#include "llvm/TargetParser/Triple.h"
#include "llvm/Pass.h"
#include "llvm/Transforms/Utils.h"

Go to the source code of this file.

Functions

static void insertCall (Function &CurFn, StringRef Func, BasicBlock::iterator InsertionPt, DebugLoc DL)
 
static bool runOnFunction (Function &F, bool PostInlining)
 
 INITIALIZE_PASS_BEGIN (PostInlineEntryExitInstrumenter, "post-inline-ee-instrument", "Instrument function entry/exit with calls to e.g. mcount() " "(post inlining)", false, false) INITIALIZE_PASS_END(PostInlineEntryExitInstrumenter
 
post inline ee Instrument function entry exit with calls to e g mcount () " "(post inlining)"
 

Variables

post inline ee instrument
 
post inline ee Instrument function entry exit with calls to e g false
 

Function Documentation

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( PostInlineEntryExitInstrumenter  ,
"post-inline-ee-instrument"  ,
"Instrument function entry/exit with calls to e.g. mcount() " "(post inlining)"  ,
false  ,
false   
)

◆ insertCall()

static void insertCall ( Function CurFn,
StringRef  Func,
BasicBlock::iterator  InsertionPt,
DebugLoc  DL 
)
static

◆ mcount()

post inline ee Instrument function entry exit with calls to e g mcount ( )

◆ runOnFunction()

static bool runOnFunction ( Function F,
bool  PostInlining 
)
static

Definition at line 83 of file EntryExitInstrumenter.cpp.

References DL, llvm::StringRef::empty(), F, and insertCall().

Referenced by llvm::EntryExitInstrumenterPass::run().

Variable Documentation

◆ false

post inline ee Instrument function entry exit with calls to e g false

Definition at line 167 of file EntryExitInstrumenter.cpp.

◆ instrument

post inline ee instrument

Definition at line 164 of file EntryExitInstrumenter.cpp.