PCMarker support for DAG and Alpha


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20965 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp
index 3a86a39..d7df75b 100644
--- a/lib/Target/Alpha/AlphaISelPattern.cpp
+++ b/lib/Target/Alpha/AlphaISelPattern.cpp
@@ -27,10 +27,20 @@
 #include "llvm/Support/MathExtras.h"
 #include "llvm/ADT/Statistic.h"
 #include "llvm/Support/Debug.h"
+#include "llvm/Support/CommandLine.h"
 #include <set>
 #include <algorithm>
 using namespace llvm;
 
+namespace llvm {
+  cl::opt<bool> EnableAlphaIDIV("enable-alpha-intfpdiv", 
+                             cl::desc("Use the FP div instruction for integer div when possible"), 
+                             cl::Hidden);
+  cl::opt<bool> EnableAlpha("enable-alpha-ftoi", 
+                             cl::desc("Enablue use of ftoi* and itof* instructions (ev6 and higher)"), 
+                             cl::Hidden);
+}
+
 //===----------------------------------------------------------------------===//
 //  AlphaTargetLowering - Alpha Implementation of the TargetLowering interface
 namespace {
@@ -1697,6 +1707,11 @@
       Alpha::ADJUSTSTACKUP;
     BuildMI(BB, Opc, 1).addImm(Tmp1);
     return;
+
+  case ISD::PCMARKER:
+    Select(N.getOperand(0)); //Chain
+    BuildMI(BB, Alpha::PCLABEL, 2).addImm( cast<ConstantSDNode>(N.getOperand(1))->getValue());
+    return;
   }
   assert(0 && "Should not be reached!");
 }