mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
[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:
parent
e753b17efe
commit
b2a2499a9e
@ -764,7 +764,7 @@ LowerBR_JT(SDValue Op, SelectionDAG &DAG) const
|
||||
BlockAddress::get(const_cast<BasicBlock *>(MBB->getBasicBlock()));
|
||||
}
|
||||
|
||||
SDValue JumpTableBase = DAG.getNode(HexagonISD::WrapperJT, dl,
|
||||
SDValue JumpTableBase = DAG.getNode(HexagonISD::JT, dl,
|
||||
getPointerTy(), TargetJT);
|
||||
SDValue ShiftIndex = DAG.getNode(ISD::SHL, dl, MVT::i32, Index,
|
||||
DAG.getConstant(2, MVT::i32));
|
||||
|
@ -59,8 +59,8 @@ bool isPositiveHalfWord(SDNode *N);
|
||||
POPCOUNT,
|
||||
COMBINE,
|
||||
PACKHL,
|
||||
WrapperJT,
|
||||
WrapperCP,
|
||||
JT,
|
||||
CP,
|
||||
WrapperCombineII,
|
||||
WrapperCombineRR,
|
||||
WrapperCombineRI_V4,
|
||||
|
@ -5129,10 +5129,13 @@ let AddedComplexity = 100 in
|
||||
def: Pat<(i32 (sext_inreg (Hexagon_ARGEXTEND (i32 IntRegs:$src1)), i16)),
|
||||
(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),
|
||||
(i32 (CONST32_set_jt tjumptable:$dst))>;
|
||||
def: Pat<(HexagonJT tjumptable:$dst),
|
||||
(CONST32_set_jt tjumptable:$dst)>;
|
||||
def: Pat<(HexagonCP tconstpool :$dst),
|
||||
(CONST32_set_jt tconstpool:$dst)>;
|
||||
|
||||
// XTYPE/SHIFT
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user