[llvm-commits] [llvm] r49867 - in /llvm/branches/ggreif/use-diet: include/llvm/Use.h lib/VMCore/Use.cpp
Gabor Greif
ggreif at gmail.com
Thu Apr 17 13:51:25 PDT 2008
Author: ggreif
Date: Thu Apr 17 15:51:13 2008
New Revision: 49867
URL: http://llvm.org/viewvc/llvm-project?rev=49867&view=rev
Log:
now the tags are seriously on the Prev member
Modified:
llvm/branches/ggreif/use-diet/include/llvm/Use.h
llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp
Modified: llvm/branches/ggreif/use-diet/include/llvm/Use.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/include/llvm/Use.h?rev=49867&r1=49866&r2=49867&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/include/llvm/Use.h (original)
+++ llvm/branches/ggreif/use-diet/include/llvm/Use.h Thu Apr 17 15:51:13 2008
@@ -85,10 +85,10 @@
/// that is valid to do with this use is to call the "init" method.
inline Use() {}
- enum ValuePtrTag { zeroDigitTag = noTag
- , oneDigitTag = tagOne
- , stopTag = tagTwo
- , fullStopTag = tagThree };
+ enum PrevPtrTag { zeroDigitTag = noTag
+ , oneDigitTag = tagOne
+ , stopTag = tagTwo
+ , fullStopTag = tagThree };
public:
Modified: llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp?rev=49867&r1=49866&r2=49867&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp (original)
+++ llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp Thu Apr 17 15:51:13 2008
@@ -11,7 +11,7 @@
//
//===----------------------------------------------------------------------===//
-#include "llvm/Value.h"
+//#include "llvm/Value.h"
#include "llvm/User.h"
namespace llvm {
@@ -26,7 +26,7 @@
const Use *Current = this;
while (true) {
- unsigned Tag = extractTag<ValuePtrTag, fullStopTag>(Current->Val);
+ unsigned Tag = extractTag<PrevPtrTag, fullStopTag>(Current->Prev);
switch (Tag)
{
case zeroDigitTag:
@@ -58,11 +58,11 @@
{
--Stop;
if (!Count) {
- Stop->Val = reinterpret_cast<Value*>(Done == 0 ? fullStopTag : stopTag);
+ Stop->Prev = reinterpret_cast<Use**>(Done == 0 ? fullStopTag : stopTag);
++Done;
Count = Done;
} else {
- Stop->Val = reinterpret_cast<Value*>(Count & 1);
+ Stop->Prev = reinterpret_cast<Use**>(Count & 1);
Count >>= 1;
++Done;
}
More information about the llvm-commits
mailing list