This is an archive of the discontinued LLVM Phabricator instance.

[AVR] Add library skeleton
ClosedPublic

Authored by dylanmckay on Oct 23 2015, 8:57 PM.

Details

Reviewers
chandlerc
arsenm
Summary

This adds part of the target info code, and adds modifications to the build scripts so that AVR is built.

Diff Detail

Event Timeline

dylanmckay updated this revision to Diff 38294.Oct 23 2015, 8:57 PM
dylanmckay retitled this revision from to [AVR] Add library skeleton.
dylanmckay updated this object.
dylanmckay added reviewers: arsenm, chandlerc.
arsenm edited edge metadata.Nov 3 2015, 11:15 AM

I didn't realize you could add this little to add a target to the build

lib/Target/AVR/Stub.cpp
1–10 ↗(On Diff #38294)

Rename this file to AVRTargetMachine.cpp

lib/Target/AVR/TargetInfo/AVRTargetInfo.cpp
20

I would remove the [experimental] part

dylanmckay updated this revision to Diff 39320.Nov 4 2015, 10:49 PM
dylanmckay edited edge metadata.

Addressed Matt's points

dylanmckay marked 2 inline comments as done.Nov 4 2015, 11:17 PM
arsenm accepted this revision.Nov 5 2015, 9:45 AM
arsenm edited edge metadata.

LGTM. Somebody else should also probably accept it before committing though

This revision is now accepted and ready to land.Nov 5 2015, 9:45 AM
arsenm added inline comments.Nov 5 2015, 9:48 AM
CMakeLists.txt
204 ↗(On Diff #39320)

Actually, this should not be here. This should be left as an experimental target, so will need to be explicitly enabled with -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD

dylanmckay updated this revision to Diff 39622.Nov 6 2015, 7:23 PM
dylanmckay edited edge metadata.

Made the backend experimental

dylanmckay updated this revision to Diff 39623.Nov 6 2015, 7:24 PM

Added missing modification

dylanmckay updated this revision to Diff 39626.Nov 6 2015, 7:27 PM

Remove command line documentation from autoconf file

dylanmckay updated this revision to Diff 39629.Nov 6 2015, 7:59 PM

Readded removed line

I accidentally deleted a line previously.

Sorry for the spam.

dylanmckay marked an inline comment as done.Nov 6 2015, 8:01 PM

I marked the backend experimental.

Thanks for the review Matt!

Do you know of anybody else who might be interested in reviewing this?

Do you think it's worth merging now? That way I can begin to continue
merging the rest of the backend.

As Matt is on holiday, I'll go ahead and commit this, as it can be reviewed
by someone else later on.

dylanmckay closed this revision.Nov 12 2015, 8:45 PM