LLVM 20.0.0git
|
Classes | |
struct | AllocaInfo |
struct | StackInfo |
class | StackInfoBuilder |
Enumerations | |
enum class | AllocaInterestingness { kUninteresting , kSafe , kInteresting } |
|
strong |
Enumerator | |
---|---|
kUninteresting | |
kSafe | |
kInteresting |
Definition at line 68 of file MemoryTaggingSupport.h.
void llvm::memtag::alignAndPadAlloca | ( | memtag::AllocaInfo & | Info, |
llvm::Align | Align | ||
) |
Definition at line 226 of file MemoryTaggingSupport.cpp.
References llvm::alignTo(), llvm::StructType::get(), llvm::ArrayType::get(), getAllocaSizeInBytes(), llvm::Type::getInt8Ty(), Info, and Size.
void llvm::memtag::annotateDebugRecords | ( | AllocaInfo & | Info, |
unsigned int | Tag | ||
) |
Definition at line 314 of file MemoryTaggingSupport.cpp.
References llvm::DIExpression::appendOpsToArg(), llvm::dwarf::DW_OP_LLVM_tag_offset, DynCastToDbgAssign(), llvm::for_each(), Info, llvm::DIExpression::prependOpcodes(), and llvm::Tag.
|
static |
Definition at line 306 of file MemoryTaggingSupport.cpp.
Referenced by annotateDebugRecords().
|
static |
Definition at line 310 of file MemoryTaggingSupport.cpp.
References llvm::DbgVariableRecord::isDbgAssign().
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 | ||
) |
Definition at line 48 of file MemoryTaggingSupport.cpp.
References llvm::SmallPtrSetImpl< PtrType >::contains(), llvm::PostDominatorTree::dominates(), End, llvm::for_each(), llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::isPotentiallyReachable(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), and llvm::SmallVectorBase< Size_T >::size().
uint64_t llvm::memtag::getAllocaSizeInBytes | ( | const AllocaInst & | AI | ) |
Definition at line 221 of file MemoryTaggingSupport.cpp.
References DL, llvm::AllocaInst::getAllocationSize(), and llvm::Instruction::getDataLayout().
Referenced by alignAndPadAlloca(), and llvm::memtag::StackInfoBuilder::getAllocaInterestingness().
Definition at line 296 of file MemoryTaggingSupport.cpp.
References llvm::IRBuilderBase::CreateCall(), llvm::IRBuilderBase::CreateConstGEP1_32(), llvm::IRBuilderBase::GetInsertBlock(), llvm::IRBuilderBase::getInt8Ty(), llvm::Intrinsic::getOrInsertDeclaration(), llvm::GlobalValue::getParent(), and llvm::BasicBlock::getParent().
Definition at line 278 of file MemoryTaggingSupport.cpp.
References llvm::Triple::aarch64, llvm::IRBuilderBase::CreatePtrToInt(), llvm::Triple::getArch(), llvm::IRBuilderBase::GetInsertBlock(), llvm::IRBuilderBase::getIntPtrTy(), llvm::GlobalValue::getParent(), llvm::BasicBlock::getParent(), and readRegister().
Instruction * llvm::memtag::getUntagLocationIfFunctionExit | ( | Instruction & | Inst | ) |
Definition at line 102 of file MemoryTaggingSupport.cpp.
References llvm::ilist_detail::node_parent_access< NodeTy, ParentTy >::getParent().
Referenced by llvm::memtag::StackInfoBuilder::visit().
Value * llvm::memtag::incrementThreadLong | ( | IRBuilder<> & | IRB, |
Value * | ThreadLong, | ||
unsigned int | Inc | ||
) |
Definition at line 338 of file MemoryTaggingSupport.cpp.
References assert(), llvm::IRBuilderBase::CreateAdd(), llvm::IRBuilderBase::CreateAnd(), llvm::IRBuilderBase::CreateAShr(), llvm::IRBuilderBase::CreateShl(), llvm::IRBuilderBase::CreateXor(), and llvm::Value::getType().
Definition at line 264 of file MemoryTaggingSupport.cpp.
References II.
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().
Definition at line 269 of file MemoryTaggingSupport.cpp.
References llvm::IRBuilderBase::CreateIntrinsic(), llvm::MDNode::get(), llvm::MetadataAsValue::get(), llvm::IRBuilderBase::GetInsertBlock(), llvm::IRBuilderBase::getIntPtrTy(), llvm::GlobalValue::getParent(), and llvm::BasicBlock::getParent().
Referenced by getPC().