[PATCH] D45466: [globalisel][legalizerinfo] Add support for legalization based on the MachineMemOperand

Daniel Sanders via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 9 15:46:34 PDT 2018


dsanders created this revision.
dsanders added reviewers: ab, aditya_nandakumar, bogner, rtereshin.
Herald added subscribers: javed.absar, kristof.beyls, rovka.

Currently only the memory size is supported but others can be added as
needed.

narrowScalar for G_LOAD and G_STORE now correctly update the
MachineMemOperand and will refuse to legalize atomics since those need more
careful expansions to maintain atomicity.


Repository:
  rL LLVM

https://reviews.llvm.org/D45466

Files:
  include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
  lib/CodeGen/GlobalISel/LegalityPredicates.cpp
  lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  lib/CodeGen/GlobalISel/LegalizerInfo.cpp
  lib/Target/AArch64/AArch64LegalizerInfo.cpp
  test/CodeGen/AArch64/GlobalISel/legalize-extracts.mir
  test/CodeGen/AArch64/GlobalISel/legalize-load-store.mir
  test/CodeGen/ARM/GlobalISel/arm-legalize-vfp4.mir
  test/CodeGen/X86/GlobalISel/legalize-memop-scalar.mir
  test/CodeGen/X86/GlobalISel/legalize-undef.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45466.141760.patch
Type: text/x-patch
Size: 21004 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180409/a239d617/attachment.bin>


More information about the llvm-commits mailing list