25 const char *FunctionName) {
31 Builder.CreateCall(Func, {});
35 const char *InsertFnName) {
41 const char *InsertFnName) {
44 if (isa<ReturnInst>(&
I))
53 if (
F.hasFnAttribute(Attribute::SanitizeRealtime)) {
Module.h This file contains the declarations for the Module class.
static void insertCallAtAllFunctionExitPoints(Function &Fn, const char *InsertFnName)
static void insertCallAtFunctionEntryPoint(Function &Fn, const char *InsertFnName)
static void insertCallBeforeInstruction(Function &Fn, Instruction &Instruction, const char *FunctionName)
A container for analyses that lazily runs them and caches their results.
const Instruction & front() const
Represents analyses that only rely on functions' control flow.
A handy container for a FunctionType+Callee-pointer pair, which can be passed around as a single enti...
const BasicBlock & front() const
LLVMContext & getContext() const
getContext - Return a reference to the LLVMContext associated with this function.
Module * getParent()
Get the module that this global value is contained inside of...
This provides a uniform API for creating instructions and inserting them into a basic block: either a...
This is an important class for using LLVM in a threaded context.
FunctionCallee getOrInsertFunction(StringRef Name, FunctionType *T, AttributeList AttributeList)
Look up the specified function in the module symbol table.
A set of analyses that are preserved following a run of a transformation pass.
static PreservedAnalyses all()
Construct a special preserved set that preserves all passes.
void preserveSet()
Mark an analysis set as preserved.
RealtimeSanitizerPass(const RealtimeSanitizerOptions &Options)
PreservedAnalyses run(Function &F, AnalysisManager< Function > &AM)
static Type * getVoidTy(LLVMContext &C)
Pass manager infrastructure for declaring and invalidating analyses.
This is an optimization pass for GlobalISel generic memory operations.