[llvm-commits] CVS: llvm/lib/Target/TargetLowering.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Jan 18 19:36:27 PST 2005
Changes in directory llvm/lib/Target:
TargetLowering.cpp updated: 1.6 -> 1.7
---
Log message:
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.
---
Diffs of the changes: (+1 -0)
Index: llvm/lib/Target/TargetLowering.cpp
diff -u llvm/lib/Target/TargetLowering.cpp:1.6 llvm/lib/Target/TargetLowering.cpp:1.7
--- llvm/lib/Target/TargetLowering.cpp:1.6 Sun Jan 16 17:59:48 2005
+++ llvm/lib/Target/TargetLowering.cpp Tue Jan 18 21:36:14 2005
@@ -25,6 +25,7 @@
IsLittleEndian = TD.isLittleEndian();
ShiftAmountTy = SetCCResultTy = PointerTy = getValueType(TD.getIntPtrType());
+ ShiftAmtHandling = Undefined;
memset(RegClassForVT, 0,MVT::LAST_VALUETYPE*sizeof(TargetRegisterClass*));
}
More information about the llvm-commits
mailing list