[clang-tools-extra] [MLIR] Add SyclRuntimeWrapper (PR #69648)

Ivan Butygin via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 23 11:08:39 PDT 2023


================
@@ -0,0 +1,222 @@
+//===- SyclRuntimeWrappers.cpp - MLIR SYCL wrapper library ------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// Implements C wrappers around the sycl runtime library.
+//
+//===----------------------------------------------------------------------===//
+
+#include <algorithm>
+#include <array>
+#include <atomic>
+#include <cassert>
+#include <cfloat>
+#include <cstdint>
+#include <cstdio>
+#include <cstdlib>
+#include <stdexcept>
+#include <tuple>
+#include <vector>
+
+#include <CL/sycl.hpp>
+#include <level_zero/ze_api.h>
+#include <map>
+#include <mutex>
----------------
Hardcode84 wrote:

Most of those includes are not being used and can be removed (map, mutex, vector, atomic)

https://github.com/llvm/llvm-project/pull/69648


More information about the cfe-commits mailing list