aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Alpha/AlphaISelPattern.cpp
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-03-31 21:24:06 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-03-31 21:24:06 +0000
commit95762124a1d781cc0f8cbc4c22e9c5c1358d7ea0 (patch)
treec4fdfe8fa23cb3d7879fb0e05ecd17a47e4d86b4 /lib/Target/Alpha/AlphaISelPattern.cpp
parentbeeaab28a5643e8b17921b35d4b4af32e21562a0 (diff)
PCMarker support for DAG and Alpha
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20965 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaISelPattern.cpp')
-rw-r--r--lib/Target/Alpha/AlphaISelPattern.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp
index 3a86a39f77..d7df75bde1 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 @@ void ISel::Select(SDOperand N) {
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!");
}