Emit the following aliases (if available):
.set __tmp_reg__, [0|16] .set __zero_reg__, [1|17] .set __SREG__, 63 .set __SP_H__, 62 .set __SP_L__, 61 .set __EIND__, 60 .set __RAMPZ__, 59
Paths
| Differential D119807
[AVR][MC] Emit some aliases for GPRs and IO registers ClosedPublic Authored by benshi001 on Feb 14 2022, 10:35 PM.
Details Summary Emit the following aliases (if available): .set __tmp_reg__, [0|16] .set __zero_reg__, [1|17] .set __SREG__, 63 .set __SP_H__, 62 .set __SP_L__, 61 .set __EIND__, 60 .set __RAMPZ__, 59
Diff Detail Event TimelineHerald added subscribers: jeroen.dobbelaere, Jim, hiraditya. · View Herald TranscriptFeb 14 2022, 10:35 PM
Comment Actions I think there is one issue in the test. Other than that, this looks good to me.
Comment Actions
I have deleted the MC test, since it is uncessary as you pointed. My patch is only about emiting aliases when doing CodeGen, so one .ll test is enough. Comment Actions Hmm, ok. An assembly test might have been useful to show that it actually works but the patch looks fine to me so I'll accept it. This revision is now accepted and ready to land.Mar 23 2022, 9:56 AM This revision was landed with ongoing or failed builds.Mar 23 2022, 7:09 PM Closed by commit rGd7afea9eb842: [AVR][MC] Emit some aliases for GPRs and IO registers (authored by benshi001). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 417482 llvm/lib/Target/AVR/AVRAsmPrinter.cpp
llvm/lib/Target/AVR/AVRDevices.td
llvm/lib/Target/AVR/AVRSubtarget.h
llvm/test/CodeGen/AVR/global-aliases.ll
|
This is just re-format, no functional change.