[PowerPC][GISel] Select sync instructions required by atomic operations
authorKai Luo <lkail@cn.ibm.com>
Wed, 11 Jan 2023 08:08:49 +0000 (16:08 +0800)
committerKai Luo <lkail@cn.ibm.com>
Wed, 11 Jan 2023 08:25:46 +0000 (16:25 +0800)
commitd9630c34f44d9ab88fcbe5726a153eef03f82476
tree273e77532bdbdb4321a72f779c6e12bab91b8e3c
parentad551c1335ba0e6a0c691df5bae03df7d6029b8a
[PowerPC][GISel] Select sync instructions required by atomic operations

This is part of selecting `G_ATOMIC*` instructions. Select `isync`, `sync` and `lwsync` in GISel.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D141360
llvm/lib/Target/PowerPC/GISel/PPCRegisterBankInfo.cpp
llvm/test/CodeGen/PowerPC/GlobalISel/ppc-isel-sync.ll [new file with mode: 0644]