[PATCH] D19967: [AArch64] Implement lowering of the X constraint on AArch64

silviu.baranga@arm.com via llvm-commits llvm-commits at lists.llvm.org
Thu May 5 06:10:55 PDT 2016


sbaranga created this revision.
sbaranga added a reviewer: rengolin.
sbaranga added subscribers: t.p.northover, llvm-commits.
Herald added subscribers: rengolin, aemerson.

This implements the lowering of the X constraint on
AArch64.

The default behaviour of the X constraint lowering is to
restrict it to "f". This is a problem because the "f"
constraint is not implemented on AArch64 and would be too
restrictive anyway. Therefore, the AArch64 hook will
lower this to "w" (if the operand is a floating point or
vector) or "r" otherwise.

The implementation is similar with the one added for
ARM (r267411).

This is the AArch64 side of the fix for http://llvm.org/PR26493

http://reviews.llvm.org/D19967

Files:
  lib/Target/AArch64/AArch64ISelLowering.cpp
  lib/Target/AArch64/AArch64ISelLowering.h
  test/CodeGen/AArch64/inlineasm-X-allocation.ll
  test/CodeGen/AArch64/inlineasm-X-constraint.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19967.56275.patch
Type: text/x-patch
Size: 7805 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160505/8fedc689/attachment.bin>


More information about the llvm-commits mailing list