diff options
author | Pierre Moreau <[email protected]> | 2019-02-02 15:33:51 +0100 |
---|---|---|
committer | Karol Herbst <[email protected]> | 2019-02-26 21:02:07 +0100 |
commit | 1c9fdcefd4bf589128bce4ab3bbfdaa4f6faa600 (patch) | |
tree | fea76d537798d10d74426c0bc265dc23f09a722f | |
parent | 5285fff5f9681992a1660d34d2369c03701776b5 (diff) |
clover: Fix indentation issues
Reviewed-by: Karol Herbst <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]>
-rw-r--r-- | src/gallium/state_trackers/clover/core/kernel.cpp | 4 | ||||
-rw-r--r-- | src/gallium/state_trackers/clover/llvm/compat.hpp | 64 |
2 files changed, 34 insertions, 34 deletions
diff --git a/src/gallium/state_trackers/clover/core/kernel.cpp b/src/gallium/state_trackers/clover/core/kernel.cpp index dab7ef8683a..7fe66ae4ea2 100644 --- a/src/gallium/state_trackers/clover/core/kernel.cpp +++ b/src/gallium/state_trackers/clover/core/kernel.cpp @@ -232,8 +232,8 @@ kernel::exec_context::bind(intrusive_ptr<command_queue> _q, cs.req_input_mem = input.size(); st = q->pipe->create_compute_state(q->pipe, &cs); if (!st) { - unbind(); // Cleanup - throw error(CL_OUT_OF_RESOURCES); + unbind(); // Cleanup + throw error(CL_OUT_OF_RESOURCES); } } diff --git a/src/gallium/state_trackers/clover/llvm/compat.hpp b/src/gallium/state_trackers/clover/llvm/compat.hpp index b91cb95a295..0ecf622a9af 100644 --- a/src/gallium/state_trackers/clover/llvm/compat.hpp +++ b/src/gallium/state_trackers/clover/llvm/compat.hpp @@ -121,57 +121,57 @@ namespace clover { #endif } - template<typename T> void - set_diagnostic_handler(::llvm::LLVMContext &ctx, - T *diagnostic_handler, void *data) { + template<typename T> void + set_diagnostic_handler(::llvm::LLVMContext &ctx, + T *diagnostic_handler, void *data) { #if HAVE_LLVM >= 0x0600 - ctx.setDiagnosticHandlerCallBack(diagnostic_handler, data); + ctx.setDiagnosticHandlerCallBack(diagnostic_handler, data); #else - ctx.setDiagnosticHandler(diagnostic_handler, data); + ctx.setDiagnosticHandler(diagnostic_handler, data); #endif - } + } - inline std::unique_ptr< ::llvm::Module> - clone_module(const ::llvm::Module &mod) - { + inline std::unique_ptr< ::llvm::Module> + clone_module(const ::llvm::Module &mod) + { #if HAVE_LLVM >= 0x0700 - return ::llvm::CloneModule(mod); + return ::llvm::CloneModule(mod); #else - return ::llvm::CloneModule(&mod); + return ::llvm::CloneModule(&mod); #endif - } + } - template<typename T> void - write_bitcode_to_file(const ::llvm::Module &mod, T &os) - { + template<typename T> void + write_bitcode_to_file(const ::llvm::Module &mod, T &os) + { #if HAVE_LLVM >= 0x0700 - ::llvm::WriteBitcodeToFile(mod, os); + ::llvm::WriteBitcodeToFile(mod, os); #else - ::llvm::WriteBitcodeToFile(&mod, os); + ::llvm::WriteBitcodeToFile(&mod, os); #endif - } + } - template<typename TM, typename PM, typename OS, typename FT> - bool add_passes_to_emit_file(TM &tm, PM &pm, OS &os, FT &ft) - { + template<typename TM, typename PM, typename OS, typename FT> + bool add_passes_to_emit_file(TM &tm, PM &pm, OS &os, FT &ft) + { #if HAVE_LLVM >= 0x0700 - return tm.addPassesToEmitFile(pm, os, nullptr, ft); + return tm.addPassesToEmitFile(pm, os, nullptr, ft); #else - return tm.addPassesToEmitFile(pm, os, ft); + return tm.addPassesToEmitFile(pm, os, ft); #endif - } + } - template<typename T, typename M> - T get_abi_type(const T &arg_type, const M &mod) { + template<typename T, typename M> + T get_abi_type(const T &arg_type, const M &mod) { #if HAVE_LLVM >= 0x0700 - return arg_type; + return arg_type; #else - ::llvm::DataLayout dl(&mod); - const unsigned arg_store_size = dl.getTypeStoreSize(arg_type); - return !arg_type->isIntegerTy() ? arg_type : - dl.getSmallestLegalIntType(mod.getContext(), arg_store_size * 8); + ::llvm::DataLayout dl(&mod); + const unsigned arg_store_size = dl.getTypeStoreSize(arg_type); + return !arg_type->isIntegerTy() ? arg_type : + dl.getSmallestLegalIntType(mod.getContext(), arg_store_size * 8); #endif - } + } } } } |