[LLVMdev] all LLVM Instructions that may write to memory -- other than StoreInst?

Duncan Sands baldrick at free.fr
Sun Jan 23 04:44:37 PST 2011


Hi Chuck,

> I looked at this function even before starting the discussions.
>
> I think it respects LLVM's principle that only Loads and Stores (+VAArg,
> and maybe Call) that can access global memory, but doesn't address the
> issues of accessing stack frames or stack objects.

I think you need to look at the code generators, since what you're asking
doesn't make much sense at the IR level.  For example pretty much *any*
IR instruction could result in accessing the stack if the code generator
spilled registers to the stack.

Ciao, Duncan.

>
> Thank you for the hint.
>
> Chuck
>
> On 1/22/2011 6:17 AM, Duncan Sands wrote:
>> Hi Chuck,
>>
>>> I need to figure out all LLVM Instructions that may write to memory.
>> I->mayWriteToMemory()
>>
>> Ciao, Duncan.
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list