summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-11-07 19:46:27 +0000
committerChris Lattner <sabre@nondot.org>2001-11-07 19:46:27 +0000
commit31e9e4d21980f98add7be51128080bbcc7947071 (patch)
treec40b6aa9cf1628f58c2dd123e032fdba82839291 /llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
parent75586e2acee98e2b15c22c7efba5fe4f1ec39619 (diff)
downloadbcm5719-llvm-31e9e4d21980f98add7be51128080bbcc7947071.tar.gz
bcm5719-llvm-31e9e4d21980f98add7be51128080bbcc7947071.zip
* Switch to operation on pointers with PointerTy more consistently
* Fix misspeling * Catch SIGFPE for traps * info XXX now prints the raw contents of the GenericValue * Switch to calloc instead of malloc (temporarily I hope) to bandaid Olden benchmarks * Implement binary And & Or * Convert expressions like this: PointerTy SrcPtr = getOperandValue(I->getPtrOperand(), SF).PointerVal; to: GenericValue SRC = getOperandValue(I->getPtrOperand(), SF); PointerTy SrcPtr = SRC.PointerVal; because the prior way confuses purify. * Taint the initial values of the value planes * Handling 'print bb4' in the interpreter without crashing * Print nicer stack frames with concise return type * printf doesn't suck nearly as badly as it used to llvm-svn: 1177
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Interpreter.h')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Interpreter.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
index 791419d4ad9..eba8ea9c327 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
+++ b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
@@ -20,6 +20,8 @@ class ReturnInst;
class BranchInst;
class AllocationInst;
+typedef uint64_t PointerTy;
+
union GenericValue {
bool BoolVal;
unsigned char UByteVal;
@@ -32,7 +34,7 @@ union GenericValue {
int64_t LongVal;
double DoubleVal;
float FloatVal;
- uint64_t PointerVal;
+ PointerTy PointerVal;
};
typedef vector<GenericValue> ValuePlaneTy;
OpenPOWER on IntegriCloud