diff options
author | Nadav Rotem <nrotem@apple.com> | 2012-11-02 22:31:56 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2012-11-02 22:31:56 +0000 |
commit | f1495671605b50a4b0386697fee0b76ebae9d17f (patch) | |
tree | bde0209eb4040e18f115562308ccc14b695ef552 /include/llvm | |
parent | 4c8edb41e5b9697d9a6bfa5761dbba9430626365 (diff) | |
download | external_llvm-f1495671605b50a4b0386697fee0b76ebae9d17f.zip external_llvm-f1495671605b50a4b0386697fee0b76ebae9d17f.tar.gz external_llvm-f1495671605b50a4b0386697fee0b76ebae9d17f.tar.bz2 |
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/llvm')
-rw-r--r-- | include/llvm/TargetTransformInfo.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/TargetTransformInfo.h b/include/llvm/TargetTransformInfo.h index c65ef17..94db490 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; } |