clover/llvm: Declare compiler instance at top level and pass down as argument.
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 28 Jun 2016 06:45:30 +0000 (23:45 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 12 Jul 2016 03:21:13 +0000 (20:21 -0700)
commitfa94055d534b2c2237cfb775066b5a4835dd0849
tree402a9ee3167c8978524e32d22fd6bf2c2da2e957
parenta27d4ec3b9658c76e6caf19dd9024d901e543a7f
clover/llvm: Declare compiler instance at top level and pass down as argument.

This allows simplifying the interface of compile_llvm() because it no
longer needs to read out and return the optimization level and address
space map from the compiler instance.  Instead declare the compiler
instance at the top level so that both properties are available
directly.

Reviewed-by: Serge Martin <edb+mesa@sigluy.net>
Tested-by: Jan Vesely <jan.vesely@rutgers.edu>
src/gallium/state_trackers/clover/llvm/invocation.cpp