]> granicus.if.org Git - clang/commit
[AVR] Allow specifying the CPU on the command line
authorDylan McKay <dylanmckay34@gmail.com>
Mon, 6 Feb 2017 09:07:56 +0000 (09:07 +0000)
committerDylan McKay <dylanmckay34@gmail.com>
Mon, 6 Feb 2017 09:07:56 +0000 (09:07 +0000)
commit62d905d55dc6767a5492b6abf629dddc27bb6c79
tree7071a1beb1e16d2c1630efd73d08062f929a934c
parentc0b70cd682309388825cdd5284b5afb849c053df
[AVR] Allow specifying the CPU on the command line

Summary:
This tells clang about all of the different AVR microcontrollers.

It also adds code to define the correct preprocessor macros for each
device.

Reviewers: jroelofs, asl

Reviewed By: asl

Subscribers: asl, cfe-commits

Differential Revision: https://reviews.llvm.org/D28346

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294177 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/CodeGen/avr/target-cpu-defines/atmega328p.c [new file with mode: 0644]
test/CodeGen/avr/target-cpu-defines/attiny104.c [new file with mode: 0644]
test/CodeGen/avr/target-cpu-defines/common.c [new file with mode: 0644]