aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2002-09-14 22:18:37 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2002-09-14 22:18:37 +0000
commit7e914a967dff2495ccc9f8f0da9fa855e812088d (patch)
tree3e1e510ac6e5acd9596649493be4f37b206c7e08
parent67aa2e235dc62f1caf110fed14674df976865e81 (diff)
Break RA_DEBUG option into several levels to get better output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3722 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/RegAllocCommon.h23
-rw-r--r--lib/CodeGen/RegAlloc/RegAllocCommon.h23
-rw-r--r--lib/Target/SparcV9/RegAlloc/RegAllocCommon.h23
3 files changed, 69 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/RegAllocCommon.h b/include/llvm/CodeGen/RegAllocCommon.h
new file mode 100644
index 0000000000..f7c30e6d58
--- /dev/null
+++ b/include/llvm/CodeGen/RegAllocCommon.h
@@ -0,0 +1,23 @@
+//===-- RegAllocCommon.h --------------------------------------------------===//
+//
+// Shared declarations for register allocation.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_CODEGEN_REGALLOCCOMMON_H
+#define LLVM_CODEGEN_REGALLOCCOMMON_H
+
+#include "Support/CommandLine.h"
+
+enum RegAllocDebugLevel_t {
+ RA_DEBUG_None = 0,
+ RA_DEBUG_Results = 1,
+ RA_DEBUG_Coloring = 2,
+ RA_DEBUG_Interference = 3,
+ RA_DEBUG_LiveRanges = 4,
+ RA_DEBUG_Verbose = 5
+};
+
+extern RegAllocDebugLevel_t DEBUG_RA;
+
+#endif
diff --git a/lib/CodeGen/RegAlloc/RegAllocCommon.h b/lib/CodeGen/RegAlloc/RegAllocCommon.h
new file mode 100644
index 0000000000..f7c30e6d58
--- /dev/null
+++ b/lib/CodeGen/RegAlloc/RegAllocCommon.h
@@ -0,0 +1,23 @@
+//===-- RegAllocCommon.h --------------------------------------------------===//
+//
+// Shared declarations for register allocation.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_CODEGEN_REGALLOCCOMMON_H
+#define LLVM_CODEGEN_REGALLOCCOMMON_H
+
+#include "Support/CommandLine.h"
+
+enum RegAllocDebugLevel_t {
+ RA_DEBUG_None = 0,
+ RA_DEBUG_Results = 1,
+ RA_DEBUG_Coloring = 2,
+ RA_DEBUG_Interference = 3,
+ RA_DEBUG_LiveRanges = 4,
+ RA_DEBUG_Verbose = 5
+};
+
+extern RegAllocDebugLevel_t DEBUG_RA;
+
+#endif
diff --git a/lib/Target/SparcV9/RegAlloc/RegAllocCommon.h b/lib/Target/SparcV9/RegAlloc/RegAllocCommon.h
new file mode 100644
index 0000000000..f7c30e6d58
--- /dev/null
+++ b/lib/Target/SparcV9/RegAlloc/RegAllocCommon.h
@@ -0,0 +1,23 @@
+//===-- RegAllocCommon.h --------------------------------------------------===//
+//
+// Shared declarations for register allocation.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_CODEGEN_REGALLOCCOMMON_H
+#define LLVM_CODEGEN_REGALLOCCOMMON_H
+
+#include "Support/CommandLine.h"
+
+enum RegAllocDebugLevel_t {
+ RA_DEBUG_None = 0,
+ RA_DEBUG_Results = 1,
+ RA_DEBUG_Coloring = 2,
+ RA_DEBUG_Interference = 3,
+ RA_DEBUG_LiveRanges = 4,
+ RA_DEBUG_Verbose = 5
+};
+
+extern RegAllocDebugLevel_t DEBUG_RA;
+
+#endif