[LLVMdev] Intr*Mem flags meaning

Eli Friedman eli.friedman at gmail.com
Tue Jul 17 13:24:53 PDT 2012


On Tue, Jul 17, 2012 at 12:55 PM, Simon Atanasyan <satanasyan at mips.com> wrote:
> I'd like to clarify the meaning of "Intr*Mem" flags used in intrinsics
> definitions. If an intrinsic does not access memory but read and write
> control registers, what flag should I apply in this case: IntrNoMem or
> IntrReadWriteArgMem or nothing?

Nothing; control registers are still "memory" in the sense of Intr*Mem
because they hold state.  It doesn't matter that they aren't
addressable.

-Eli



More information about the llvm-dev mailing list