[llvm-commits] [llvm] r112105 - /llvm/trunk/include/llvm/Target/TargetLowering.h
Chris Lattner
sabre at nondot.org
Wed Aug 25 16:05:45 PDT 2010
Author: lattner
Date: Wed Aug 25 18:05:45 2010
New Revision: 112105
URL: http://llvm.org/viewvc/llvm-project?rev=112105&view=rev
Log:
add a specialization for the MVT form of getTypeAction, since it is
trivial.
Modified:
llvm/trunk/include/llvm/Target/TargetLowering.h
Modified: llvm/trunk/include/llvm/Target/TargetLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetLowering.h?rev=112105&r1=112104&r2=112105&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetLowering.h (original)
+++ llvm/trunk/include/llvm/Target/TargetLowering.h Wed Aug 25 18:05:45 2010
@@ -261,7 +261,6 @@
return (LegalizeAction)ValueTypeActions[VT.SimpleTy];
}
-
void setTypeAction(EVT VT, LegalizeAction Action) {
unsigned I = VT.getSimpleVT().SimpleTy;
ValueTypeActions[I] = Action;
@@ -279,7 +278,10 @@
LegalizeAction getTypeAction(EVT VT) const {
return ValueTypeActions.getTypeAction(VT);
}
-
+ LegalizeAction getTypeAction(MVT VT) const {
+ return ValueTypeActions.getTypeAction(VT);
+ }
+
/// getTypeToTransformTo - For types supported by the target, this is an
/// identity function. For types that must be promoted to larger types, this
/// returns the larger type to promote to. For integer types that are larger
More information about the llvm-commits
mailing list