-
Committer:
Kalle Raiskila
-
Date:
2013-07-03 12:43:28 UTC
-
Revision ID:
kraiskil@ovi.com-20130703124328-jzuifv5c02i0ns8j
Add first step in replacing calling shell scripts with calling clang API.
-Factor out the call to pocl_build into separate function.
-Add two implementations of this function (script in pocl_llvm.c, API in pocl_llvm_api.cc).
-Hack around some g++ & phtread issue (see lib/CL/Makefile.am).
-Increase visibility of the dispatch struct, as g++ complained verbosely that it is hidden.
Enable using the API version with passing '--enable-llvmapi' to configure. This already drops
4% off the execution time of the (integrated) testsuite :) No changes intended if
'--enable-llvmapi' is omitted.