clover/llvm: Split compilation and linking

Graphics / Mesa 3D Graphics Library / Mesa - Francisco Jerez [riseup.net] - 11 July 2016 22:34 UTC

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 ]

132b6cc clover/llvm: Split compilation and linking.
src/gallium/state_trackers/clover/Makefile.sources | 1 +
.../state_trackers/clover/llvm/invocation.cpp | 58 +++++++++++++++-----
.../state_trackers/clover/llvm/invocation.hpp | 47 ++++++++++++++++
3 files changed, 91 insertions(+), 15 deletions(-)

Upstream: cgit.freedesktop.org


  • Share