gallivm: improve dumping of bitcode
authorRoland Scheidegger <sroland@vmware.com>
Wed, 11 May 2016 02:42:51 +0000 (04:42 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 11 May 2016 02:43:35 +0000 (04:43 +0200)
commit430797843a4e9b3bc69562c4ef18dd2ddda39990
tree58f50a085532a09a36a07b449542d66cf366e12f
parent8d639138c712c5bbe0b9ea8adbc810b23a2e8d1b
gallivm: improve dumping of bitcode

Use GALLIVM_DEBUG=dumpbc for dumping of modules as bitcode.
Instead of a fixed llvmpipe.bc name, use ir_<modulename>.bc so multiple
modules can be dumped (albeit it might still overwrite previous modules,
particularly the modules from draw tend to always have the same name).

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_debug.h
src/gallium/auxiliary/gallivm/lp_bld_init.c