summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-08-25 23:05:45 +0000
committerChris Lattner <sabre@nondot.org>2010-08-25 23:05:45 +0000
commit2e8466c530ef9d8028e81921bbdabf319ad72b5f (patch)
tree5aed2ccfdcecfe88fe7244b891bacf4a385e06e2
parent8df99b523eec53b3e9900fba93ff1e808581a11f (diff)
downloadbcm5719-llvm-2e8466c530ef9d8028e81921bbdabf319ad72b5f.tar.gz
bcm5719-llvm-2e8466c530ef9d8028e81921bbdabf319ad72b5f.zip
add a specialization for the MVT form of getTypeAction, since it is
trivial. llvm-svn: 112105
-rw-r--r--llvm/include/llvm/Target/TargetLowering.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/include/llvm/Target/TargetLowering.h b/llvm/include/llvm/Target/TargetLowering.h
index 5e95e137a93..29de994a21c 100644
--- a/llvm/include/llvm/Target/TargetLowering.h
+++ b/llvm/include/llvm/Target/TargetLowering.h
@@ -261,7 +261,6 @@ public:
return (LegalizeAction)ValueTypeActions[VT.SimpleTy];
}
-
void setTypeAction(EVT VT, LegalizeAction Action) {
unsigned I = VT.getSimpleVT().SimpleTy;
ValueTypeActions[I] = Action;
@@ -279,7 +278,10 @@ public:
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
OpenPOWER on IntegriCloud