[PATCH] D66897: [AArch64][GlobalISel] Select @llvm.aarch64.ldaxr.* intrinsics

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 28 10:53:09 PDT 2019


paquette created this revision.
paquette added a reviewer: aemerson.
Herald added subscribers: Petar.Avramovic, hiraditya, kristof.beyls, javed.absar, rovka.
Herald added a project: LLVM.
paquette added a parent revision: D66769: [GlobalISel] Import patterns containing SUBREG_TO_REG.

Add a GISelPredicateCode to ldaxr_*. This allows us to import the patterns for @llvm.aarch64.ldaxr.*, and thus select them.

      

Add `isLoadStoreOfNumBytes` for the GISelPredicateCode, since each of these intrinsics involves the same check.

      

Add select-ldaxr-intrin.mir, and update arm64-ldxr-stxr.ll.


https://reviews.llvm.org/D66897

Files:
  llvm/lib/Target/AArch64/AArch64InstrAtomics.td
  llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/select-ldaxr-intrin.mir
  llvm/test/CodeGen/AArch64/arm64-ldxr-stxr.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66897.217689.patch
Type: text/x-patch
Size: 10307 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190828/be7f339d/attachment.bin>


More information about the llvm-commits mailing list