diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-05-15 11:42:02 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-05-15 11:42:02 +0100 |
commit | 145fd48b378c1b4767e9aa72f1b01e69a2281a62 (patch) | |
tree | 12ef2b77ecbd278aafe8fe608d4849a36bd05b49 /src/gallium/auxiliary/gallivm/lp_bld_debug.h | |
parent | 263e038431f24f24aaec252e135ffc9f2f09640e (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.h | 13 |
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, ...) { |