Added a new SDNode type: BR_JT for jumptable branch.
authorEvan Cheng <evan.cheng@apple.com>
Mon, 30 Oct 2006 07:59:36 +0000 (07:59 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 30 Oct 2006 07:59:36 +0000 (07:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31292 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGNodes.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index cd09777be31574c6de0b4793bbc73ee44ad83bc8..c3e6dee23288544cb804e11288916e882b9c7881 100644 (file)
@@ -406,6 +406,10 @@ namespace ISD {
     // is the value to branch to, which must be of the same type as the target's
     // pointer type.
     BRIND,
+
+    // BR_JT - Jumptable branch. The first operand is the chain, the second
+    // is the jumptable index, the last one is the jumptable entry index.
+    BR_JT,
     
     // BRCOND - Conditional branch.  The first operand is the chain,
     // the second is the condition, the third is the block to branch
index 4b2f28396b209da50a0d1bdf5f654301cc3aaca0..3d8441c51240dde8a6d2f34935badac93744895a 100644 (file)
@@ -2734,6 +2734,7 @@ const char *SDNode::getOperationName(const SelectionDAG *G) const {
     // Control flow instructions
   case ISD::BR:      return "br";
   case ISD::BRIND:   return "brind";
+  case ISD::BR_JT:   return "br_jt";
   case ISD::BRCOND:  return "brcond";
   case ISD::BR_CC:   return "br_cc";
   case ISD::RET:     return "ret";