Skip to content

Commit 06709c1

Browse files
committed
[NFC] Fix "SPRI" typo
1 parent 7aa1fd2 commit 06709c1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/SPIRV/SPIRVToOCL.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void SPIRVToOCLBase::visitCallInst(CallInst &CI) {
108108
}
109109

110110
if (OC == OpImageQuerySize || OC == OpImageQuerySizeLod) {
111-
visitCallSPRIVImageQuerySize(&CI);
111+
visitCallSPIRVImageQuerySize(&CI);
112112
return;
113113
}
114114
if (OC == OpMemoryBarrier) {
@@ -249,7 +249,7 @@ void SPIRVToOCLBase::visitCastInst(CastInst &Cast) {
249249
Cast.eraseFromParent();
250250
}
251251

252-
void SPIRVToOCLBase::visitCallSPRIVImageQuerySize(CallInst *CI) {
252+
void SPIRVToOCLBase::visitCallSPIRVImageQuerySize(CallInst *CI) {
253253
// Get image type
254254
SmallVector<StructType *, 4> ParamTys;
255255
getParameterTypes(CI, ParamTys);

lib/SPIRV/SPIRVToOCL.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class SPIRVToOCLBase : public InstVisitor<SPIRVToOCLBase> {
7070
/// containing {[get_image_width | get_image_dim], get_image_array_size}
7171
/// for all images except image1d_t which is always converted into
7272
/// get_image_width returning scalar result.
73-
void visitCallSPRIVImageQuerySize(CallInst *CI);
73+
void visitCallSPIRVImageQuerySize(CallInst *CI);
7474

7575
/// Transform __spirv_(NonUniform)Group* to {work_group|sub_group}_*.
7676
///

test/transcoding/OpImageQuerySize.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ target triple = "spir64-unknown-unknown"
1212

1313
; Check conversion of get_image_width, get_image_height, get_image_depth,
1414
; get_image_array_size, and get_image_dim OCL built-ins.
15-
; In general the SPRI-V reader converts OpImageQuerySize into get_image_dim
15+
; In general the SPIR-V reader converts OpImageQuerySize into get_image_dim
1616
; and subsequent extract or shufflevector instructions. Unfortunately there is
1717
; no get_image_dim for 1D images and get_image_dim cannot replace get_image_array_size
1818

0 commit comments

Comments
 (0)