[PATCH] D30529: [GlobalISel] Enable specifying how to legalize non-power-of-2 size types.

Kristof Beyls via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 10 08:11:50 PST 2017


kristof.beyls updated this revision to Diff 91352.
kristof.beyls added a comment.

- Rebased to top-of-trunk.
- Correctly store Action info for pointer types for targets with multiple address spaces.
- Added a few basic checks to verify correctness of a targets legalization specification.
- Added one more static function to LegalizerInfo to make specifications shorter and more readable. (UnsupportedButFor).
- Adapted setAction API to be able to specify if a particular setAction should be the first specification on the operation, or if it could be a refinement.
- Introduced a few typedefs to improve readability.
- Made legalization info identical to current ToT for all backends, so that this patch becomes NFCi.


https://reviews.llvm.org/D30529

Files:
  include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
  include/llvm/CodeGen/LowLevelType.h
  include/llvm/Support/LowLevelTypeImpl.h
  lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  lib/CodeGen/GlobalISel/LegalizerInfo.cpp
  lib/Target/AArch64/AArch64LegalizerInfo.cpp
  lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
  lib/Target/ARM/ARMLegalizerInfo.cpp
  lib/Target/X86/X86LegalizerInfo.cpp
  unittests/CodeGen/GlobalISel/LegalizerInfoTest.cpp
  unittests/CodeGen/LowLevelTypeTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30529.91352.patch
Type: text/x-patch
Size: 73788 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170310/a54b2a27/attachment.bin>


More information about the llvm-commits mailing list