Skip to content

Commit edb267a

Browse files
AlexeySachkovvmaksimo
authored andcommitted
Remove OCL21ToSPIRV pass
Since KhronosGroup/SPIRV-LLVM-Translator@6ceea97 this pass only handles input files coming out OpenCL C++ 2.1, which technically doesn't exists and therefore this should be a dead code. Additionally: most of the pass functionality (except sub-group barrier handling) is untested and duplicated in OCLToSPIRV pass.
1 parent 225d801 commit edb267a

File tree

4 files changed

+0
-255
lines changed

4 files changed

+0
-255
lines changed

llvm-spirv/include/LLVMSPIRVLib.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ namespace llvm {
5252
class PassRegistry;
5353
void initializeLLVMToSPIRVPass(PassRegistry &);
5454
void initializeOCLToSPIRVPass(PassRegistry &);
55-
void initializeOCL21ToSPIRVPass(PassRegistry &);
5655
void initializeOCLTypeToSPIRVPass(PassRegistry &);
5756
void initializeSPIRVLowerBoolPass(PassRegistry &);
5857
void initializeSPIRVLowerConstExprPass(PassRegistry &);
@@ -166,10 +165,6 @@ ModulePass *createLLVMToSPIRV(SPIRV::SPIRVModule *);
166165
/// functions.
167166
ModulePass *createOCLToSPIRV();
168167

169-
/// Create a pass for translating OCL 2.1 builtin functions to SPIR-V builtin
170-
/// functions.
171-
ModulePass *createOCL21ToSPIRV();
172-
173168
/// Create a pass for adapting OCL types for SPIRV.
174169
ModulePass *createOCLTypeToSPIRV();
175170

llvm-spirv/lib/SPIRV/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ add_llvm_library(LLVMSPIRVLib
55
Mangler/ManglingUtils.cpp
66
Mangler/ParameterType.cpp
77
OCLToSPIRV.cpp
8-
OCL21ToSPIRV.cpp
98
OCLTypeToSPIRV.cpp
109
OCLUtil.cpp
1110
VectorComputeUtil.cpp

llvm-spirv/lib/SPIRV/OCL21ToSPIRV.cpp

Lines changed: 0 additions & 248 deletions
This file was deleted.

llvm-spirv/lib/SPIRV/SPIRVWriter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3600,7 +3600,6 @@ void addPassesForSPIRV(legacy::PassManager &PassMgr,
36003600
if (Opts.isSPIRVMemToRegEnabled())
36013601
PassMgr.add(createPromoteMemoryToRegisterPass());
36023602
PassMgr.add(createPreprocessMetadata());
3603-
PassMgr.add(createOCL21ToSPIRV());
36043603
PassMgr.add(createSPIRVLowerSPIRBlocks());
36053604
PassMgr.add(createOCLTypeToSPIRV());
36063605
PassMgr.add(createSPIRVLowerOCLBlocks());

0 commit comments

Comments
 (0)