[llvm-commits] [parallel] CVS: llvm/lib/VMCore/iBranch.cpp
Misha Brukman
brukman at cs.uiuc.edu
Sat Feb 7 17:57:42 PST 2004
Changes in directory llvm/lib/VMCore:
iBranch.cpp updated: 1.12.4.1 -> 1.12.4.2
---
Log message:
* pbr now returns sbyte* to match it with the join
* minor nit-picks on the parameter names
---
Diffs of the changes: (+10 -10)
Index: llvm/lib/VMCore/iBranch.cpp
diff -u llvm/lib/VMCore/iBranch.cpp:1.12.4.1 llvm/lib/VMCore/iBranch.cpp:1.12.4.2
--- llvm/lib/VMCore/iBranch.cpp:1.12.4.1 Thu Jan 29 19:28:20 2004
+++ llvm/lib/VMCore/iBranch.cpp Sat Feb 7 17:55:50 2004
@@ -12,8 +12,9 @@
//
//===----------------------------------------------------------------------===//
-#include "llvm/iTerminators.h"
#include "llvm/BasicBlock.h"
+#include "llvm/DerivedTypes.h"
+#include "llvm/iTerminators.h"
#include "llvm/Type.h"
using namespace llvm;
@@ -87,20 +88,19 @@
}
// Parallel Branch implementations
-ParaBrInst::ParaBrInst(const ParaBrInst &BI) :
- TerminatorInst(Instruction::ParaBr) {
+ParaBrInst::ParaBrInst(const ParaBrInst &Pbr) :
+ TerminatorInst(PointerType::get(Type::SByteTy), Instruction::ParaBr)
+{
Operands.reserve(2);
- assert(BI.Operands.size() == 2 && "PBR can have only 2 operands!");
- Operands.push_back(Use(BI.Operands[0], this));
- Operands.push_back(Use(BI.Operands[1], this));
+ assert(Pbr.Operands.size() == 2 && "PBR can have only 2 operands!");
+ Operands.push_back(Use(Pbr.Operands[0], this));
+ Operands.push_back(Use(Pbr.Operands[1], this));
}
ParaBrInst::ParaBrInst(BasicBlock *one, BasicBlock *two) :
- TerminatorInst(Instruction::ParaBr) {
+ TerminatorInst(PointerType::get(Type::SByteTy), Instruction::ParaBr)
+{
Operands.reserve(2);
Operands.push_back(Use(one, this));
Operands.push_back(Use(two, this));
}
-
-// FIXME: implement copy constructors...?
-
More information about the llvm-commits
mailing list