[PATCH] D60923: [GlobalISel][AArch64] Legalize G_FNEARBYINT

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 19 14:19:11 PDT 2019


paquette created this revision.
paquette added a reviewer: aemerson.
Herald added subscribers: Petar.Avramovic, volkan, hiraditya, kristof.beyls, javed.absar, rovka.
Herald added a project: LLVM.

Add legalizer support for G_FNEARBYINT. It's the same as G_FCEIL etc.

Since the importer allows us to automatically select this after legalization, also add tests for selection etc. Also update arm64-vfloatintrinsics.ll.


https://reviews.llvm.org/D60923

Files:
  llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp
  llvm/lib/Target/AArch64/AArch64RegisterBankInfo.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/legalize-nearbyint.mir
  llvm/test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir
  llvm/test/CodeGen/AArch64/GlobalISel/regbank-nearbyint.mir
  llvm/test/CodeGen/AArch64/GlobalISel/select-nearbyint.mir
  llvm/test/CodeGen/AArch64/arm64-vfloatintrinsics.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60923.195914.patch
Type: text/x-patch
Size: 24535 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190419/1ce103ad/attachment.bin>


More information about the llvm-commits mailing list