@@ -119,12 +119,6 @@ ConstantFoldFPInstOperands(unsigned Opcode, Constant *LHS, Constant *RHS,
119119LLVM_ABI Constant *FlushFPConstant (Constant *Operand, const Instruction *I,
120120 bool IsOutput);
121121
122- // / Attempt to constant fold a select instruction with the specified
123- // / operands. The constant result is returned if successful; if not, null is
124- // / returned.
125- LLVM_ABI Constant *ConstantFoldSelectInstruction (Constant *Cond, Constant *V1,
126- Constant *V2);
127-
128122// / Attempt to constant fold a cast with the specified operand. If it
129123// / fails, it returns a constant expression of the specified operand.
130124LLVM_ABI Constant *ConstantFoldCastOperand (unsigned Opcode, Constant *C,
@@ -135,40 +129,6 @@ LLVM_ABI Constant *ConstantFoldCastOperand(unsigned Opcode, Constant *C,
135129LLVM_ABI Constant *ConstantFoldIntegerCast (Constant *C, Type *DestTy,
136130 bool IsSigned, const DataLayout &DL);
137131
138- // / ConstantFoldInsertValueInstruction - Attempt to constant fold an insertvalue
139- // / instruction with the specified operands and indices. The constant result is
140- // / returned if successful; if not, null is returned.
141- LLVM_ABI Constant *ConstantFoldInsertValueInstruction (Constant *Agg,
142- Constant *Val,
143- ArrayRef<unsigned > Idxs);
144-
145- // / Attempt to constant fold an extractvalue instruction with the
146- // / specified operands and indices. The constant result is returned if
147- // / successful; if not, null is returned.
148- LLVM_ABI Constant *ConstantFoldExtractValueInstruction (Constant *Agg,
149- ArrayRef<unsigned > Idxs);
150-
151- // / Attempt to constant fold an insertelement instruction with the
152- // / specified operands and indices. The constant result is returned if
153- // / successful; if not, null is returned.
154- LLVM_ABI Constant *ConstantFoldInsertElementInstruction (Constant *Val,
155- Constant *Elt,
156- Constant *Idx);
157-
158- // / Attempt to constant fold an extractelement instruction with the
159- // / specified operands and indices. The constant result is returned if
160- // / successful; if not, null is returned.
161- LLVM_ABI Constant *ConstantFoldExtractElementInstruction (Constant *Val,
162- Constant *Idx);
163-
164- // / Attempt to constant fold a shufflevector instruction with the
165- // / specified operands and mask. See class ShuffleVectorInst for a description
166- // / of the mask representation. The constant result is returned if successful;
167- // / if not, null is returned.
168- LLVM_ABI Constant *ConstantFoldShuffleVectorInstruction (Constant *V1,
169- Constant *V2,
170- ArrayRef<int > Mask);
171-
172132// / Extract value of C at the given Offset reinterpreted as Ty. If bits past
173133// / the end of C are accessed, they are assumed to be poison.
174134LLVM_ABI Constant *ConstantFoldLoadFromConst (Constant *C, Type *Ty,
0 commit comments