These do not match up with the register numbers defined in LLVM's
AVRRegisterInfo.td
Adding Senthil as a reviewer as he originally implemented this.
Differential D28343
[AVR] Fix register numbers for in getGCCAddlRegNames() dylanmckay on Jan 4 2017, 9:49 PM. Authored by
Details
These do not match up with the register numbers defined in LLVM's Adding Senthil as a reviewer as he originally implemented this.
Diff Detail
Event TimelineComment Actions If you've added X, Y, Z and SP to GCCRegNames, you don't need AddlRegNames array at all, The reason I had them in AddlRegNames was to tell Clang that they alias regs in GCCRegNames. I followed X86TargetInfo's example - it has "ax" in GCCRegNames, and "al", "ah", "eax" and "rax" in AddlRegNames. I figured Clang could potentially use the fact that they alias when analyzing inline asm to detect unintended clobbers. |