Skip to content

Commit 53badaa

Browse files
[CIR][NFC] Using type explicitly for pslldqi construct
1 parent a8000bb commit 53badaa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ static mlir::Value emitX86SExtMask(CIRGenFunction &cgf, mlir::Value op,
161161
static mlir::Value emitX86PSLLDQIByteShift(CIRGenFunction &cgf,
162162
const CallExpr *E,
163163
ArrayRef<mlir::Value> Ops) {
164-
auto &builder = cgf.getBuilder();
164+
CIRGenBuilderTy &builder = cgf.getBuilder();
165165
unsigned shiftVal = getIntValueFromConstOp(Ops[1]) & 0xff;
166-
auto loc = cgf.getLoc(E->getExprLoc());
167-
auto resultType = cast<cir::VectorType>(Ops[0].getType());
166+
mlir::Location loc = cgf.getLoc(E->getExprLoc());
167+
cir::VectorType resultType = cast<cir::VectorType>(Ops[0].getType());
168168

169169
// If pslldq is shifting the vector more than 15 bytes, emit zero.
170170
// This matches the hardware behavior where shifting by 16+ bytes
@@ -189,7 +189,8 @@ static mlir::Value emitX86PSLLDQIByteShift(CIRGenFunction &cgf,
189189
}
190190

191191
// Cast to byte vector for shuffle operation
192-
auto byteVecTy = cir::VectorType::get(builder.getSInt8Ty(), numElts);
192+
cir::VectorType byteVecTy =
193+
cir::VectorType::get(builder.getSInt8Ty(), numElts);
193194
mlir::Value byteCast = builder.createBitcast(Ops[0], byteVecTy);
194195
mlir::Value zero = builder.getZero(loc, byteVecTy);
195196

0 commit comments

Comments
 (0)