LLVM API Documentation
Public Member Functions | |
ModRefInfoBuilder (const DSGraph &_funcGraph, const FunctionModRefInfo &_funcModRef, ModRefTable &_modRefTable) | |
void | visitCallInst (CallInst &callInst) |
void | visitStoreInst (StoreInst &storeInst) |
void | visitLoadInst (LoadInst &loadInst) |
A simple InstVisitor<> class that retrieves the Mod/Ref info for Load/Store/Call instructions and inserts this information in a ModRefTable. It also records all instructions that Mod any node and all that use any node. --------------------------------------------------------------------------
Definition at line 123 of file MemoryDepAnalysis.cpp.
|
Definition at line 133 of file MemoryDepAnalysis.cpp. |
|
Reimplemented from llvm::InstVisitor< ModRefInfoBuilder >. Definition at line 144 of file MemoryDepAnalysis.cpp. References llvm::ModRefTable::AddDef(), llvm::ModRefTable::AddUse(), llvm::BitSetVector::any(), llvm::DSGraph::getGraphSize(), llvm::FunctionModRefInfo::getModRefInfo(), llvm::ModRefInfo::getModSet(), llvm::ModRefInfo::getRefSet(), llvm::ModRefTable::modRefMap, and llvm::BitSetVector::set(). |
|
Reimplemented from llvm::InstVisitor< ModRefInfoBuilder >. Definition at line 183 of file MemoryDepAnalysis.cpp. References llvm::ModRefTable::AddUse(), llvm::DSGraph::getGraphSize(), llvm::DSNodeHandle::getNode(), llvm::DSGraph::getNodeForValue(), llvm::FunctionModRefInfo::getNodeId(), llvm::LoadInst::getPointerOperand(), llvm::ModRefTable::modRefMap, llvm::ModRefInfo::setNodeIsRef(), and target. |
|
Reimplemented from llvm::InstVisitor< ModRefInfoBuilder >. Definition at line 165 of file MemoryDepAnalysis.cpp. References llvm::ModRefTable::AddDef(), llvm::DSGraph::getGraphSize(), llvm::DSNodeHandle::getNode(), llvm::DSGraph::getNodeForValue(), llvm::FunctionModRefInfo::getNodeId(), llvm::StoreInst::getPointerOperand(), llvm::ModRefTable::modRefMap, llvm::ModRefInfo::setNodeIsMod(), and target. |