forked from OSchip/llvm-project
Switch XCore over to using inline jump table entries.
llvm-svn: 98256
This commit is contained in:
parent
6d3e92dfee
commit
29ffbf123f
|
@ -324,6 +324,10 @@ LowerConstantPool(SDValue Op, SelectionDAG &DAG)
|
|||
return DAG.getNode(XCoreISD::CPRelativeWrapper, dl, MVT::i32, Res);
|
||||
}
|
||||
|
||||
unsigned XCoreTargetLowering::getJumpTableEncoding() const {
|
||||
return MachineJumpTableInfo::EK_Inline;
|
||||
}
|
||||
|
||||
SDValue XCoreTargetLowering::
|
||||
LowerBR_JT(SDValue Op, SelectionDAG &DAG)
|
||||
{
|
||||
|
|
|
@ -80,6 +80,8 @@ namespace llvm {
|
|||
|
||||
explicit XCoreTargetLowering(XCoreTargetMachine &TM);
|
||||
|
||||
virtual unsigned getJumpTableEncoding() const;
|
||||
|
||||
/// LowerOperation - Provide custom lowering hooks for some operations.
|
||||
virtual SDValue LowerOperation(SDValue Op, SelectionDAG &DAG);
|
||||
|
||||
|
|
Loading…
Reference in New Issue