[PATCH] D103383: [AVR] Add support for the tinyAVR 0-series and tinyAVR 1-series
Justin Latimer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun May 30 11:41:41 PDT 2021
justinlatimer created this revision.
Herald added subscribers: Jim, hiraditya, dylanmckay.
justinlatimer requested review of this revision.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.
[AVR] Add support for the tinyAVR 0-series and tinyAVR 1-series
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D103383
Files:
clang/lib/Basic/Targets/AVR.cpp
llvm/lib/Target/AVR/AVRDevices.td
Index: llvm/lib/Target/AVR/AVRDevices.td
===================================================================
--- llvm/lib/Target/AVR/AVRDevices.td
+++ llvm/lib/Target/AVR/AVRDevices.td
@@ -495,4 +495,28 @@
def : Device<"attiny40", FamilyTiny, ELFArchTiny>;
def : Device<"attiny102", FamilyTiny, ELFArchTiny>;
def : Device<"attiny104", FamilyTiny, ELFArchTiny>;
-
+def : Device<"attiny202", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny402", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny204", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny404", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny804", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny1604", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny406", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny806", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny1606", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny807", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny1607", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny212", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny412", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny214", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny414", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny814", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny1614", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny416", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny816", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny1616", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny3216", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny417", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny817", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny1617", FamilyXMEGA, ELFArchXMEGA3>;
+def : Device<"attiny3217", FamilyXMEGA, ELFArchXMEGA3>;
Index: clang/lib/Basic/Targets/AVR.cpp
===================================================================
--- clang/lib/Basic/Targets/AVR.cpp
+++ clang/lib/Basic/Targets/AVR.cpp
@@ -267,6 +267,31 @@
{"attiny40", "__AVR_ATtiny40__"},
{"attiny102", "__AVR_ATtiny102__"},
{"attiny104", "__AVR_ATtiny104__"},
+ {"attiny202", "__AVR_ATtiny202__"},
+ {"attiny402", "__AVR_ATtiny402__"},
+ {"attiny204", "__AVR_ATtiny204__"},
+ {"attiny404", "__AVR_ATtiny404__"},
+ {"attiny804", "__AVR_ATtiny804__"},
+ {"attiny1604", "__AVR_ATtiny1604__"},
+ {"attiny406", "__AVR_ATtiny406__"},
+ {"attiny806", "__AVR_ATtiny806__"},
+ {"attiny1606", "__AVR_ATtiny1606__"},
+ {"attiny807", "__AVR_ATtiny807__"},
+ {"attiny1607", "__AVR_ATtiny1607__"},
+ {"attiny212", "__AVR_ATtiny212__"},
+ {"attiny412", "__AVR_ATtiny412__"},
+ {"attiny214", "__AVR_ATtiny214__"},
+ {"attiny414", "__AVR_ATtiny414__"},
+ {"attiny814", "__AVR_ATtiny814__"},
+ {"attiny1614", "__AVR_ATtiny1614__"},
+ {"attiny416", "__AVR_ATtiny416__"},
+ {"attiny816", "__AVR_ATtiny816__"},
+ {"attiny1616", "__AVR_ATtiny1616__"},
+ {"attiny3216", "__AVR_ATtiny3216__"},
+ {"attiny417", "__AVR_ATtiny417__"},
+ {"attiny817", "__AVR_ATtiny817__"},
+ {"attiny1617", "__AVR_ATtiny1617__"},
+ {"attiny3217", "__AVR_ATtiny3217__"},
};
} // namespace targets
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103383.348706.patch
Type: text/x-patch
Size: 3411 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210530/0b78bd55/attachment.bin>
More information about the llvm-commits
mailing list