freedreno/ir3: fix register usage calculations
[mesa.git] / src / gallium / auxiliary / gallivm / lp_bld_debug.h
index 369c1bbf09acb948e33ddae99fbd7b431ba6297f..321e09d56b987a5700607e71fae719f4e0d009fc 100644 (file)
 #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
-#define GALLIVM_DEBUG_PERF      0x10
+#define GALLIVM_DEBUG_TGSI          (1 << 0)
+#define GALLIVM_DEBUG_IR            (1 << 1)
+#define GALLIVM_DEBUG_ASM           (1 << 2)
+#define GALLIVM_DEBUG_NO_OPT        (1 << 3)
+#define GALLIVM_DEBUG_PERF          (1 << 4)
+#define GALLIVM_DEBUG_NO_BRILINEAR  (1 << 5)
+#define GALLIVM_DEBUG_NO_RHO_APPROX (1 << 6)
+#define GALLIVM_DEBUG_NO_QUAD_LOD   (1 << 7)
+#define GALLIVM_DEBUG_GC            (1 << 8)
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 
 #ifdef DEBUG
@@ -67,6 +76,10 @@ lp_build_name(LLVMValueRef val, const char *format, ...)
 }
 
 
+const char *
+lp_get_module_id(LLVMModuleRef module);
+
+
 void
 lp_debug_dump_value(LLVMValueRef value);
 
@@ -76,7 +89,16 @@ lp_check_alignment(const void *ptr, unsigned alignment);
 
 
 void
-lp_disassemble(const void* func);
+lp_disassemble(LLVMValueRef func, const void *code);
+
+
+void
+lp_profile(LLVMValueRef func, const void *code);
+
+
+#ifdef __cplusplus
+}
+#endif
 
 
 #endif /* !LP_BLD_DEBUG_H */