[LLVMdev] Going from argument to register and back

Villmow, Micah Micah.Villmow at amd.com
Thu Sep 25 10:49:09 PDT 2008


I am having trouble trying to figure out two pieces of information from
attempting to map arguments to registers.

How do I determine, based on the argument name, which register the value
is supposed to be assigned to? 

I can hard-coded it currently and it will be correct 100% of the time
with the current set of assumptions, 

but I would rather determine it dynamically so that I can change my
assumptions and still get the right results.

 

Thanks,

 

Micah Villmow

Systems Engineer

Advanced Technology & Performance

Advanced Micro Devices Inc.

4555 Great America Pkwy,

Santa Clara, CA. 95054

P: 408-572-6219

F: 408-572-6596

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080925/ee679c43/attachment.html>


More information about the llvm-dev mailing list