[PATCH] D79633: [PowerPC] Add support for llvm.ppc.dcbt, llvm.ppc.dcbtst, llvm.ppc.isync intrinsics

Amy Kwan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 8 08:33:11 PDT 2020


amyk created this revision.
amyk added reviewers: power-llvm-team, nemanjai.
Herald added subscribers: llvm-commits, shchenz, hiraditya.
Herald added a project: LLVM.
amyk added a reviewer: PowerPC.

This patch adds LLVM intrinsics for the `dcbt` (Data Cache Block Touch),
`dcbtst` (Data Cache Block Touch for Store) and `isync` (Instruction
Synchronize) instructions.

The intrinsic for dcbt and dcbst in this patch are named llvm.ppc.dcbt.with.hint
and llvm.ppc.dcbtst.with.hint respectively as there already exists an intrinsic
for llvm.ppc.dcbt and llvm.ppc.dcbtst. However, the original variants of the
intrinsics do not accept the TH immediate field, whereas these variants do.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79633

Files:
  llvm/include/llvm/IR/IntrinsicsPowerPC.td
  llvm/lib/Target/PowerPC/PPCInstrInfo.td
  llvm/test/CodeGen/PowerPC/dcbt.ll
  llvm/test/CodeGen/PowerPC/isync.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79633.262881.patch
Type: text/x-patch
Size: 4762 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200508/5f251469/attachment.bin>


More information about the llvm-commits mailing list