This is an archive of the discontinued LLVM Phabricator instance.

[AVR][NFC] Use Register instead of unsigned
ClosedPublic

Authored by Jim on Mar 3 2020, 11:39 PM.

Details

Summary

Use Register type for variables instead of unsigned type.

Diff Detail

Event Timeline

Jim created this revision.Mar 3 2020, 11:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 3 2020, 11:39 PM
dylanmckay accepted this revision.Mar 4 2020, 1:55 AM

Approved so long as the one-character indentation issue is fixed prior to commit.

I hadn't seen this class. nice.

llvm/lib/Target/AVR/AVRRegisterInfo.cpp
99

Fix off-by-one space indentation

This revision is now accepted and ready to land.Mar 4 2020, 1:55 AM
Jim marked an inline comment as done.Mar 4 2020, 3:08 AM
Jim added inline comments.
llvm/lib/Target/AVR/AVRRegisterInfo.cpp
99

This has been formatted by clang-format.
Do you mean this should look like?

static void foldFrameOffset(MachineBasicBlock::iterator &II, 
                            int &Offset, Register DstReg) {
dylanmckay marked an inline comment as done.Mar 4 2020, 4:34 AM
dylanmckay added inline comments.
llvm/lib/Target/AVR/AVRRegisterInfo.cpp
99

Nevermind me, I'm not sure why but even though it's using a monospaced font on my machine, the opening ( and the R for Register DstReg don't line up on Phabricator.

I did the ultimate test

dylan@dylan-pc:/u/a/lib:> echo "static void foldFrameOffset(" | wc -c
29
dylan@dylan-pc:/u/a/lib:> echo "                            " | wc -c
29

You are right, it is lined up perfectly. Carry on.

This revision was automatically updated to reflect the committed changes.