summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/gallivm/lp_bld_debug.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-05-15 11:42:02 +0100
committerJosé Fonseca <jfonseca@vmware.com>2010-05-15 11:42:02 +0100
commit145fd48b378c1b4767e9aa72f1b01e69a2281a62 (patch)
tree12ef2b77ecbd278aafe8fe608d4849a36bd05b49 /src/gallium/auxiliary/gallivm/lp_bld_debug.h
parent263e038431f24f24aaec252e135ffc9f2f09640e (diff)
gallivm: Centralize some of the LLVM debugging options.
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_debug.h')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_debug.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.h b/src/gallium/auxiliary/gallivm/lp_bld_debug.h
index 1897acce79..858002b34f 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.h
+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.h
@@ -36,6 +36,19 @@
#include "util/u_string.h"
+#define GALLIVM_DEBUG_TGSI 0x1
+#define GALLIVM_DEBUG_IR 0x2
+#define GALLIVM_DEBUG_ASM 0x4
+#define GALLIVM_DEBUG_NO_OPT 0x8
+
+
+#ifdef DEBUG
+extern unsigned gallivm_debug;
+#else
+#define gallivm_debug 0
+#endif
+
+
static INLINE void
lp_build_name(LLVMValueRef val, const char *format, ...)
{