Switch XCore over to using inline jump table entries.
authorRichard Osborne <richard@xmos.com>
Thu, 11 Mar 2010 14:58:56 +0000 (14:58 +0000)
committerRichard Osborne <richard@xmos.com>
Thu, 11 Mar 2010 14:58:56 +0000 (14:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98256 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/XCore/XCoreISelLowering.cpp
lib/Target/XCore/XCoreISelLowering.h

index 3b3bb6d7dae35b58559f31319a882852ba396208..7cbfe3edc69ef013cd55ba39d7c3d71e40a7653a 100644 (file)
@@ -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)
 {
index f597780d691117c9d67517978dabf86bcbaea7fb..3ccdeec141bbcdc4fb87cc8e970932c7407e3fef 100644 (file)
@@ -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);