diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-03-01 00:51:13 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-03-01 00:51:13 +0000 |
commit | be85e89ec4724207ec4690462649ef96dd2e095d (patch) | |
tree | 8c56c4e0af7c3f5d1bb6bf8926437c0a64282e4a /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 2a78abd411b5cc1ec704d9980999f0288388721c (diff) | |
download | bcm5719-llvm-be85e89ec4724207ec4690462649ef96dd2e095d.tar.gz bcm5719-llvm-be85e89ec4724207ec4690462649ef96dd2e095d.zip |
- Added VConstant as an abstract version of ConstantVec.
- All abstrct vector nodes must have # of elements and element type as their
first two operands.
llvm-svn: 26432
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index af771946511..1800a596580 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1400,10 +1400,10 @@ SDOperand SelectionDAG::getVecLoad(unsigned Count, MVT::ValueType EVT, if (N) return SDOperand(N, 0); std::vector<SDOperand> Ops; Ops.reserve(5); - Ops.push_back(Chain); - Ops.push_back(Ptr); Ops.push_back(getConstant(Count, MVT::i32)); Ops.push_back(getValueType(EVT)); + Ops.push_back(Chain); + Ops.push_back(Ptr); Ops.push_back(SV); std::vector<MVT::ValueType> VTs; VTs.reserve(2); @@ -2557,26 +2557,33 @@ const char *SDNode::getOperationName(const SelectionDAG *G) const { case ISD::PCMARKER: return "PCMarker"; case ISD::READCYCLECOUNTER: return "ReadCycleCounter"; case ISD::SRCVALUE: return "SrcValue"; - case ISD::VALUETYPE: return "ValueType"; - case ISD::STRING: return "String"; case ISD::EntryToken: return "EntryToken"; case ISD::TokenFactor: return "TokenFactor"; case ISD::AssertSext: return "AssertSext"; case ISD::AssertZext: return "AssertZext"; + + case ISD::STRING: return "String"; + case ISD::BasicBlock: return "BasicBlock"; + case ISD::VALUETYPE: return "ValueType"; + case ISD::Register: return "Register"; + case ISD::Constant: return "Constant"; - case ISD::TargetConstant: return "TargetConstant"; case ISD::ConstantFP: return "ConstantFP"; - case ISD::ConstantVec: return "ConstantVec"; case ISD::GlobalAddress: return "GlobalAddress"; - case ISD::TargetGlobalAddress: return "TargetGlobalAddress"; case ISD::FrameIndex: return "FrameIndex"; - case ISD::TargetFrameIndex: return "TargetFrameIndex"; - case ISD::BasicBlock: return "BasicBlock"; - case ISD::Register: return "Register"; - case ISD::ExternalSymbol: return "ExternalSymbol"; - case ISD::TargetExternalSymbol: return "TargetExternalSymbol"; case ISD::ConstantPool: return "ConstantPool"; + case ISD::ExternalSymbol: return "ExternalSymbol"; + + case ISD::ConstantVec: return "ConstantVec"; + case ISD::TargetConstant: return "TargetConstant"; + case ISD::TargetConstantFP:return "TargetConstantFP"; + case ISD::TargetConstantVec:return "TargetConstantVec"; + case ISD::TargetGlobalAddress: return "TargetGlobalAddress"; + case ISD::TargetFrameIndex: return "TargetFrameIndex"; case ISD::TargetConstantPool: return "TargetConstantPool"; + case ISD::TargetExternalSymbol: return "TargetExternalSymbol"; + case ISD::VConstant: return "VConstant"; + case ISD::CopyToReg: return "CopyToReg"; case ISD::CopyFromReg: return "CopyFromReg"; case ISD::UNDEF: return "undef"; |