This macro is defined in avr-gcc, and is very useful especially in assembly code to check whether particular instructions are supported. It is also the basis for other macros like __AVR_HAVE_ELPM__.
Depends on D137520.
Paths
| Differential D137521
[AVR][Clang] Implement __AVR_ARCH__ macro ClosedPublic Authored by aykevl on Nov 6 2022, 6:57 PM.
Details
Summary This macro is defined in avr-gcc, and is very useful especially in assembly code to check whether particular instructions are supported. It is also the basis for other macros like __AVR_HAVE_ELPM__. Depends on D137520.
Diff Detail
Event Timelineaykevl added a child revision: D137572: [AVR][Clang] Implement __AVR_HAVE_*__ macros.Nov 7 2022, 9:54 AM This revision is now accepted and ready to land.Nov 11 2022, 12:51 AM This revision was landed with ongoing or failed builds.Nov 15 2022, 6:29 AM Closed by commit rG09ab9d4d111f: [AVR][Clang] Implement __AVR_ARCH__ macro (authored by aykevl). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 475450 clang/lib/Basic/Targets/AVR.h
clang/lib/Basic/Targets/AVR.cpp
clang/test/Preprocessor/avr-atmega328p.c
clang/test/Preprocessor/avr-attiny104.c
|