[LLVMdev] Instruction::mayWriteToMemory() -- is there a logical equivalent for reads?
Chris Lattner
sabre at nondot.org
Wed Jul 25 21:56:16 PDT 2007
On Wed, 25 Jul 2007, Sarah Thompson wrote:
> The Instruction::mayWriteToMemory() member function is quite useful (I'm
> currently writing code that will break up basic blocks at read/write
> instructions). Is there a safe way to do the same thing for reads from
> memory? It's easy enough to check for the relevant instructions, but I
Yep, the alias analysis interface will provide this information for you,
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list