clover: Pass device to llvm::create_compiler_instance
authorAaron Watry <awatry@gmail.com>
Sun, 6 Aug 2017 01:18:48 +0000 (20:18 -0500)
committerAaron Watry <awatry@gmail.com>
Tue, 6 Mar 2018 02:09:46 +0000 (20:09 -0600)
commitfc629e359485bdac175d2c63fd4154b490094d39
tree8c4ca84cfa76dbf3ce9bc227fde22cf4fc8ba270
parentdd81ca3883845abb4939a8007b51e802315c3421
clover: Pass device to llvm::create_compiler_instance

We'll be using dev.device_clc_version to select the default language version
soon along with the existing ir_target field.

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Pierre Moreau <pierre.morrow@free.fr>
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
v4: Pass the device down instead of device_clc_version as a separate field
v3: Revise to acknowledge that we now have the device in compile/link_program
    instead of the string values.
v2: (Pierre) Move changes to create_compiler_instance invocation to correct
    patch to prevent temporary build breakage.
    (Jan) Use device_clc_version instead of device_version for compile/link
src/gallium/state_trackers/clover/llvm/invocation.cpp