[PowerPC] implement target hook getTgtMemIntrinsic
authorChen Zheng <czhengsz@cn.ibm.com>
Sun, 27 Sep 2020 08:13:16 +0000 (04:13 -0400)
committerChen Zheng <czhengsz@cn.ibm.com>
Wed, 7 Oct 2020 04:02:44 +0000 (00:02 -0400)
commitf05608707c641423a4cd4d5923a44cda153ebbcb
treef5cc83c2a58e4498dfec52d3249e825a0f7edda7
parent0492dd91c49ca38bb45d5294f2a6711e3d40b16f
[PowerPC] implement target hook getTgtMemIntrinsic

This patch can make pass recognize Powerpc related memory intrinsics.

Reviewed By: steven.zhang

Differential Revision: https://reviews.llvm.org/D88373
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h
llvm/test/Transforms/LoopStrengthReduce/Power/memory-intrinsic.ll [new file with mode: 0644]