New temporary option -new-cc-modeling-scheme to test the new cc modeling scheme.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 25 Sep 2007 01:50:04 +0000 (01:50 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 25 Sep 2007 01:50:04 +0000 (01:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42283 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetOptions.h
lib/Target/TargetMachine.cpp

index 76f2d55049dad3c91a3634b1f616edd9f92cae48..0d2911eb1febfefcdce49c4ccd3d43f98a50981a 100644 (file)
@@ -73,6 +73,10 @@ namespace llvm {
   /// ExceptionHandling - This flag indicates that exception information should
   /// be emitted.
   extern bool ExceptionHandling;
   /// 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
 
   
 } // End llvm namespace
 
index 6c00a3f492b9b83c70164032c795856cc3555d5a..3c00428a460d2105b66d6ea547f668d747a865a2 100644 (file)
@@ -31,6 +31,7 @@ namespace llvm {
   bool UseSoftFloat;
   bool NoZerosInBSS;
   bool ExceptionHandling;
   bool UseSoftFloat;
   bool NoZerosInBSS;
   bool ExceptionHandling;
+  bool NewCCModeling;
   Reloc::Model RelocationModel;
   CodeModel::Model CMModel;
 }
   Reloc::Model RelocationModel;
   CodeModel::Model CMModel;
 }
@@ -116,6 +117,11 @@ namespace {
       clEnumValN(CodeModel::Large, "large",
                  "  Large code model"),
       clEnumValEnd));
       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));
 }
 
 //---------------------------------------------------------------------------
 }
 
 //---------------------------------------------------------------------------