Instructions that access memory @ the IR level


I'm working with a pass that operates at the LLVM IR level.  I need to run
some statistics on instructions that access memory, and I'm wondering, at
the IR level, which instructions aside from Load and Store access memory

directly as a result of their operation?  I know on an ISA level, this
varies from arch to arch, but I'm wondering how LLVM has this set up at the
IR level.

Thank you,
Griffin Wright

If you're writing a pass, you probably want to use
Instruction::mayReadFromMemory() and Instruction::mayWriteToMemory().
If you need something more specific, you can also take a look at their
implementations (in lib/VMCore/Instruction.cpp).