diff options
author | Patrik Hagglund <patrik.h.hagglund@ericsson.com> | 2012-12-14 09:05:13 +0000 |
---|---|---|
committer | Patrik Hagglund <patrik.h.hagglund@ericsson.com> | 2012-12-14 09:05:13 +0000 |
commit | 702474dbb2d4fbaf7b93bcccd71b7b80a8ec2817 (patch) | |
tree | 8ae39c158640afdbd54b13d4b1d447e8ab55a56b /include/llvm/Target | |
parent | 31bc9e00d1025186484473ad7e566fbeb7c90a8a (diff) | |
download | external_llvm-702474dbb2d4fbaf7b93bcccd71b7b80a8ec2817.zip external_llvm-702474dbb2d4fbaf7b93bcccd71b7b80a8ec2817.tar.gz external_llvm-702474dbb2d4fbaf7b93bcccd71b7b80a8ec2817.tar.bz2 |
Change TargetLowering::getLoadExtAction to take an MVT, instead of
EVT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170183 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 77d1a03..debf296 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -432,17 +432,17 @@ public: /// either it is legal, needs to be promoted to a larger size, needs to be /// expanded to some other code sequence, or the target has a custom expander /// for it. - LegalizeAction getLoadExtAction(unsigned ExtType, EVT VT) const { - assert(ExtType < ISD::LAST_LOADEXT_TYPE && - VT.getSimpleVT() < MVT::LAST_VALUETYPE && + LegalizeAction getLoadExtAction(unsigned ExtType, MVT VT) const { + assert(ExtType < ISD::LAST_LOADEXT_TYPE && VT < MVT::LAST_VALUETYPE && "Table isn't big enough!"); - return (LegalizeAction)LoadExtActions[VT.getSimpleVT().SimpleTy][ExtType]; + return (LegalizeAction)LoadExtActions[VT.SimpleTy][ExtType]; } /// isLoadExtLegal - Return true if the specified load with extension is legal /// on this target. bool isLoadExtLegal(unsigned ExtType, EVT VT) const { - return VT.isSimple() && getLoadExtAction(ExtType, VT) == Legal; + return VT.isSimple() && + getLoadExtAction(ExtType, VT.getSimpleVT()) == Legal; } /// getTruncStoreAction - Return how this store with truncation should be |