clover/llvm: Use device in llvm compilation instead of copying fields
authorAaron Watry <awatry@gmail.com>
Sat, 10 Feb 2018 20:03:13 +0000 (14:03 -0600)
committerAaron Watry <awatry@gmail.com>
Tue, 6 Mar 2018 02:09:46 +0000 (20:09 -0600)
commitdd81ca3883845abb4939a8007b51e802315c3421
tree857b2400ecf07c4cb65f41d894cc1bb20ad84301
parent71b3d681d88435b7397ad3fe896eb1fe7621b86a
clover/llvm: Use device in llvm compilation instead of copying fields

Copying the individual fields from the device when compiling/linking
will lead to an unnecessarily large number of fields getting passed
around.

v3: Rebase on current master
v2: Use device in function args before making additional changes in
    following patches

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Pierre Moreau <pierre.morrow@free.fr>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/core/program.cpp
src/gallium/state_trackers/clover/llvm/invocation.cpp
src/gallium/state_trackers/clover/llvm/invocation.hpp