[PATCH] D137521: [AVR][Clang] Implement __AVR_ARCH__ macro
Ayke via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 6 18:57:36 PST 2022
aykevl created this revision.
aykevl added reviewers: dylanmckay, benshi001.
Herald added a subscriber: Jim.
Herald added a project: All.
aykevl requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
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__`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D137521
Files:
clang/lib/Basic/Targets/AVR.cpp
clang/lib/Basic/Targets/AVR.h
clang/test/Preprocessor/avr-atmega328p.c
clang/test/Preprocessor/avr-attiny104.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137521.473540.patch
Type: text/x-patch
Size: 34377 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221107/51a841b7/attachment-0001.bin>
More information about the cfe-commits
mailing list