summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-04-14 22:20:32 +0000
committerChris Lattner <sabre@nondot.org>2006-04-14 22:20:32 +0000
commit0875d9456758bb4f75c5ebf882cd70bee1159d88 (patch)
treeadd35d4c2faa62d53fc11d7b203036ca7e1ec040
parent5876571afc2a4a25065aaf74ac53edb912d40881 (diff)
downloadbcm5719-llvm-0875d9456758bb4f75c5ebf882cd70bee1159d88.tar.gz
bcm5719-llvm-0875d9456758bb4f75c5ebf882cd70bee1159d88.zip
Move these ctors out of line
llvm-svn: 27713
-rw-r--r--llvm/lib/VMCore/Instructions.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp
index 9eaa8f7e846..6e615159c32 100644
--- a/llvm/lib/VMCore/Instructions.cpp
+++ b/llvm/lib/VMCore/Instructions.cpp
@@ -833,6 +833,12 @@ bool ExtractElementInst::isValidOperands(const Value *Val, const Value *Index) {
// InsertElementInst Implementation
//===----------------------------------------------------------------------===//
+InsertElementInst::InsertElementInst(const InsertElementInst &IE)
+ : Instruction(IE.getType(), InsertElement, Ops, 3) {
+ Ops[0].init(IE.Ops[0], this);
+ Ops[1].init(IE.Ops[1], this);
+ Ops[2].init(IE.Ops[2], this);
+}
InsertElementInst::InsertElementInst(Value *Vec, Value *Elt, Value *Index,
const std::string &Name,
Instruction *InsertBef)
@@ -874,6 +880,13 @@ bool InsertElementInst::isValidOperands(const Value *Vec, const Value *Elt,
// ShuffleVectorInst Implementation
//===----------------------------------------------------------------------===//
+ShuffleVectorInst::ShuffleVectorInst(const ShuffleVectorInst &SV)
+ : Instruction(SV.getType(), ShuffleVector, Ops, 3) {
+ Ops[0].init(SV.Ops[0], this);
+ Ops[1].init(SV.Ops[1], this);
+ Ops[2].init(SV.Ops[2], this);
+}
+
ShuffleVectorInst::ShuffleVectorInst(Value *V1, Value *V2, Value *Mask,
const std::string &Name,
Instruction *InsertBefore)
OpenPOWER on IntegriCloud