mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Add a hook to find out how the target handles shift amounts that are out of
range. Either they are undefined (the default), they mask the shift amount to the size of the register (X86, Alpha, etc), or they extend the shift (PPC). This defaults to undefined, which is conservatively correct. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19677 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6147a7aa17
commit
d6e496732b
@ -25,6 +25,7 @@ TargetLowering::TargetLowering(TargetMachine &tm)
|
||||
|
||||
IsLittleEndian = TD.isLittleEndian();
|
||||
ShiftAmountTy = SetCCResultTy = PointerTy = getValueType(TD.getIntPtrType());
|
||||
ShiftAmtHandling = Undefined;
|
||||
memset(RegClassForVT, 0,MVT::LAST_VALUETYPE*sizeof(TargetRegisterClass*));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user