[LLVMdev] alloca & store generation

Ryan M. Lefever lefever at crhc.uiuc.edu
Tue Mar 6 04:03:23 PST 2007


It seems as though, when the bytecode is disassebled, the result of the 
allocas should be given as a parameter to the stores.  If the 
disassembler doesn't give the allocas a name, then that dependency is 
not conveyed.

Andreas Eriksson wrote:
>>Why isn't llvm giving a name to the value returned by the allocas and
>>using it in the store instructions?
> 
> Because you pass in an empty string for the name in the new AllocaInst
> calls below. Replace the empty strings with "argc_addr" or whatever
> you want.
> 
> 
>>   AllocaInst* argc_alloca = new AllocaInst(argc->getType(), "",
>>                                           insertNewInstsBefore);
>>   AllocaInst* argv_alloca = new AllocaInst(argv->getType(), "",
>>                                           insertNewInstsBefore);
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-- 
Ryan M. Lefever  [http://www.ews.uiuc.edu/~lefever]



More information about the llvm-dev mailing list