LLVM: lib/Transforms/Utils/EntryExitInstrumenter.cpp File Reference (original) (raw)

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)"

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

Definition at line 25 of file EntryExitInstrumenter.cpp.

References llvm::CallingConv::C, llvm::CallInst::Create(), DL, llvm::Type::getInt32Ty(), llvm::Intrinsic::getOrInsertDeclaration(), llvm::Type::getVoidTy(), llvm::GlobalValue::InternalLinkage, llvm::Triple::isAArch64(), llvm::Triple::isLoongArch(), llvm::Triple::isOSAIX(), llvm::Triple::isRISCV(), llvm::report_fatal_error(), and llvm::Instruction::setDebugLoc().

Referenced by runOnFunction().

mcount()

runOnFunction()

false

instrument

void FunctionInstrumenter::instrument