Displaying 2 results from an estimated 2 matches for "tp29987387p30016496".
2010 Oct 21
0
[LLVMdev] Re : How to assign a constant to a register?
...l variable, it will be stored on the stack. So you need an
> alloca for it:
Aha, I remember this in Kaleidoscope tutorial. So, after the alloca %x can
be modified freely (e.g. without adding suffix)?
--
View this message in context: http://old.nabble.com/How-to-assign-a-constant-to-a-register--tp29987387p30016496.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
2010 Oct 20
3
[LLVMdev] Re : How to assign a constant to a register?
Hi,
If x is a local variable, it will be stored on the stack. So you need an
alloca for it:
%x = alloca i8 ; <i8*>
Then you can just perform a store:
Store i8* %x, i8 0
Cheers,
James
> -----Original Message-----
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of leledumbo
> Sent: 20 October 2010 14:39
> To: llvmdev at