Skip to content

Commit 225d801

Browse files
AlexeySachkovvmaksimo
authored andcommitted
Rename OCL20ToSPIRV pass
Renamed the pass to OCLToSPIRV: the problem with the old name is that it doesn't represent actual pass content: it handles not only OpenCL C 2.0 built-in functions, but also OpenCL C 1.2 built-in functions, acting like an adapter between OpenCL C representation and SPIR-V friendly IR representation. Also updated some comments to reflect that.
1 parent ff49e34 commit 225d801

File tree

5 files changed

+63
-60
lines changed

5 files changed

+63
-60
lines changed

llvm-spirv/include/LLVMSPIRVLib.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ namespace llvm {
5151
// PassSupport.h.
5252
class PassRegistry;
5353
void initializeLLVMToSPIRVPass(PassRegistry &);
54-
void initializeOCL20ToSPIRVPass(PassRegistry &);
54+
void initializeOCLToSPIRVPass(PassRegistry &);
5555
void initializeOCL21ToSPIRVPass(PassRegistry &);
5656
void initializeOCLTypeToSPIRVPass(PassRegistry &);
5757
void initializeSPIRVLowerBoolPass(PassRegistry &);
@@ -162,9 +162,9 @@ void mangleOpenClBuiltin(const std::string &UnmangledName,
162162
/// Create a pass for translating LLVM to SPIR-V.
163163
ModulePass *createLLVMToSPIRV(SPIRV::SPIRVModule *);
164164

165-
/// Create a pass for translating OCL 2.0 builtin functions to SPIR-V builtin
165+
/// Create a pass for translating OCL C builtin functions to SPIR-V builtin
166166
/// functions.
167-
ModulePass *createOCL20ToSPIRV();
167+
ModulePass *createOCLToSPIRV();
168168

169169
/// Create a pass for translating OCL 2.1 builtin functions to SPIR-V builtin
170170
/// functions.

llvm-spirv/lib/SPIRV/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ add_llvm_library(LLVMSPIRVLib
44
Mangler/Mangler.cpp
55
Mangler/ManglingUtils.cpp
66
Mangler/ParameterType.cpp
7-
OCL20ToSPIRV.cpp
7+
OCLToSPIRV.cpp
88
OCL21ToSPIRV.cpp
99
OCLTypeToSPIRV.cpp
1010
OCLUtil.cpp

0 commit comments

Comments
 (0)