radeonsi: keep using v_rcp_f32 for division in future LLVM (v2)
authorMarek Olšák <marek.olsak@amd.com>
Wed, 22 Jun 2016 20:24:52 +0000 (22:24 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 4 Jul 2016 22:47:12 +0000 (00:47 +0200)
commiteaccc4e8c87fcbaa322745d9a33a8c39e93ca93f
treea674ffffef64b493fb635f2d1724557520026d22
parent1c00086746743df57ff72939ed6caa2cc6cdc72d
radeonsi: keep using v_rcp_f32 for division in future LLVM (v2)

This will be needed after some LLVM changes that haven't landed yet.

v2: - use LLVMIsConstant to fix an LLVM assertion failure.
      LLVMSetMetadata doesn't work with constants.
    - don't set float metadata as string

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/radeon_llvm.h
src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c