clover/llvm: Pass device down to compile
authorAaron Watry <awatry@gmail.com>
Sun, 6 Aug 2017 01:41:40 +0000 (20:41 -0500)
committerAaron Watry <awatry@gmail.com>
Tue, 6 Mar 2018 02:09:46 +0000 (20:09 -0600)
commit106020712fa3250caafb4d42d590d366c8bd8ac9
tree9f9a903de5833bf829e961337ab44d05d3555270
parentfc629e359485bdac175d2c63fd4154b490094d39
clover/llvm: Pass device down to compile

We'll need to be able to detect device version to define the appropriate
__OPENCL_VERSION__ header.

v2: Rebase after removing the previous patch (Pierre)
  - Removed "clover: Add device_clc_version to llvm::create_compiler_instance"

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Pierre Moreau <pierre.morrow@free.fr>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/llvm/invocation.cpp