diff options
author | Dan Gohman <gohman@apple.com> | 2008-01-30 00:15:11 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-01-30 00:15:11 +0000 |
commit | b625f2f8960de32bc973092aaee8ac62863006fe (patch) | |
tree | 36b78c2f63db36a86a3b15aaddd4fd421b8d0edb /lib/Target/CellSPU/SPUISelLowering.cpp | |
parent | 0d9e976ad2c5479f3d67f8cb09a5908cfc29985c (diff) | |
download | external_llvm-b625f2f8960de32bc973092aaee8ac62863006fe.zip external_llvm-b625f2f8960de32bc973092aaee8ac62863006fe.tar.gz external_llvm-b625f2f8960de32bc973092aaee8ac62863006fe.tar.bz2 |
Factor the addressing mode and the load/store VT out of LoadSDNode
and StoreSDNode into their common base class LSBaseSDNode. Member
functions getLoadedVT and getStoredVT are replaced with the common
getMemoryVT to simplify code that will handle both loads and stores.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CellSPU/SPUISelLowering.cpp')
-rw-r--r-- | lib/Target/CellSPU/SPUISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CellSPU/SPUISelLowering.cpp b/lib/Target/CellSPU/SPUISelLowering.cpp index 33261a6..c7d7f97 100644 --- a/lib/Target/CellSPU/SPUISelLowering.cpp +++ b/lib/Target/CellSPU/SPUISelLowering.cpp @@ -542,7 +542,7 @@ static SDOperand LowerLOAD(SDOperand Op, SelectionDAG &DAG, const SPUSubtarget *ST) { LoadSDNode *LN = cast<LoadSDNode>(Op); SDOperand the_chain = LN->getChain(); - MVT::ValueType VT = LN->getLoadedVT(); + MVT::ValueType VT = LN->getMemoryVT(); MVT::ValueType OpVT = Op.Val->getValueType(0); ISD::LoadExtType ExtType = LN->getExtensionType(); unsigned alignment = LN->getAlignment(); @@ -652,7 +652,7 @@ LowerSTORE(SDOperand Op, SelectionDAG &DAG, const SPUSubtarget *ST) { StoreSDNode *SN = cast<StoreSDNode>(Op); SDOperand Value = SN->getValue(); MVT::ValueType VT = Value.getValueType(); - MVT::ValueType StVT = (!SN->isTruncatingStore() ? VT : SN->getStoredVT()); + MVT::ValueType StVT = (!SN->isTruncatingStore() ? VT : SN->getMemoryVT()); MVT::ValueType PtrVT = DAG.getTargetLoweringInfo().getPointerTy(); unsigned alignment = SN->getAlignment(); |