gallium/radeon: emit LLVM `ret void` before radeon_llvm_finalize_module
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 4 Feb 2016 07:51:52 +0000 (08:51 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 5 Feb 2016 14:21:54 +0000 (09:21 -0500)
commit5aafc169ca80885ee5e6cde9f590c10a2ae629fe
treea62fde036d9c805ee335d19c239f9f539690df9b
parent7e9670c8bc9422296ce07dce99e1d266063952c3
gallium/radeon: emit LLVM `ret void` before radeon_llvm_finalize_module

This allows dumping a consumable LLVM module before the initial optimization
passes are run.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/r600/r600_llvm.c
src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
src/gallium/drivers/radeonsi/si_shader.c