================
@@ -0,0 +1,48 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef __CLC_OPENCL_TYPES_H__
+#define __CLC_OPENCL_TYPES_H__
+
+// Copied from clang/lib/Headers/opencl-c-base.h
----------------
wenju-he wrote:

> This shouldn't need copying? Use the builtin included declarations?

The copying is deleted. 
https://github.com/llvm/llvm-project/pull/168318/commits/e3799b2aa3db421810fb552d7a86f946d41161e9
 added `-include opencl-c-base.h` to compile flags for .cl files. Some types 
and constants in libclc are not needed anymore.
opencl-c-base.h only defines OpenCL types and constant, so it should be safe to 
use in libclc.

https://github.com/llvm/llvm-project/pull/168318
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to