1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-26 16:18:31 +00:00
freebsd/contrib/llvm/lib
Dimitry Andric 86a34ce5a4 Pull in r300404 from upstream llvm trunk (by me):
Use correct registers for "A" inline asm constraint

  Summary:
  In PR32594, inline assembly using the 'A' constraint on x86_64 causes
  llvm to crash with a "Cannot select" stack trace.  This is because
  `X86TargetLowering::getRegForInlineAsmConstraint` hardcodes that 'A'
  means the EAX and EDX registers.

  However, on x86_64 it means the RAX and RDX registers, and on 16-bit
  x86 (ia16?) it means the old AX and DX registers.

  Add new register classes in `X86RegisterInfo.td` to support these
  cases, and amend the logic in `getRegForInlineAsmConstraint` to cope
  with different subtargets.  Also add a test case, derived from
  PR32594.

  Reviewers: craig.topper, qcolombet, RKSimon, ab

  Reviewed By: ab

  Subscribers: ab, emaste, royger, llvm-commits

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

This should fix crashes when using the 'A' constraint on amd64, for
example as it is being used in Xen.

Reported by:	royger
MFC after:	3 days
2017-04-15 22:34:22 +00:00
..
Analysis Reapply r287232 from upstream llvm trunk (by Daniil Fukalov): 2017-03-06 21:14:20 +00:00
AsmParser Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
Bitcode Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-02-11 13:58:05 +00:00
CodeGen Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-02-28 21:18:23 +00:00
DebugInfo Merge llvm, clang, lld and lldb release_40 branch r292009. Also update 2017-01-14 22:12:13 +00:00
Demangle Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
ExecutionEngine Merge llvm, clang, lld and lldb release_40 branch r292009. Also update 2017-01-14 22:12:13 +00:00
IR Merge llvm, clang, lld and lldb release_40 branch r292009. Also update 2017-01-14 22:12:13 +00:00
IRReader Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
LibDriver Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
LineEditor Update llvm to release_39 branch r276489, and resolve conflicts. 2016-08-16 21:02:59 +00:00
Linker Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
LTO Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-02-17 20:07:35 +00:00
MC Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-02-11 13:58:05 +00:00
Object Merge llvm, clang, lld and lldb release_40 branch r292009. Also update 2017-01-14 22:12:13 +00:00
ObjectYAML Merge llvm, clang, lld and lldb release_40 branch r292009. Also update 2017-01-14 22:12:13 +00:00
Option Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
Passes Merge llvm, clang, lld and lldb release_40 branch r292009. Also update 2017-01-14 22:12:13 +00:00
ProfileData Merge llvm, clang, lld and lldb release_40 branch r292009. Also update 2017-01-14 22:12:13 +00:00
Support Merge llvm, clang, lld and lldb release_40 branch r292009. Also update 2017-01-14 22:12:13 +00:00
TableGen Merge llvm, clang, lld and lldb trunk r291012, and resolve conflicts. 2017-01-04 22:19:42 +00:00
Target Pull in r300404 from upstream llvm trunk (by me): 2017-04-15 22:34:22 +00:00
Transforms Update clang, llvm, lld, lldb, compiler-rt and libc++ to 4.0.0 release. 2017-03-10 19:02:41 +00:00
XRay Merge llvm, clang, lld and lldb release_40 branch r292009. Also update 2017-01-14 22:12:13 +00:00