diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-01-25 02:42:41 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-01-25 02:42:41 +0000 |
commit | 1ab525e857463ff0ab702b50a97fb9c7811f0ac7 (patch) | |
tree | d7605d17c77e9d386eb9fa46e89769e7f1343956 /include/llvm/Constants.h | |
parent | 82385c9a40de1c81ee0e92891bc59a3e68b03a2f (diff) | |
download | external_llvm-1ab525e857463ff0ab702b50a97fb9c7811f0ac7.zip external_llvm-1ab525e857463ff0ab702b50a97fb9c7811f0ac7.tar.gz external_llvm-1ab525e857463ff0ab702b50a97fb9c7811f0ac7.tar.bz2 |
Revert r148901 because it crashes llvm tests.
Original log:
Introduce a new ConstantVector::getSplat constructor function to
simplify a really common case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148906 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r-- | include/llvm/Constants.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index 1823f1d..d3fd766 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -489,10 +489,6 @@ public: // ConstantVector accessors static Constant *get(ArrayRef<Constant*> V); - /// getSplat - Return a ConstantVector with the specified constant in each - /// element. - static Constant *getSplat(unsigned NumElts, Constant *Elt); - /// Transparently provide more efficient getOperand methods. DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Constant); @@ -761,11 +757,6 @@ public: static Constant *get(LLVMContext &Context, ArrayRef<float> Elts); static Constant *get(LLVMContext &Context, ArrayRef<double> Elts); - /// getSplat - Return a ConstantVector with the specified constant in each - /// element. The specified constant has to be a of a compatible type (i8/i16/ - /// i32/i64/float/double) and must be a ConstantFP or ConstantInt. - static Constant *getSplat(unsigned NumElts, Constant *Elt); - /// getType - Specialize the getType() method to always return a VectorType, /// which reduces the amount of casting needed in parts of the compiler. /// |