e3272865c216933168e6c08766d266a33d0e1497 |
|
28-Sep-2016 |
Vedran Miletić <vedran@miletic.net> |
clover: Pass unquoted compiler arguments to Clang OpenCL apps can quote arguments they pass to the OpenCL compiler, most commonly include paths containing spaces. If the Clang OpenCL compiler was called via a shell, the shell would split the arguments with respect to to quotes and then remove quotes before passing the arguments to the compiler. Since we call Clang as a library, we have to split the argument with respect to quotes and then remove quotes before passing the arguments. v2: move to tokenize(), remove throwing of CL_INVALID_COMPILER_OPTIONS v3: simplify parsing logic, use more C++11 v4: restore error throwing, clarify a comment Signed-off-by: Vedran Miletić <vedran@miletic.net> Reviewed-by: Francisco Jerez <currojerez@riseup.net>
/external/mesa3d/src/gallium/state_trackers/clover/llvm/util.hpp
|
3ce6ab068ced4341bbb404df12fb9bcca294e94c |
|
17-May-2016 |
Francisco Jerez <currojerez@riseup.net> |
clover/llvm: Clean up compile_native(). This switches compile_native() to the C++ API (which the rest of this file makes use of anyway so there is little benefit from using the C API), what should get rid of an amount of boilerplate and fix a leak of the TargetMachine object in the error path. v2: Additional fixes for LLVM 3.6. v3: Update for the latest LLVM SVN changes. Reviewed-by: Serge Martin <edb+mesa@sigluy.net> Tested-by: Jan Vesely <jan.vesely@rutgers.edu>
/external/mesa3d/src/gallium/state_trackers/clover/llvm/util.hpp
|
574477e5994166ce6212e922ff15d6a36f840bf3 |
|
17-May-2016 |
Francisco Jerez <currojerez@riseup.net> |
clover/llvm: Move a bunch of utility functions into separate file. Some of these will be useful from a different compilation unit in the same subtree so put them in a publicly accessible header file. Reviewed-by: Serge Martin <edb+mesa@sigluy.net> Tested-by: Jan Vesely <jan.vesely@rutgers.edu>
/external/mesa3d/src/gallium/state_trackers/clover/llvm/util.hpp
|