summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMTargetTransformInfo.h
diff options
context:
space:
mode:
authorSam Tebbs <sam.tebbs@arm.com>2019-08-19 09:38:28 +0000
committerSam Tebbs <sam.tebbs@arm.com>2019-08-19 09:38:28 +0000
commitf312c1ecf4bc7003f4b10231a3147d004a39bfae (patch)
tree6fd814c25a8dfad4c2398c119b68f76c1f369543 /llvm/lib/Target/ARM/ARMTargetTransformInfo.h
parent2bfc13fde1296a63dba5d5589aac9aa5ae45949e (diff)
downloadbcm5719-llvm-f312c1ecf4bc7003f4b10231a3147d004a39bfae.tar.gz
bcm5719-llvm-f312c1ecf4bc7003f4b10231a3147d004a39bfae.zip
[ARM] Add support for MVE vaddv
This patch adds vecreduce_add and the relevant instruction selection for vaddv. Differential revision: https://reviews.llvm.org/D66085 llvm-svn: 369245
Diffstat (limited to 'llvm/lib/Target/ARM/ARMTargetTransformInfo.h')
-rw-r--r--llvm/lib/Target/ARM/ARMTargetTransformInfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetTransformInfo.h b/llvm/lib/Target/ARM/ARMTargetTransformInfo.h
index b966c76c7bf..507e0188549 100644
--- a/llvm/lib/Target/ARM/ARMTargetTransformInfo.h
+++ b/llvm/lib/Target/ARM/ARMTargetTransformInfo.h
@@ -156,6 +156,13 @@ public:
int getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp);
+ bool useReductionIntrinsic(unsigned Opcode, Type *Ty,
+ TTI::ReductionFlags Flags) const;
+
+ bool shouldExpandReduction(const IntrinsicInst *II) const {
+ return false;
+ }
+
int getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src,
const Instruction *I = nullptr);
OpenPOWER on IntegriCloud