Sema: analyze I,J,K,M,N,O constraints
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 6 Jan 2015 04:26:34 +0000 (04:26 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 6 Jan 2015 04:26:34 +0000 (04:26 +0000)
commita2823578e6c502bcf83343df3036231874852cc6
treef23244499ebd0d91fd46a7d1a35c2a7ff25e954a
parent0f2c4ac6497329a19b877d56be15c9cebbeaf026
Sema: analyze I,J,K,M,N,O constraints

Add additional constraint checking for target specific behaviour for inline
assembly constraints.  We would previously silently let all arguments through
for these constraints.  In cases where the constraints were violated, we could
end up failing to select instructions and triggering assertions or worse,
silently ignoring instructions.

llvm-svn: 225244
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Basic/TargetInfo.h
clang/lib/Basic/TargetInfo.cpp
clang/lib/Basic/Targets.cpp
clang/lib/Sema/SemaStmtAsm.cpp
clang/test/Sema/inline-asm-validate-x86.c [new file with mode: 0644]