From 00f1023cf8b30c74dc219525f518a80c45b6e7ba Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 8 Apr 2006 01:18:18 +0000 Subject: Add shufflevector support, todo, implement better constant folding. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27510 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/ConstantFold.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/VMCore/ConstantFold.h') diff --git a/lib/VMCore/ConstantFold.h b/lib/VMCore/ConstantFold.h index 7914a1c..5119aaf 100644 --- a/lib/VMCore/ConstantFold.h +++ b/lib/VMCore/ConstantFold.h @@ -36,6 +36,9 @@ namespace llvm { Constant *ConstantFoldInsertElementInstruction(const Constant *Val, const Constant *Elt, const Constant *Idx); + Constant *ConstantFoldShuffleVectorInstruction(const Constant *V1, + const Constant *V2, + const Constant *Mask); Constant *ConstantFoldBinaryInstruction(unsigned Opcode, const Constant *V1, const Constant *V2); Constant *ConstantFoldGetElementPtr(const Constant *C, -- cgit v1.1