Go to the source code of this file.
|
static void | insertCall (Function &CurFn, StringRef Func, Instruction *InsertionPt, DebugLoc DL) |
|
static bool | runOnFunction (Function &F, bool PostInlining) |
|
| INITIALIZE_PASS_BEGIN (EntryExitInstrumenter, "ee-instrument", "Instrument function entry/exit with calls to e.g. mcount() (pre inlining)", false, false) INITIALIZE_PASS_END(EntryExitInstrumenter |
|
ee Instrument function entry exit with calls to e g | mcount ()(pre inlining)" |
|
ee Instrument function entry exit with calls to e g false | 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 |
|
◆ INITIALIZE_PASS_BEGIN() [1/2]
◆ INITIALIZE_PASS_BEGIN() [2/2]
◆ insertCall()
Definition at line 24 of file EntryExitInstrumenter.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Key::Args, llvm::CallInst::Create(), DL, llvm::ConstantInt::get(), llvm::FunctionType::get(), llvm::ConstantExpr::getBitCast(), llvm::BasicBlock::getContext(), llvm::Intrinsic::getDeclaration(), llvm::Type::getInt32Ty(), llvm::Type::getInt8PtrTy(), llvm::Instruction::getParent(), llvm::BasicBlock::getParent(), llvm::GlobalValue::getParent(), llvm::Type::getVoidTy(), M, llvm::report_fatal_error(), and llvm::Instruction::setDebugLoc().
Referenced by runOnFunction().
◆ mcount()
◆ runOnFunction()
static bool runOnFunction |
( |
Function & |
F, |
|
|
bool |
PostInlining |
|
) |
| |
|
static |
◆ false
◆ instrument