[PATCH] D28343: [AVR] Fix register numbers for in getGCCAddlRegNames()

Senthil Kumar Selvaraj via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 4 23:05:22 PST 2017


saaadhu added a comment.

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.


https://reviews.llvm.org/D28343





More information about the cfe-commits mailing list