[Hexagon] Renaming HexagonJT to JT and adding CP for constantpool.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231824 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Colin LeMahieu 2015-03-10 19:29:53 +00:00
parent e753b17efe
commit b2a2499a9e
3 changed files with 9 additions and 6 deletions

View File

@ -764,7 +764,7 @@ LowerBR_JT(SDValue Op, SelectionDAG &DAG) const
BlockAddress::get(const_cast<BasicBlock *>(MBB->getBasicBlock())); BlockAddress::get(const_cast<BasicBlock *>(MBB->getBasicBlock()));
} }
SDValue JumpTableBase = DAG.getNode(HexagonISD::WrapperJT, dl, SDValue JumpTableBase = DAG.getNode(HexagonISD::JT, dl,
getPointerTy(), TargetJT); getPointerTy(), TargetJT);
SDValue ShiftIndex = DAG.getNode(ISD::SHL, dl, MVT::i32, Index, SDValue ShiftIndex = DAG.getNode(ISD::SHL, dl, MVT::i32, Index,
DAG.getConstant(2, MVT::i32)); DAG.getConstant(2, MVT::i32));

View File

@ -59,8 +59,8 @@ bool isPositiveHalfWord(SDNode *N);
POPCOUNT, POPCOUNT,
COMBINE, COMBINE,
PACKHL, PACKHL,
WrapperJT, JT,
WrapperCP, CP,
WrapperCombineII, WrapperCombineII,
WrapperCombineRR, WrapperCombineRR,
WrapperCombineRI_V4, WrapperCombineRI_V4,

View File

@ -5129,10 +5129,13 @@ let AddedComplexity = 100 in
def: Pat<(i32 (sext_inreg (Hexagon_ARGEXTEND (i32 IntRegs:$src1)), i16)), def: Pat<(i32 (sext_inreg (Hexagon_ARGEXTEND (i32 IntRegs:$src1)), i16)),
(i32 IntRegs:$src1)>; (i32 IntRegs:$src1)>;
def HexagonWrapperJT: SDNode<"HexagonISD::WrapperJT", SDTIntUnaryOp>; def HexagonJT: SDNode<"HexagonISD::JT", SDTIntUnaryOp>;
def HexagonCP: SDNode<"HexagonISD::CP", SDTIntUnaryOp>;
def : Pat<(HexagonWrapperJT tjumptable:$dst), def: Pat<(HexagonJT tjumptable:$dst),
(i32 (CONST32_set_jt tjumptable:$dst))>; (CONST32_set_jt tjumptable:$dst)>;
def: Pat<(HexagonCP tconstpool :$dst),
(CONST32_set_jt tconstpool:$dst)>;
// XTYPE/SHIFT // XTYPE/SHIFT
// //