LLVM 20.0.0git
Functions | Variables
RealtimeSanitizer.cpp File Reference
#include "llvm/IR/Analysis.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/Module.h"
#include "llvm/Transforms/Utils/ModuleUtils.h"
#include "llvm/Demangle/Demangle.h"
#include "llvm/Transforms/Instrumentation/RealtimeSanitizer.h"

Go to the source code of this file.

Functions

static SmallVector< Type * > getArgTypes (ArrayRef< Value * > FunctionArgs)
 
static void insertCallBeforeInstruction (Function &Fn, Instruction &Instruction, const char *FunctionName, ArrayRef< Value * > FunctionArgs)
 
static void insertCallAtFunctionEntryPoint (Function &Fn, const char *InsertFnName, ArrayRef< Value * > FunctionArgs)
 
static void insertCallAtAllFunctionExitPoints (Function &Fn, const char *InsertFnName, ArrayRef< Value * > FunctionArgs)
 
static PreservedAnalyses rtsanPreservedCFGAnalyses ()
 
static PreservedAnalyses runSanitizeRealtime (Function &Fn)
 
static PreservedAnalyses runSanitizeRealtimeBlocking (Function &Fn)
 

Variables

const char kRtsanModuleCtorName [] = "rtsan.module_ctor"
 
const char kRtsanInitName [] = "__rtsan_ensure_initialized"
 

Function Documentation

◆ getArgTypes()

static SmallVector< Type * > getArgTypes ( ArrayRef< Value * >  FunctionArgs)
static

Definition at line 30 of file RealtimeSanitizer.cpp.

Referenced by insertCallBeforeInstruction().

◆ insertCallAtAllFunctionExitPoints()

static void insertCallAtAllFunctionExitPoints ( Function Fn,
const char InsertFnName,
ArrayRef< Value * >  FunctionArgs 
)
static

Definition at line 56 of file RealtimeSanitizer.cpp.

References I, insertCallBeforeInstruction(), and instructions.

Referenced by runSanitizeRealtime().

◆ insertCallAtFunctionEntryPoint()

static void insertCallAtFunctionEntryPoint ( Function Fn,
const char InsertFnName,
ArrayRef< Value * >  FunctionArgs 
)
static

◆ insertCallBeforeInstruction()

static void insertCallBeforeInstruction ( Function Fn,
Instruction Instruction,
const char FunctionName,
ArrayRef< Value * >  FunctionArgs 
)
static

◆ rtsanPreservedCFGAnalyses()

static PreservedAnalyses rtsanPreservedCFGAnalyses ( )
static

◆ runSanitizeRealtime()

static PreservedAnalyses runSanitizeRealtime ( Function Fn)
static

◆ runSanitizeRealtimeBlocking()

static PreservedAnalyses runSanitizeRealtimeBlocking ( Function Fn)
static

Variable Documentation

◆ kRtsanInitName

const char kRtsanInitName[] = "__rtsan_ensure_initialized"

Definition at line 28 of file RealtimeSanitizer.cpp.

Referenced by llvm::RealtimeSanitizerPass::run().

◆ kRtsanModuleCtorName

const char kRtsanModuleCtorName[] = "rtsan.module_ctor"

Definition at line 27 of file RealtimeSanitizer.cpp.

Referenced by llvm::RealtimeSanitizerPass::run().