[AArch64][GlobalISel] Select llvm.aarch64.stlxr(i64, i64*)
authorJessica Paquette <jpaquette@apple.com>
Tue, 2 Apr 2019 19:57:26 +0000 (19:57 +0000)
committerJessica Paquette <jpaquette@apple.com>
Tue, 2 Apr 2019 19:57:26 +0000 (19:57 +0000)
commit22c6215c7e5999761152d038f4b97485542b65a5
tree4e757fd98b43c282e5494b0b9718833442f804b4
parentaac928537794e41bbc1e84a9772483ab351865ff
[AArch64][GlobalISel] Select llvm.aarch64.stlxr(i64, i64*)

This adds partial instruction selection support for llvm.aarch64.stlxr. It also
factors out selection for G_INTRINSIC_W_SIDE_EFFECTS into its own function. The
new function removes the restriction that the intrinsic ID on the
G_INTRINSIC_W_SIDE_EFFECTS be on operand 0.

Also add a test, and add a GISel line to arm64-ldxr-stxr.ll.

Differential Revision: https://reviews.llvm.org/D60100

llvm-svn: 357518
llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/GlobalISel/select-stlxr-intrin.mir [new file with mode: 0644]
llvm/test/CodeGen/AArch64/arm64-ldxr-stxr.ll