[LLVMdev] More efficient way of going over memory based instructions

Chris Lattner clattner at apple.com
Tue Aug 25 21:49:20 PDT 2009


On Aug 25, 2009, at 2:41 PM, Villmow, Micah wrote:

> I am writing a pass for a custom backend that I am developing and I  
> need to iterator over all memory based instructions in a program.  
> Currently I iterate over all instructions in a MachineFunction, but  
> I was wondering if there is an efficient way that I can use that  
> only goes over the instructions that have MachineMemOperands that is  
> faster than a linear scan?

Nope, not currently.

-Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090825/477d7c17/attachment.html>


More information about the llvm-dev mailing list