Skip to content

Conversation

@wizardengineer
Copy link
Contributor

@wizardengineer wizardengineer commented Sep 3, 2025

Related Issue: #1885

@github-actions
Copy link

github-actions bot commented Sep 3, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

@lanza lanza force-pushed the main branch 2 times, most recently from 8acaf96 to 58135ea Compare October 20, 2025 17:19
@wizardengineer wizardengineer marked this pull request as ready for review October 28, 2025 23:46
static mlir::Value emitX86PSRLDQIByteShift(CIRGenFunction &cgf,
const CallExpr *E,
ArrayRef<mlir::Value> Ops) {
auto &builder = cgf.getBuilder();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ArrayRef<mlir::Value> Ops) {
auto &builder = cgf.getBuilder();
auto resultType = cast<cir::VectorType>(Ops[0].getType());
auto loc = cgf.getLoc(E->getExprLoc());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use the type explicitly here, not auto

Suggested change
auto loc = cgf.getLoc(E->getExprLoc());
mlir::Location loc = cgf.getLoc(E->getExprLoc());

if (shiftVal >= 16)
return builder.getZero(loc, resultType);

auto numElts = resultType.getSize() * 8;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use the type explicitly here, not auto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants