radeon/llvm: use bitcasts for integers
authorVadim Girlin <vadimgirlin@gmail.com>
Mon, 7 May 2012 16:22:29 +0000 (20:22 +0400)
committerVadim Girlin <vadimgirlin@gmail.com>
Mon, 7 May 2012 21:18:21 +0000 (01:18 +0400)
commit2a88dfc521bff7255e27e2ef8efcd08f9db53747
tree4abb8a7257cdcb5f157003501e562dcfc1387557
parent3f8c37967a66da6bc63b283b3eba69fd48eba2f6
radeon/llvm: use bitcasts for integers

We're using float as default type, so basically for every instruction that
wants other types for dst/src operands we need to perform the bitcast
to/from default float. Currently bitcast produces no-op MOV instruction,
will be eliminated later.

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
src/gallium/drivers/r600/r600_llvm.c
src/gallium/drivers/radeon/radeon_llvm.h
src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c