Skip to content

Commit 1eacea6

Browse files
committed
[NFC] format
1 parent 57dbccd commit 1eacea6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

llvm/lib/SYCLLowerIR/SYCLJointMatrixTransform.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ bool transformAccessChain(Function *F) {
136136
// It may happen that sycl::joint_matrix class object is wrapped into
137137
// nested arrays. We need to find the innermost type to extract
138138
if (StructType *WrapperMatrixTy =
139-
dyn_cast<StructType>(getInnermostType(AllocaTy))) {
139+
dyn_cast<StructType>(getInnermostType(AllocaTy))) {
140140
TargetExtType *MatrixTy = extractMatrixType(WrapperMatrixTy);
141141
if (!MatrixTy)
142142
continue;
@@ -166,15 +166,17 @@ bool transformAccessChain(Function *F) {
166166
continue;
167167

168168
// Check if GEP return type is a pointer to sycl::joint_matrix class object
169-
StructType *WrapperMatrixTy = dyn_cast<StructType>(GEP->getResultElementType());
169+
StructType *WrapperMatrixTy =
170+
dyn_cast<StructType>(GEP->getResultElementType());
170171
if (!extractMatrixType(WrapperMatrixTy))
171172
continue;
172173

173174
// Insert GEP right before the __spirv_AccessChain call
174175
{
175176
IRBuilder Builder(CI);
176-
Value *NewGEP = Builder.CreateInBoundsGEP(WrapperMatrixTy,
177-
CI->getArgOperand(0), {Builder.getInt64(0), Builder.getInt32(0)});
177+
Value *NewGEP =
178+
Builder.CreateInBoundsGEP(WrapperMatrixTy, CI->getArgOperand(0),
179+
{Builder.getInt64(0), Builder.getInt32(0)});
178180
CI->setArgOperand(0, NewGEP);
179181
ModuleChanged = true;
180182
}

0 commit comments

Comments
 (0)