forked from OSchip/llvm-project
[Hexagon] Prettify code in HexagonDAGToDAGISel::Select
llvm-svn: 296187
This commit is contained in:
parent
4d3d4ca1b3
commit
be5028aed3
|
@ -932,55 +932,21 @@ void HexagonDAGToDAGISel::SelectBitcast(SDNode *N) {
|
||||||
|
|
||||||
|
|
||||||
void HexagonDAGToDAGISel::Select(SDNode *N) {
|
void HexagonDAGToDAGISel::Select(SDNode *N) {
|
||||||
if (N->isMachineOpcode()) {
|
if (N->isMachineOpcode())
|
||||||
N->setNodeId(-1);
|
return N->setNodeId(-1); // Already selected.
|
||||||
return; // Already selected.
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (N->getOpcode()) {
|
switch (N->getOpcode()) {
|
||||||
case ISD::Constant:
|
case ISD::Constant: return SelectConstant(N);
|
||||||
SelectConstant(N);
|
case ISD::ConstantFP: return SelectConstantFP(N);
|
||||||
return;
|
case ISD::FrameIndex: return SelectFrameIndex(N);
|
||||||
|
case ISD::BITCAST: return SelectBitcast(N);
|
||||||
case ISD::ConstantFP:
|
case ISD::SHL: return SelectSHL(N);
|
||||||
SelectConstantFP(N);
|
case ISD::LOAD: return SelectLoad(N);
|
||||||
return;
|
case ISD::STORE: return SelectStore(N);
|
||||||
|
case ISD::MUL: return SelectMul(N);
|
||||||
case ISD::FrameIndex:
|
case ISD::ZERO_EXTEND: return SelectZeroExtend(N);
|
||||||
SelectFrameIndex(N);
|
case ISD::INTRINSIC_W_CHAIN: return SelectIntrinsicWChain(N);
|
||||||
return;
|
case ISD::INTRINSIC_WO_CHAIN: return SelectIntrinsicWOChain(N);
|
||||||
|
|
||||||
case ISD::BITCAST:
|
|
||||||
SelectBitcast(N);
|
|
||||||
return;
|
|
||||||
|
|
||||||
case ISD::SHL:
|
|
||||||
SelectSHL(N);
|
|
||||||
return;
|
|
||||||
|
|
||||||
case ISD::LOAD:
|
|
||||||
SelectLoad(N);
|
|
||||||
return;
|
|
||||||
|
|
||||||
case ISD::STORE:
|
|
||||||
SelectStore(N);
|
|
||||||
return;
|
|
||||||
|
|
||||||
case ISD::MUL:
|
|
||||||
SelectMul(N);
|
|
||||||
return;
|
|
||||||
|
|
||||||
case ISD::ZERO_EXTEND:
|
|
||||||
SelectZeroExtend(N);
|
|
||||||
return;
|
|
||||||
|
|
||||||
case ISD::INTRINSIC_W_CHAIN:
|
|
||||||
SelectIntrinsicWChain(N);
|
|
||||||
return;
|
|
||||||
|
|
||||||
case ISD::INTRINSIC_WO_CHAIN:
|
|
||||||
SelectIntrinsicWOChain(N);
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SelectCode(N);
|
SelectCode(N);
|
||||||
|
|
Loading…
Reference in New Issue