mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-16 11:24:39 +00:00
Switch XCore over to using inline jump table entries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98256 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -324,6 +324,10 @@ LowerConstantPool(SDValue Op, SelectionDAG &DAG)
|
|||||||
return DAG.getNode(XCoreISD::CPRelativeWrapper, dl, MVT::i32, Res);
|
return DAG.getNode(XCoreISD::CPRelativeWrapper, dl, MVT::i32, Res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsigned XCoreTargetLowering::getJumpTableEncoding() const {
|
||||||
|
return MachineJumpTableInfo::EK_Inline;
|
||||||
|
}
|
||||||
|
|
||||||
SDValue XCoreTargetLowering::
|
SDValue XCoreTargetLowering::
|
||||||
LowerBR_JT(SDValue Op, SelectionDAG &DAG)
|
LowerBR_JT(SDValue Op, SelectionDAG &DAG)
|
||||||
{
|
{
|
||||||
|
@@ -80,6 +80,8 @@ namespace llvm {
|
|||||||
|
|
||||||
explicit XCoreTargetLowering(XCoreTargetMachine &TM);
|
explicit XCoreTargetLowering(XCoreTargetMachine &TM);
|
||||||
|
|
||||||
|
virtual unsigned getJumpTableEncoding() const;
|
||||||
|
|
||||||
/// LowerOperation - Provide custom lowering hooks for some operations.
|
/// LowerOperation - Provide custom lowering hooks for some operations.
|
||||||
virtual SDValue LowerOperation(SDValue Op, SelectionDAG &DAG);
|
virtual SDValue LowerOperation(SDValue Op, SelectionDAG &DAG);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user