[llvm-commits] [regalloc_linearscan] CVS: llvm/lib/CodeGen/Passes.cpp

Alkis Evlogimenos alkis at cs.uiuc.edu
Thu Oct 2 12:18:09 PDT 2003


Changes in directory llvm/lib/CodeGen:

Passes.cpp updated: 1.1 -> 1.1.2.1

---
Log message:

Merge-in from main


---
Diffs of the changes:

Index: llvm/lib/CodeGen/Passes.cpp
diff -u llvm/lib/CodeGen/Passes.cpp:1.1 llvm/lib/CodeGen/Passes.cpp:1.1.2.1
--- llvm/lib/CodeGen/Passes.cpp:1.1	Thu Oct  2 11:57:49 2003
+++ llvm/lib/CodeGen/Passes.cpp	Thu Oct  2 12:17:02 2003
@@ -9,7 +9,7 @@
 #include "Support/CommandLine.h"
 
 namespace {
-  enum RegAllocName { simple, local };
+  enum RegAllocName { simple, local, linearscan };
 
   cl::opt<RegAllocName>
   RegAlloc("regalloc",
@@ -17,6 +17,7 @@
            cl::Prefix,
            cl::values(clEnumVal(simple, "  simple register allocator"),
                       clEnumVal(local,  "  local register allocator"),
+                      clEnumVal(local,  "  linear-scan global register allocator"),
                       0),
            cl::init(local));
 }
@@ -28,6 +29,8 @@
     return createSimpleRegisterAllocator();
   case local:
     return createLocalRegisterAllocator();
+  case linearscan:
+    return createLinearScanRegisterAllocator();
   default:
     assert(0 && "no register allocator selected");
     return 0; // not reached





More information about the llvm-commits mailing list