[LLVMdev] global allocation IR instruction

Tehila Mayzels tehila at cs.technion.ac.il
Sun Apr 19 14:05:37 PDT 2015


Thanks a lot for the quick response!
Tehila.

-----Original Message-----
From: Nick Lewycky [mailto:nicholas at mxc.ca] 
Sent: Sunday, April 19, 2015 11:59 PM
To: Tehila Mayzels
Cc: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] global allocation IR instruction

Tehila Mayzels wrote:
> Hi all,
>
> In order to allocate memory on the stack there is AllocaInst instruction.
>
> What is the similar instruction/way to allocate memory on the global area?

There isn't one. Create a call to malloc, if you're linking against a
library that supplies malloc.




More information about the llvm-dev mailing list