OSDN Git Service

radv: setup llvm target data layout
authorDave Airlie <airlied@redhat.com>
Mon, 13 Mar 2017 20:50:59 +0000 (06:50 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 14 Mar 2017 00:33:59 +0000 (10:33 +1000)
commitb8ee70384adc3286d18febba7a92047118cc0f0f
tree36209e62632ea4448d2ddbe2317daeb7dd4992b7
parentc19607d59df0edbccc253d299c65aa8d30c54d86
radv: setup llvm target data layout

Ported from radeonsi, pointed out by Tom.

"This prevents LLVM from using sext instructions for local memory
offsets and allows the backend to fold immediate offsets into the
instruction. This also prevents some incorrect code generation for
ptrtoint and inttoptr instructions."

Cc: "13.0 17.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Tom Stellard <tstellar@redhat.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c