summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-11-02 22:31:56 +0000
committerNadav Rotem <nrotem@apple.com>2012-11-02 22:31:56 +0000
commitf1495671605b50a4b0386697fee0b76ebae9d17f (patch)
treebde0209eb4040e18f115562308ccc14b695ef552 /include
parent4c8edb41e5b9697d9a6bfa5761dbba9430626365 (diff)
downloadllvm-f1495671605b50a4b0386697fee0b76ebae9d17f.tar.gz
llvm-f1495671605b50a4b0386697fee0b76ebae9d17f.tar.bz2
llvm-f1495671605b50a4b0386697fee0b76ebae9d17f.tar.xz
CostModel: add support for Vector Insert and Extract.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167329 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/TargetTransformInfo.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/TargetTransformInfo.h b/include/llvm/TargetTransformInfo.h
index c65ef17dfa..94db490443 100644
--- a/include/llvm/TargetTransformInfo.h
+++ b/include/llvm/TargetTransformInfo.h
@@ -179,8 +179,9 @@ public:
}
/// Returns the expected cost of vector Insert and Extract.
+ /// Use -1 to indicate that there is no information on the index value.
virtual unsigned getVectorInstrCost(unsigned Opcode, Type *Val,
- unsigned Index = 0) const {
+ unsigned Index = -1) const {
return 1;
}