#include "llvm/IR/Analysis.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Module.h"
#include "llvm/Transforms/Instrumentation/RealtimeSanitizer.h"
usingnamespacellvm;
static void insertCallBeforeInstruction(Function &Fn, Instruction &Instruction,
const char *FunctionName) { … }
static void insertCallAtFunctionEntryPoint(Function &Fn,
const char *InsertFnName) { … }
static void insertCallAtAllFunctionExitPoints(Function &Fn,
const char *InsertFnName) { … }
RealtimeSanitizerPass::RealtimeSanitizerPass(
const RealtimeSanitizerOptions &Options) { … }
PreservedAnalyses RealtimeSanitizerPass::run(Function &F,
AnalysisManager<Function> &AM) { … }