Displaying 1 result from an estimated 1 matches for "getregisterbynam".
Did you mean:
getregisterbyname
2014 Mar 28
9
[LLVMdev] Named Register Implementation
...er way.
Is that a reasonable expectation of the implementation?
Now, onto specifics...
1. RegisterByName
I couldn't find a way to get a register by name. I could teach the
TableGen backend to print an additional table with a StringSwitch on
<Target>GenRegisterInfo.inc and add a method getRegisterByName(char
*), but that would expose a huge number of unwanted register classes
which could open a huge can of worms.
My idea was to be very specific and let the implementation local as
<Target>RegisterInfo::getNamedRegister(char *) which will be *just*
for named registers and will only map a few...