summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/CodeGen/RegAllocCommon.h23
-rw-r--r--llvm/lib/CodeGen/RegAlloc/RegAllocCommon.h23
2 files changed, 46 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/RegAllocCommon.h b/llvm/include/llvm/CodeGen/RegAllocCommon.h
new file mode 100644
index 00000000000..f7c30e6d58f
--- /dev/null
+++ b/llvm/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/llvm/lib/CodeGen/RegAlloc/RegAllocCommon.h b/llvm/lib/CodeGen/RegAlloc/RegAllocCommon.h
new file mode 100644
index 00000000000..f7c30e6d58f
--- /dev/null
+++ b/llvm/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
OpenPOWER on IntegriCloud