aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Target/TargetOptions.h4
-rw-r--r--lib/Target/TargetMachine.cpp6
2 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetOptions.h b/include/llvm/Target/TargetOptions.h
index 76f2d55..0d2911e 100644
--- a/include/llvm/Target/TargetOptions.h
+++ b/include/llvm/Target/TargetOptions.h
@@ -73,6 +73,10 @@ namespace llvm {
/// ExceptionHandling - This flag indicates that exception information should
/// be emitted.
extern bool ExceptionHandling;
+
+ /// NewCCModeling - This temporary flag indicates whether to use the new
+ /// condition code modeling scheme.
+ extern bool NewCCModeling;
} // End llvm namespace
diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp
index 6c00a3f..3c00428 100644
--- a/lib/Target/TargetMachine.cpp
+++ b/lib/Target/TargetMachine.cpp
@@ -31,6 +31,7 @@ namespace llvm {
bool UseSoftFloat;
bool NoZerosInBSS;
bool ExceptionHandling;
+ bool NewCCModeling;
Reloc::Model RelocationModel;
CodeModel::Model CMModel;
}
@@ -116,6 +117,11 @@ namespace {
clEnumValN(CodeModel::Large, "large",
" Large code model"),
clEnumValEnd));
+ cl::opt<bool, true>
+ EnableNewCCModeling("new-cc-modeling-scheme",
+ cl::desc("New CC modeling scheme."),
+ cl::location(NewCCModeling),
+ cl::init(false));
}
//---------------------------------------------------------------------------