Skip to content

Commit 1374ae8

Browse files
svenvhdwoodwor-intel
authored andcommitted
Restrict access to some SPIRVToOCLBase members
Original commit: KhronosGroup/SPIRV-LLVM-Translator@47f9669
1 parent 46e68c3 commit 1374ae8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm-spirv/lib/SPIRV/SPIRVToOCL.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,9 @@ class SPIRVToOCLBase : public InstVisitor<SPIRVToOCLBase> {
241241
// Transform FP atomic opcode to corresponding OpenCL function name
242242
virtual std::string mapFPAtomicName(Op OC) = 0;
243243

244+
void translateOpaqueTypes();
245+
246+
private:
244247
/// Transform uniform group opcode to corresponding OpenCL function name,
245248
/// example: GroupIAdd(Reduce) => group_iadd => work_group_reduce_add |
246249
/// sub_group_reduce_add
@@ -267,9 +270,9 @@ class SPIRVToOCLBase : public InstVisitor<SPIRVToOCLBase> {
267270

268271
void getParameterTypes(CallInst *CI, SmallVectorImpl<StructType *> &Tys);
269272

270-
void translateOpaqueTypes();
271273
std::string translateOpaqueType(StringRef STName);
272274

275+
protected:
273276
Module *M;
274277
LLVMContext *Ctx;
275278
};

0 commit comments

Comments
 (0)