mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-09 01:38:03 +00:00
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
This commit is contained in:
parent
d1cd328560
commit
d6a1053745
@ -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));
|
||||
|
@ -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));
|
||||
|
@ -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));
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user