[llvm-commits] [llvm] r49716 - in /llvm/branches/ggreif/use-diet: include/llvm/User.h lib/Bitcode/Reader/BitcodeReader.cpp lib/VMCore/Instructions.cpp
Gabor Greif
ggreif at gmail.com
Tue Apr 15 01:37:20 PDT 2008
Author: ggreif
Date: Tue Apr 15 03:37:20 2008
New Revision: 49716
URL: http://llvm.org/viewvc/llvm-project?rev=49716&view=rev
Log:
rename allocHangoffUses -> allocHungoffUses
Modified:
llvm/branches/ggreif/use-diet/include/llvm/User.h
llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/branches/ggreif/use-diet/lib/VMCore/Instructions.cpp
Modified: llvm/branches/ggreif/use-diet/include/llvm/User.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/include/llvm/User.h?rev=49716&r1=49715&r2=49716&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/include/llvm/User.h (original)
+++ llvm/branches/ggreif/use-diet/include/llvm/User.h Tue Apr 15 03:37:20 2008
@@ -256,7 +256,7 @@
template <unsigned Idx> const Use &Op() const {
return OperandTraits<User>::op_begin(const_cast<User*>(this))[Idx];
}
- inline Use *allocHangoffUses(unsigned) const;
+ inline Use *allocHungoffUses(unsigned) const;
void dropHungoffUses(Use *U) {
Use::zap(U, U->getImpliedUser(), true);
}
@@ -319,12 +319,8 @@
inline unsigned OperandTraits<User>::operands(const User *U) {
return U->getNumOperands();
}
- /*
- static inline void *allocate(unsigned);
-};
- */
-Use *User::allocHangoffUses(unsigned N) const {
+Use *User::allocHungoffUses(unsigned N) const {
Use *Begin = static_cast<Use*>(::operator new(sizeof(Use) * N + sizeof this));
Use *End = Begin + N;
(*(User**)End) = (User*)(ptrdiff_t(this) | 1);
Modified: llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp?rev=49716&r1=49715&r2=49716&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp Tue Apr 15 03:37:20 2008
@@ -154,7 +154,7 @@
if (Desired > Capacity)
{
- Use *New = allocHangoffUses(Desired);
+ Use *New = allocHungoffUses(Desired);
for (int i(getNumOperands() - 1); i >= 0; --i)
New[i] = getOperand(i);
Use *Old = OperandList;
Modified: llvm/branches/ggreif/use-diet/lib/VMCore/Instructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/lib/VMCore/Instructions.cpp?rev=49716&r1=49715&r2=49716&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/lib/VMCore/Instructions.cpp (original)
+++ llvm/branches/ggreif/use-diet/lib/VMCore/Instructions.cpp Tue Apr 15 03:37:20 2008
@@ -114,7 +114,7 @@
PHINode::PHINode(const PHINode &PN)
: Instruction(PN.getType(), Instruction::PHI,
- allocHangoffUses(PN.getNumOperands()), PN.getNumOperands()),
+ allocHungoffUses(PN.getNumOperands()), PN.getNumOperands()),
ReservedSpace(PN.getNumOperands()) {
Use *OL = OperandList;
for (unsigned i = 0, e = PN.getNumOperands(); i != e; i+=2) {
@@ -181,7 +181,7 @@
ReservedSpace = NumOps;
Use *OldOps = OperandList;
- Use *NewOps = allocHangoffUses(NumOps);
+ Use *NewOps = allocHungoffUses(NumOps);
for (unsigned i = 0, e = getNumOperands(); i != e; ++i) {
NewOps[i].init(OldOps[i], this);
}
@@ -2632,7 +2632,7 @@
assert(Value && Default);
ReservedSpace = 2+NumCases*2;
NumOperands = 2;
- OperandList = allocHangoffUses(ReservedSpace);
+ OperandList = allocHungoffUses(ReservedSpace);
OperandList[0].init(Value, this);
OperandList[1].init(Default, this);
@@ -2660,7 +2660,7 @@
SwitchInst::SwitchInst(const SwitchInst &SI)
: TerminatorInst(Type::VoidTy, Instruction::Switch,
- allocHangoffUses(SI.getNumOperands()), SI.getNumOperands()) {
+ allocHungoffUses(SI.getNumOperands()), SI.getNumOperands()) {
Use *OL = OperandList, *InOL = SI.OperandList;
for (unsigned i = 0, E = SI.getNumOperands(); i != E; i+=2) {
OL[i].init(InOL[i], this);
@@ -2733,7 +2733,7 @@
}
ReservedSpace = NumOps;
- Use *NewOps = allocHangoffUses(NumOps);
+ Use *NewOps = allocHungoffUses(NumOps);
Use *OldOps = OperandList;
for (unsigned i = 0, e = getNumOperands(); i != e; ++i) {
NewOps[i].init(OldOps[i], this);
More information about the llvm-commits
mailing list