Displaying 2 results from an estimated 2 matches for "addpointerregclass".
2007 Oct 19
2
[LLVMdev] Adding address registers to back-end
...an existing back-end (I chose the Sparc back-end).
My architecture has special address-registers and I want to add such
new address-registers to my Sparc back-end.
1) I defined a new register call AddrRegs
2) I registered the class AddrRegs (addRegisterClass(MVT::iPTR, .. ))
3) I added method addPointerRegClass() to my InstrInfo class
The compiler generates the some code as before, but that seems to
be ok, because I haven't used ptr_rc yet.
4) I changed the address mode MEMri:
def MEMri : Operand<iPTR> {
let PrintMethod = "printMemOperand";
// was: let MIOperandInfo = (ops...
2007 Oct 19
0
[LLVMdev] Adding address registers to back-end
...chose the Sparc back-end).
> My architecture has special address-registers and I want to add such
> new address-registers to my Sparc back-end.
>
> 1) I defined a new register call AddrRegs
> 2) I registered the class AddrRegs (addRegisterClass(MVT::iPTR, .. ))
> 3) I added method addPointerRegClass() to my InstrInfo class
>
> The compiler generates the some code as before, but that seems to
> be ok, because I haven't used ptr_rc yet.
>
> 4) I changed the address mode MEMri:
>
> def MEMri : Operand<iPTR> {
> let PrintMethod = "printMemOperand";...