[PATCH] D77221: [AVR] Rework MCU family detection to support more AVR MCUs

Ayke via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 20 05:20:46 PDT 2020


aykevl added inline comments.


================
Comment at: clang/lib/Basic/Targets/AVR.cpp:35
+    auto FamilyInfo = llvm::AVR::getFamilyInfo(Family.getValue());
+    Builder.defineMacro("__AVR_ARCH__", Twine(FamilyInfo.Number));
+  }
----------------
This should have tests. Take a look at D78117 for how you can add them.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77221/new/

https://reviews.llvm.org/D77221





More information about the cfe-commits mailing list