aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/CodeGen/RegAllocCommon.h13
-rw-r--r--lib/CodeGen/RegAlloc/RegAllocCommon.h13
-rw-r--r--lib/Target/SparcV9/RegAlloc/RegAllocCommon.h13
3 files changed, 36 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/RegAllocCommon.h b/include/llvm/CodeGen/RegAllocCommon.h
index 5aa66bd..5fa51c0 100644
--- a/include/llvm/CodeGen/RegAllocCommon.h
+++ b/include/llvm/CodeGen/RegAllocCommon.h
@@ -1,10 +1,21 @@
+
+#include "llvm/Support/CommandLine.h"
+
#ifndef REG_ALLOC_COMMON_H
#define REG_ALLOC_COMMON_H
+// THIS IS NOW SPECIFIED VIA A COMMANDLINE ARGUMENT TO LLC
+//
// set DEBUG_RA for printing out debug messages
// if DEBUG_RA is 1 normal output messages
// if DEBUG_RA is 2 extensive debug info for each instr
-#define DEBUG_RA (0)
+enum RegAllocDebugLevel_t {
+ RA_DEBUG_None = 0,
+ RA_DEBUG_Normal = 1,
+ RA_DEBUG_Verbose = 2,
+};
+
+extern cl::Enum<RegAllocDebugLevel_t> DEBUG_RA;
#endif
diff --git a/lib/CodeGen/RegAlloc/RegAllocCommon.h b/lib/CodeGen/RegAlloc/RegAllocCommon.h
index 5aa66bd..5fa51c0 100644
--- a/lib/CodeGen/RegAlloc/RegAllocCommon.h
+++ b/lib/CodeGen/RegAlloc/RegAllocCommon.h
@@ -1,10 +1,21 @@
+
+#include "llvm/Support/CommandLine.h"
+
#ifndef REG_ALLOC_COMMON_H
#define REG_ALLOC_COMMON_H
+// THIS IS NOW SPECIFIED VIA A COMMANDLINE ARGUMENT TO LLC
+//
// set DEBUG_RA for printing out debug messages
// if DEBUG_RA is 1 normal output messages
// if DEBUG_RA is 2 extensive debug info for each instr
-#define DEBUG_RA (0)
+enum RegAllocDebugLevel_t {
+ RA_DEBUG_None = 0,
+ RA_DEBUG_Normal = 1,
+ RA_DEBUG_Verbose = 2,
+};
+
+extern cl::Enum<RegAllocDebugLevel_t> DEBUG_RA;
#endif
diff --git a/lib/Target/SparcV9/RegAlloc/RegAllocCommon.h b/lib/Target/SparcV9/RegAlloc/RegAllocCommon.h
index 5aa66bd..5fa51c0 100644
--- a/lib/Target/SparcV9/RegAlloc/RegAllocCommon.h
+++ b/lib/Target/SparcV9/RegAlloc/RegAllocCommon.h
@@ -1,10 +1,21 @@
+
+#include "llvm/Support/CommandLine.h"
+
#ifndef REG_ALLOC_COMMON_H
#define REG_ALLOC_COMMON_H
+// THIS IS NOW SPECIFIED VIA A COMMANDLINE ARGUMENT TO LLC
+//
// set DEBUG_RA for printing out debug messages
// if DEBUG_RA is 1 normal output messages
// if DEBUG_RA is 2 extensive debug info for each instr
-#define DEBUG_RA (0)
+enum RegAllocDebugLevel_t {
+ RA_DEBUG_None = 0,
+ RA_DEBUG_Normal = 1,
+ RA_DEBUG_Verbose = 2,
+};
+
+extern cl::Enum<RegAllocDebugLevel_t> DEBUG_RA;
#endif