diff options
author | Nadav Rotem <nrotem@apple.com> | 2012-12-24 08:57:47 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2012-12-24 08:57:47 +0000 |
commit | daf7b5c8f2889ddb923544565f07518d504aa574 (patch) | |
tree | 90a68a445b4fc9804160e769d7f61c00cbfc5cc7 /include/llvm/Target | |
parent | 3a19999413b18304d1a00cbdbe73fc43ea9cb75f (diff) | |
download | external_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.h | 2 |
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; |