diff options
author | Chris Lattner <sabre@nondot.org> | 2002-08-14 17:45:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-08-14 17:45:39 +0000 |
commit | b3c2af69fea3dc94120fe31f51efa36c3404162d (patch) | |
tree | 4ba1f1302edf1fc1418ec70008e45fdff05ae1e5 /llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | |
parent | 0764967cd74e2973d2ff5e119b8b3bade6b3ccd5 (diff) | |
download | bcm5719-llvm-b3c2af69fea3dc94120fe31f51efa36c3404162d.tar.gz bcm5719-llvm-b3c2af69fea3dc94120fe31f51efa36c3404162d.zip |
Remove support for NOT instruction
llvm-svn: 3313
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp index 9add907131f..7bf276a7606 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -268,34 +268,6 @@ Annotation *GlobalAddress::Create(AnnotationID AID, const Annotable *O, void *){ return new GlobalAddress(Addr, true); // Simply invoke the ctor } - -//===----------------------------------------------------------------------===// -// Unary Instruction Implementations -//===----------------------------------------------------------------------===// - -#define IMPLEMENT_UNARY_OPERATOR(OP, TY) \ - case Type::TY##TyID: Dest.TY##Val = OP Src.TY##Val; break - -static void executeNotInst(UnaryOperator &I, ExecutionContext &SF) { - const Type *Ty = I.getOperand(0)->getType(); - GenericValue Src = getOperandValue(I.getOperand(0), SF); - GenericValue Dest; - switch (Ty->getPrimitiveID()) { - IMPLEMENT_UNARY_OPERATOR(~, UByte); - IMPLEMENT_UNARY_OPERATOR(~, SByte); - IMPLEMENT_UNARY_OPERATOR(~, UShort); - IMPLEMENT_UNARY_OPERATOR(~, Short); - IMPLEMENT_UNARY_OPERATOR(~, UInt); - IMPLEMENT_UNARY_OPERATOR(~, Int); - IMPLEMENT_UNARY_OPERATOR(~, ULong); - IMPLEMENT_UNARY_OPERATOR(~, Long); - IMPLEMENT_UNARY_OPERATOR(~, Pointer); - default: - cout << "Unhandled type for Not instruction: " << Ty << "\n"; - } - SetValue(&I, Dest, SF); -} - //===----------------------------------------------------------------------===// // Binary Instruction Implementations //===----------------------------------------------------------------------===// @@ -1184,7 +1156,6 @@ bool Interpreter::executeInstruction() { executeBinaryInst(cast<BinaryOperator>(I), SF); } else { switch (I.getOpcode()) { - case Instruction::Not: executeNotInst(cast<UnaryOperator>(I),SF); break; // Terminators case Instruction::Ret: executeRetInst (cast<ReturnInst>(I), SF); break; case Instruction::Br: executeBrInst (cast<BranchInst>(I), SF); break; |