aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-12-24 08:57:47 +0000
committerNadav Rotem <nrotem@apple.com>2012-12-24 08:57:47 +0000
commitdaf7b5c8f2889ddb923544565f07518d504aa574 (patch)
tree90a68a445b4fc9804160e769d7f61c00cbfc5cc7 /include/llvm/Target
parent3a19999413b18304d1a00cbdbe73fc43ea9cb75f (diff)
downloadexternal_llvm-daf7b5c8f2889ddb923544565f07518d504aa574.zip
external_llvm-daf7b5c8f2889ddb923544565f07518d504aa574.tar.gz
external_llvm-daf7b5c8f2889ddb923544565f07518d504aa574.tar.bz2
Change the codegen Cost Model API for shuffeles. This patch removes the API for broadcast and adds a more general API that accepts an enum of known shuffles.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171022 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r--include/llvm/Target/TargetTransformImpl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetTransformImpl.h b/include/llvm/Target/TargetTransformImpl.h
index 59b7ffc..f222974 100644
--- a/include/llvm/Target/TargetTransformImpl.h
+++ b/include/llvm/Target/TargetTransformImpl.h
@@ -71,7 +71,7 @@ public:
virtual unsigned getArithmeticInstrCost(unsigned Opcode, Type *Ty) const;
- virtual unsigned getBroadcastCost(Type *Tp) const;
+ virtual unsigned getShuffleCost(ShuffleKind Kind, Type *Tp) const;
virtual unsigned getCastInstrCost(unsigned Opcode, Type *Dst,
Type *Src) const;