Skip to content

Commit c4847c0

Browse files
wizardengineerlanza
authored andcommitted
[CIR][NFC] Using types explicitly for pslldqi construct (#1964)
A simple clean up, just some small changes for the use explicitly types instead of `auto`. In the case of `BI__builtin_ia32_pslldqi*_byteshift`. Following the suggestion of this comment: #1886 (comment)
1 parent 4af3a68 commit c4847c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp

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

170170
// If pslldq is shifting the vector more than 15 bytes, emit zero.

0 commit comments

Comments
 (0)