[PowerPC] Add support for intrinsics llvm.ppc.dcbfl and llvm.ppc.dcbflp
authorAnil Mahmud <Anil.Mahmud@ibm.com>
Mon, 3 Feb 2020 17:03:54 +0000 (11:03 -0600)
committerStefan Pintilie <stefanp@ca.ibm.com>
Wed, 12 Feb 2020 15:02:17 +0000 (09:02 -0600)
commitb413e5c3097cb842266d9c33e9737ac6cc252903
tree090ed72998977debc93e8f86005e3057a0f87f96
parentb99f45574c992fa262af76a0f0fcb08f87353a87
[PowerPC] Add support for intrinsics llvm.ppc.dcbfl and llvm.ppc.dcbflp

Added support for the intrinsic llvm.ppc.dcbfl and llvm.ppc.dcbflp.
These will be used for emitting cache control instructions dcbfl and dcbflp
which are actually mnemonics for using dcbf instruction with different
immediate arguments.

dcbfl ra, rb -> dcbf ra, rb, 1
dcbflp, ra, rb -> dcbf ra, rb, 3

Differential Revision: https://reviews.llvm.org/D68411
llvm/include/llvm/IR/IntrinsicsPowerPC.td
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/test/CodeGen/PowerPC/dcbf.ll