Skip to content

Commit 4c41ac6

Browse files
committed
rebase, use auto for variable holding an explicit cast
1 parent 9685e63 commit 4c41ac6

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static mlir::Value emitX86FunnelShift(CIRGenFunction &cgf, const CallExpr *e,
104104
auto vecTy = mlir::cast<cir::VectorType>(ty);
105105

106106
auto numElems = vecTy.getSize();
107-
cir::IntType vecElemType = mlir::cast<cir::IntType>(vecTy.getElementType());
107+
auto vecElemType = mlir::cast<cir::IntType>(vecTy.getElementType());
108108
auto signlessType =
109109
cir::IntType::get(&cgf.getMLIRContext(), vecElemType.getWidth(), false);
110110
amt = cgf.getBuilder().createIntCast(amt, signlessType);
@@ -680,11 +680,6 @@ mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID,
680680
builder.createVecShuffle(getLoc(expr->getExprLoc()), in, zero, indices);
681681
return builder.createBitcast(sv, ops[0].getType());
682682
}
683-
case X86::BI__builtin_ia32_kshiftridi:
684-
cgm.errorNYI(expr->getSourceRange(),
685-
std::string("unimplemented X86 builtin call: ") +
686-
getContext().BuiltinInfo.getName(builtinID));
687-
return {};
688683
case X86::BI__builtin_ia32_vprotbi:
689684
case X86::BI__builtin_ia32_vprotwi:
690685
case X86::BI__builtin_ia32_vprotdi:

0 commit comments

Comments
 (0)