LLVM 20.0.0git
|
#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 |
INITIALIZE_PASS_BEGIN | ( | PostInlineEntryExitInstrumenter | , |
"post-inline-ee-instrument" | , | ||
"Instrument function entry/exit with calls to e.g. mcount() " "(post inlining)" | , | ||
false | , | ||
false | |||
) |
|
static |
Definition at line 25 of file EntryExitInstrumenter.cpp.
References llvm::CallingConv::C, llvm::CallInst::Create(), DL, llvm::Intrinsic::getDeclaration(), llvm::Type::getInt32Ty(), llvm::Type::getVoidTy(), llvm::GlobalValue::InternalLinkage, llvm::Triple::isOSAIX(), llvm::report_fatal_error(), and llvm::Instruction::setDebugLoc().
Referenced by runOnFunction().
Definition at line 83 of file EntryExitInstrumenter.cpp.
References DL, llvm::StringRef::empty(), F, and insertCall().
Referenced by llvm::EntryExitInstrumenterPass::run().
Definition at line 167 of file EntryExitInstrumenter.cpp.
void FunctionInstrumenter::instrument |
Definition at line 164 of file EntryExitInstrumenter.cpp.