LLVM 20.0.0git
Classes | Functions
llvm::memtag Namespace Reference

Classes

struct  AllocaInfo
 
struct  StackInfo
 
class  StackInfoBuilder
 

Functions

bool forAllReachableExits (const DominatorTree &DT, const PostDominatorTree &PDT, const LoopInfo &LI, const Instruction *Start, const SmallVectorImpl< IntrinsicInst * > &Ends, const SmallVectorImpl< Instruction * > &RetVec, llvm::function_ref< void(Instruction *)> Callback)
 
bool isStandardLifetime (const SmallVectorImpl< IntrinsicInst * > &LifetimeStart, const SmallVectorImpl< IntrinsicInst * > &LifetimeEnd, const DominatorTree *DT, const LoopInfo *LI, size_t MaxLifetimes)
 
InstructiongetUntagLocationIfFunctionExit (Instruction &Inst)
 
uint64_t getAllocaSizeInBytes (const AllocaInst &AI)
 
void alignAndPadAlloca (memtag::AllocaInfo &Info, llvm::Align Align)
 
bool isLifetimeIntrinsic (Value *V)
 
ValuereadRegister (IRBuilder<> &IRB, StringRef Name)
 
ValuegetFP (IRBuilder<> &IRB)
 
ValuegetPC (const Triple &TargetTriple, IRBuilder<> &IRB)
 
ValuegetAndroidSlotPtr (IRBuilder<> &IRB, int Slot)
 
void annotateDebugRecords (AllocaInfo &Info, unsigned int Tag)
 
static DbgAssignIntrinsicDynCastToDbgAssign (DbgVariableIntrinsic *DVI)
 
static DbgVariableRecordDynCastToDbgAssign (DbgVariableRecord *DVR)
 

Function Documentation

◆ alignAndPadAlloca()

void llvm::memtag::alignAndPadAlloca ( memtag::AllocaInfo Info,
llvm::Align  Align 
)

◆ annotateDebugRecords()

void llvm::memtag::annotateDebugRecords ( AllocaInfo Info,
unsigned int  Tag 
)

◆ DynCastToDbgAssign() [1/2]

static DbgAssignIntrinsic * llvm::memtag::DynCastToDbgAssign ( DbgVariableIntrinsic DVI)
static

Definition at line 289 of file MemoryTaggingSupport.cpp.

Referenced by annotateDebugRecords().

◆ DynCastToDbgAssign() [2/2]

static DbgVariableRecord * llvm::memtag::DynCastToDbgAssign ( DbgVariableRecord DVR)
static

Definition at line 293 of file MemoryTaggingSupport.cpp.

References llvm::DbgVariableRecord::isDbgAssign().

◆ forAllReachableExits()

bool llvm::memtag::forAllReachableExits ( const DominatorTree DT,
const PostDominatorTree PDT,
const LoopInfo LI,
const Instruction Start,
const SmallVectorImpl< IntrinsicInst * > &  Ends,
const SmallVectorImpl< Instruction * > &  RetVec,
llvm::function_ref< void(Instruction *)>  Callback 
)

◆ getAllocaSizeInBytes()

uint64_t llvm::memtag::getAllocaSizeInBytes ( const AllocaInst AI)

◆ getAndroidSlotPtr()

Value * llvm::memtag::getAndroidSlotPtr ( IRBuilder<> &  IRB,
int  Slot 
)

◆ getFP()

Value * llvm::memtag::getFP ( IRBuilder<> &  IRB)

◆ getPC()

Value * llvm::memtag::getPC ( const Triple TargetTriple,
IRBuilder<> &  IRB 
)

◆ getUntagLocationIfFunctionExit()

Instruction * llvm::memtag::getUntagLocationIfFunctionExit ( Instruction Inst)

◆ isLifetimeIntrinsic()

bool llvm::memtag::isLifetimeIntrinsic ( Value V)

Definition at line 244 of file MemoryTaggingSupport.cpp.

References II.

◆ isStandardLifetime()

bool llvm::memtag::isStandardLifetime ( const SmallVectorImpl< IntrinsicInst * > &  LifetimeStart,
const SmallVectorImpl< IntrinsicInst * > &  LifetimeEnd,
const DominatorTree DT,
const LoopInfo LI,
size_t  MaxLifetimes 
)

Definition at line 89 of file MemoryTaggingSupport.cpp.

References llvm::SmallVectorBase< Size_T >::size().

◆ readRegister()

Value * llvm::memtag::readRegister ( IRBuilder<> &  IRB,
StringRef  Name 
)