memory access of a particular instruction, the function will return
null if no such memory access.
llvm-svn: 155544
return *InstructionToAccess[Inst];
}
+ MemoryAccess *lookupAccessFor(const Instruction *Inst) const {
+ std::map<const Instruction*, MemoryAccess*>::const_iterator at
+ = InstructionToAccess.find(Inst);
+ return at == InstructionToAccess.end() ? NULL : at->second;
+ }
+
void setBasicBlock(BasicBlock *Block) { BB = Block; }
typedef MemoryAccessVec::iterator memacc_iterator;