From: Brian Gaeke Date: Tue, 15 Jun 2004 21:09:46 +0000 (+0000) Subject: Fix thinko in visitor... ShiftInsts should currently be delegated X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=d6a10537457cea6f8fabc0bd7a3cd89d5ab593ae;p=oota-llvm.git Fix thinko in visitor... ShiftInsts should currently be delegated to visitBinaryOperator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14182 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Sparc/InstSelectSimple.cpp b/lib/Target/Sparc/InstSelectSimple.cpp index 398198ff001..fac772b65cf 100644 --- a/lib/Target/Sparc/InstSelectSimple.cpp +++ b/lib/Target/Sparc/InstSelectSimple.cpp @@ -66,7 +66,7 @@ namespace { } void visitBinaryOperator(Instruction &I); - void visitShiftInstruction(Instruction &I) { visitBinaryOperator(I); } + void visitShiftInst (ShiftInst &SI) { visitBinaryOperator (SI); } void visitSetCondInst(Instruction &I); void visitCallInst(CallInst &I); void visitReturnInst(ReturnInst &I); @@ -594,6 +594,7 @@ void V8ISel::visitGetElementPtrInst (GetElementPtrInst &I) { I.op_begin ()+1, I.op_end (), outputReg); } + void V8ISel::visitBinaryOperator (Instruction &I) { unsigned DestReg = getReg (I); unsigned Op0Reg = getReg (I.getOperand (0)); diff --git a/lib/Target/Sparc/SparcV8ISelSimple.cpp b/lib/Target/Sparc/SparcV8ISelSimple.cpp index 398198ff001..fac772b65cf 100644 --- a/lib/Target/Sparc/SparcV8ISelSimple.cpp +++ b/lib/Target/Sparc/SparcV8ISelSimple.cpp @@ -66,7 +66,7 @@ namespace { } void visitBinaryOperator(Instruction &I); - void visitShiftInstruction(Instruction &I) { visitBinaryOperator(I); } + void visitShiftInst (ShiftInst &SI) { visitBinaryOperator (SI); } void visitSetCondInst(Instruction &I); void visitCallInst(CallInst &I); void visitReturnInst(ReturnInst &I); @@ -594,6 +594,7 @@ void V8ISel::visitGetElementPtrInst (GetElementPtrInst &I) { I.op_begin ()+1, I.op_end (), outputReg); } + void V8ISel::visitBinaryOperator (Instruction &I) { unsigned DestReg = getReg (I); unsigned Op0Reg = getReg (I.getOperand (0)); diff --git a/lib/Target/SparcV8/InstSelectSimple.cpp b/lib/Target/SparcV8/InstSelectSimple.cpp index 398198ff001..fac772b65cf 100644 --- a/lib/Target/SparcV8/InstSelectSimple.cpp +++ b/lib/Target/SparcV8/InstSelectSimple.cpp @@ -66,7 +66,7 @@ namespace { } void visitBinaryOperator(Instruction &I); - void visitShiftInstruction(Instruction &I) { visitBinaryOperator(I); } + void visitShiftInst (ShiftInst &SI) { visitBinaryOperator (SI); } void visitSetCondInst(Instruction &I); void visitCallInst(CallInst &I); void visitReturnInst(ReturnInst &I); @@ -594,6 +594,7 @@ void V8ISel::visitGetElementPtrInst (GetElementPtrInst &I) { I.op_begin ()+1, I.op_end (), outputReg); } + void V8ISel::visitBinaryOperator (Instruction &I) { unsigned DestReg = getReg (I); unsigned Op0Reg = getReg (I.getOperand (0)); diff --git a/lib/Target/SparcV8/SparcV8ISelSimple.cpp b/lib/Target/SparcV8/SparcV8ISelSimple.cpp index 398198ff001..fac772b65cf 100644 --- a/lib/Target/SparcV8/SparcV8ISelSimple.cpp +++ b/lib/Target/SparcV8/SparcV8ISelSimple.cpp @@ -66,7 +66,7 @@ namespace { } void visitBinaryOperator(Instruction &I); - void visitShiftInstruction(Instruction &I) { visitBinaryOperator(I); } + void visitShiftInst (ShiftInst &SI) { visitBinaryOperator (SI); } void visitSetCondInst(Instruction &I); void visitCallInst(CallInst &I); void visitReturnInst(ReturnInst &I); @@ -594,6 +594,7 @@ void V8ISel::visitGetElementPtrInst (GetElementPtrInst &I) { I.op_begin ()+1, I.op_end (), outputReg); } + void V8ISel::visitBinaryOperator (Instruction &I) { unsigned DestReg = getReg (I); unsigned Op0Reg = getReg (I.getOperand (0));