clover/llvm: Split compilation and linking.
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 17 May 2016 14:03:04 +0000 (16:03 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 12 Jul 2016 03:34:34 +0000 (20:34 -0700)
commit132b6ccd4f81eac3cad5bef42325319708498240
tree4c44d5c7b98ecd648147a8f0c2153ae64edb0963
parent1a7d11aa3dc65e89f0d801707951afc32cbaa6ee
clover/llvm: Split compilation and linking.

Split the work previously done by compile_program_llvm() into
compile_program() (which simply runs the front-end and serializes the
resulting LLVM IR) and link_program() (which takes care of everything
else down to binary codegen).

[ Serge Martin: allow LLVM IR dump after compilation ]

Reviewed-by: Serge Martin <edb+mesa@sigluy.net>
Tested-by: Jan Vesely <jan.vesely@rutgers.edu>
src/gallium/state_trackers/clover/Makefile.sources
src/gallium/state_trackers/clover/llvm/invocation.cpp
src/gallium/state_trackers/clover/llvm/invocation.hpp [new file with mode: 0644]