diff options
author | Chris Lattner <sabre@nondot.org> | 2010-08-25 23:05:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-08-25 23:05:45 +0000 |
commit | cd11e9db35cf4817869ea46ba736f133a9700b28 (patch) | |
tree | c8ec1f3dc744b07b6df12ab89bd2e8e5ec75feb1 /include | |
parent | aafe626c7fa9f99150cccd27d0151a2cf7c8c00b (diff) | |
download | external_llvm-cd11e9db35cf4817869ea46ba736f133a9700b28.zip external_llvm-cd11e9db35cf4817869ea46ba736f133a9700b28.tar.gz external_llvm-cd11e9db35cf4817869ea46ba736f133a9700b28.tar.bz2 |
add a specialization for the MVT form of getTypeAction, since it is
trivial.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 5e95e13..29de994 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/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 |