]> granicus.if.org Git - clang/commit
[AVR] Add support for the full set of inline asm constraints
authorDylan McKay <dylanmckay34@gmail.com>
Mon, 6 Feb 2017 09:01:59 +0000 (09:01 +0000)
committerDylan McKay <dylanmckay34@gmail.com>
Mon, 6 Feb 2017 09:01:59 +0000 (09:01 +0000)
commitc0b70cd682309388825cdd5284b5afb849c053df
tree6a5a71269e888a175f14ab9abcaa60c597518fbf
parente11d70efe73d57e9a794bad46e7921c506012241
[AVR] Add support for the full set of inline asm constraints

Summary:
Previously the method would simply return false, causing every single
inline assembly constraint to trigger a compile error.

This adds inline assembly constraint support for the AVR target.

This patch is derived from the code in
AVRISelLowering::getConstraintType.

More details can be found on the AVR-GCC reference wiki
http://www.nongnu.org/avr-libc/user-manual/inline_asm.html

Reviewers: jroelofs, asl

Reviewed By: asl

Subscribers: asl, ahatanak, saaadhu, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294176 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/CodeGen/avr-inline-asm-constraints.c [new file with mode: 0644]
test/CodeGen/avr-unsupported-inline-asm-constraints.c [new file with mode: 0644]