gallivm: add helper lp_add_attr_dereferenceable
authorMarek Olšák <marek.olsak@amd.com>
Tue, 12 Jul 2016 16:49:57 +0000 (18:49 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 13 Jul 2016 17:46:16 +0000 (19:46 +0200)
commit6596ecf8c50b6400b02a018a438a8de98de48761
treece6b970c6e5df88aa1dfe8b1a60918235e948cb7
parentbccf9de4df93a53cad7a3a6ffdcea1ebc956487d
gallivm: add helper lp_add_attr_dereferenceable

Not sure if this is the right way to do it, but it seems to work.

v2: make it a no-op on LLVM <= 3.5

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
src/gallium/auxiliary/gallivm/lp_bld_misc.h