This tells clang about all of the different AVR microcontrollers.
It also adds code to define the correct preprocessor macros for each
device.
Paths
| Differential D28346
[AVR] Allow specifying the CPU on the command line ClosedPublic Authored by dylanmckay on Jan 5 2017, 12:06 AM.
Details Summary This tells clang about all of the different AVR microcontrollers. It also adds code to define the correct preprocessor macros for each
Diff Detail
Event Timelinedylanmckay updated this object. dylanmckay edited edge metadata. Comment ActionsAdd tests This also defines the '__AVR' and 'AVR' values for all devices, to match what AVR-GCC does. asl added inline comments. Comment Actions Clean up the tests
dylanmckay added inline comments.
Comment Actions LGTM with minor style nit
This revision is now accepted and ready to land.Feb 6 2017, 12:55 AM Closed by commit rL294177: [AVR] Allow specifying the CPU on the command line (authored by dylanmckay). · Explain WhyFeb 6 2017, 1:19 AM This revision was automatically updated to reflect the committed changes. dylanmckay marked an inline comment as done.
Revision Contents
Diff 87195 cfe/trunk/lib/Basic/Targets.cpp
cfe/trunk/test/CodeGen/avr/target-cpu-defines/atmega328p.c
|