Skip to content

Commit 98d206e

Browse files
authored
Rename common_clang to opencl_clang (#404)
1 parent de0ea6d commit 98d206e

9 files changed

+20
-20
lines changed

CMakeLists.txt

+9-9
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ else (WIN32)
101101
endif (WIN32)
102102

103103
# set that name of the main output file as a target name
104-
if (NOT DEFINED COMMON_CLANG_LIBRARY_NAME)
105-
set(COMMON_CLANG_LIBRARY_NAME "opencl-clang")
104+
if (NOT DEFINED OPENCL_CLANG_LIBRARY_NAME)
105+
set(OPENCL_CLANG_LIBRARY_NAME "opencl-clang")
106106
endif()
107-
set(TARGET_NAME ${COMMON_CLANG_LIBRARY_NAME}${BUILD_PLATFORM} )
107+
set(TARGET_NAME ${OPENCL_CLANG_LIBRARY_NAME}${BUILD_PLATFORM} )
108108

109109
# PCH_EXTENSION can override PCH extension map in options_compile.cpp.
110110
# Example: "cl_khr_3d_image_writes,cl_khr_depth_images"
@@ -187,7 +187,7 @@ add_public_tablegen_target(CClangCompileOptions)
187187
# Source code
188188
#
189189
set(TARGET_INCLUDE_FILES
190-
common_clang.h
190+
opencl_clang.h
191191
options.h
192192
binary_result.h
193193
pch_mgr.h
@@ -196,7 +196,7 @@ set(TARGET_INCLUDE_FILES
196196
)
197197

198198
set(TARGET_SOURCE_FILES
199-
common_clang.cpp
199+
opencl_clang.cpp
200200
options.cpp
201201
pch_mgr.cpp
202202
options_compile.cpp
@@ -213,7 +213,7 @@ set (LLVM_VER_MINOR ${LLVM_VERSION_MINOR} )
213213

214214
add_definitions( -D__STDC_LIMIT_MACROS )
215215
add_definitions( -D__STDC_CONSTANT_MACROS )
216-
add_definitions( -DCOMMON_CLANG_EXPORTS )
216+
add_definitions( -DOPENCL_CLANG_EXPORTS )
217217

218218
#
219219
# Include directories
@@ -308,7 +308,7 @@ if (WIN32)
308308

309309
elseif(UNIX)
310310
set_property(TARGET ${TARGET_NAME} APPEND_STRING PROPERTY
311-
COMPILE_DEFINITIONS LIBCOMMON_CLANG_NAME="$<TARGET_SONAME_FILE_NAME:${TARGET_NAME}>")
311+
COMPILE_DEFINITIONS LIBOPENCL_CLANG_NAME="$<TARGET_SONAME_FILE_NAME:${TARGET_NAME}>")
312312

313313
set_property(TARGET ${TARGET_NAME} APPEND_STRING PROPERTY
314314
LINK_FLAGS " -Wl,--no-undefined")
@@ -359,7 +359,7 @@ target_link_libraries( ${TARGET_NAME}
359359
${OTHER_LIBRARIES}
360360
)
361361

362-
install(FILES common_clang.h
362+
install(FILES opencl_clang.h
363363
DESTINATION include/cclang
364364
COMPONENT ${TARGET_NAME})
365365

@@ -384,5 +384,5 @@ if (WIN32)
384384
endif(INSTALL_PDBS)
385385
install(FILES ${RT_OUTPUT_DIRECTORY}/\${BUILD_TYPE}/${TARGET_NAME}_stripped.pdb DESTINATION bin)
386386
else (WIN32)
387-
SET_LINUX_EXPORTS_FILE( ${TARGET_NAME} common_clang.map )
387+
SET_LINUX_EXPORTS_FILE( ${TARGET_NAME} opencl_clang.map )
388388
endif(WIN32)

binary_result.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Copyright (c) Intel Corporation (2009-2017).
1818

1919
#pragma once
2020

21-
#include "common_clang.h"
21+
#include "opencl_clang.h"
2222
#include "llvm/ADT/SmallVector.h"
2323
#include <string>
2424

common_clang.cpp renamed to opencl_clang.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ Copyright (c) Intel Corporation (2009-2017).
1212
use of the code. No license, express or implied, by estoppel or otherwise,
1313
to any intellectual property rights is granted herein.
1414
15-
\file common_clang.cpp
15+
\file opencl_clang.cpp
1616
1717
\*****************************************************************************/
1818

19-
#include "common_clang.h"
19+
#include "opencl_clang.h"
2020
#include "pch_mgr.h"
2121
#include "cl_headers/resource.h"
2222
#include "binary_result.h"

common_clang.h renamed to opencl_clang.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Copyright (c) Intel Corporation (2009-2017).
1212
use of the code. No license, express or implied, by estoppel or otherwise,
1313
to any intellectual property rights is granted herein.
1414
15-
\file common_clang.h
15+
\file opencl_clang.h
1616
1717
\*****************************************************************************/
1818

@@ -21,7 +21,7 @@ Copyright (c) Intel Corporation (2009-2017).
2121
#include "cstddef" // size_t
2222

2323
#if defined(_WIN32)
24-
#if defined(COMMON_CLANG_EXPORTS)
24+
#if defined(OPENCL_CLANG_EXPORTS)
2525
#define CC_DLL_EXPORT _declspec(dllexport)
2626
#else
2727
#define CC_DLL_EXPORT _declspec(dllimport)
File renamed without changes.

opencl_clang_options.td

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//===----------------------------------------------------------------------===//
22
//
3-
// This file defines the options accepted by common_clang.
3+
// This file defines the options accepted by opencl_clang.
44
//
55
//===----------------------------------------------------------------------===//
66

options.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ Copyright (c) Intel Corporation (2009-2017).
1212
use of the code. No license, express or implied, by estoppel or otherwise,
1313
to any intellectual property rights is granted herein.
1414
15-
\file common_clang.h
15+
\file opencl_clang.h
1616
1717
\brief Defines the common structures for both compile and link options parsing
1818
1919
\*****************************************************************************/
2020

21-
#ifndef COMMON_CLANG_OPTIONS_H
22-
#define COMMON_CLANG_OPTIONS_H
21+
#ifndef OPENCL_CLANG_OPTIONS_H
22+
#define OPENCL_CLANG_OPTIONS_H
2323

2424
#include "llvm/Option/Arg.h"
2525
#include "llvm/ADT/ArrayRef.h"

options_compile.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Copyright (c) Intel Corporation (2009-2017).
1616
1717
\*****************************************************************************/
1818

19-
#include "common_clang.h"
19+
#include "opencl_clang.h"
2020
#include "options.h"
2121

2222
#include "clang/Driver/Options.h"

pch_mgr.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ bool ResourceManager::load_resource(const char *id, const char *pszType,
210210
#ifdef WIN32
211211
bool ok = GetResourceWin32(id, pszType, res, size);
212212
#else
213-
bool ok = GetResourceUnix(id, pszType, LIBCOMMON_CLANG_NAME,
213+
bool ok = GetResourceUnix(id, pszType, LIBOPENCL_CLANG_NAME,
214214
false, res, size);
215215
#endif
216216

0 commit comments

Comments
 (0)