summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-08-17 00:46:57 +0000
committerEric Christopher <echristo@apple.com>2010-08-17 00:46:57 +0000
commit663f49900d44c9fa5e81fe2f129798ab0d19d6de (patch)
tree60320e3923c4348ed53857d45d6cad015a7a31c1 /llvm/lib
parent2c8bd47a6a7806004dc025fcbd3c2a6422129fe4 (diff)
downloadbcm5719-llvm-663f49900d44c9fa5e81fe2f129798ab0d19d6de.tar.gz
bcm5719-llvm-663f49900d44c9fa5e81fe2f129798ab0d19d6de.zip
Make arm fast-isel possible to enable via command line.
llvm-svn: 111219
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp
index aad037a78a2..3679b59e328 100644
--- a/llvm/lib/Target/ARM/ARMFastISel.cpp
+++ b/llvm/lib/Target/ARM/ARMFastISel.cpp
@@ -29,11 +29,17 @@
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/Support/CallSite.h"
+#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/GetElementPtrTypeIterator.h"
#include "llvm/Target/TargetOptions.h"
using namespace llvm;
+static cl::opt<bool>
+EnableARMFastISel("arm-fast-isel",
+ cl::desc("Turn on experimental ARM fast-isel support"),
+ cl::init(false), cl::Hidden);
+
namespace {
class ARMFastISel : public FastISel {
@@ -66,7 +72,7 @@ bool ARMFastISel::TargetSelectInstruction(const Instruction *I) {
namespace llvm {
llvm::FastISel *ARM::createFastISel(FunctionLoweringInfo &funcInfo) {
- // Turn it off for now. It's not quite ready.
+ if (EnableARMFastISel) return new ARMFastISel(funcInfo);
return 0;
}
}
OpenPOWER on IntegriCloud