LLVM 17.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/TargetParser/Triple.h"
Go to the source code of this file.
Functions | |
static void | insertCall (Function &CurFn, StringRef Func, Instruction *InsertionPt, DebugLoc DL) |
static bool | runOnFunction (Function &F, bool PostInlining) |
|
static |
Definition at line 22 of file EntryExitInstrumenter.cpp.
References llvm::CallingConv::C, llvm::CallInst::Create(), DL, llvm::ConstantInt::get(), llvm::ConstantExpr::getBitCast(), llvm::BasicBlock::getContext(), llvm::Intrinsic::getDeclaration(), llvm::Type::getInt32Ty(), llvm::Type::getInt8PtrTy(), llvm::GlobalValue::getParent(), llvm::BasicBlock::getParent(), llvm::Instruction::getParent(), llvm::Type::getPointerTo(), llvm::Type::getVoidTy(), llvm::GlobalValue::InternalLinkage, llvm::Triple::isOSAIX(), llvm::report_fatal_error(), and llvm::Instruction::setDebugLoc().
Referenced by runOnFunction().
Definition at line 82 of file EntryExitInstrumenter.cpp.
References DL, llvm::StringRef::empty(), F, and insertCall().
Referenced by INITIALIZE_PASS(), and llvm::EntryExitInstrumenterPass::run().