- 
                Notifications
    You must be signed in to change notification settings 
- Fork 175
          [CIR] Added support for __builtin_ia32_psrldqi_byteshift
          #1886
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| ✅ With the latest revision this PR passed the C/C++ code formatter. | 
8acaf96    to
    58135ea      
    Compare
  
    ff9f528    to
    d00a8cd      
    Compare
  
    | static mlir::Value emitX86PSRLDQIByteShift(CIRGenFunction &cgf, | ||
| const CallExpr *E, | ||
| ArrayRef<mlir::Value> Ops) { | ||
| auto &builder = cgf.getBuilder(); | 
There was a problem hiding this comment.
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
https://llvm.org/docs/CodingStandards.html#use-auto-type-deduction-to-make-code-more-readable
| ArrayRef<mlir::Value> Ops) { | ||
| auto &builder = cgf.getBuilder(); | ||
| auto resultType = cast<cir::VectorType>(Ops[0].getType()); | ||
| auto loc = cgf.getLoc(E->getExprLoc()); | 
There was a problem hiding this comment.
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
| 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; | 
There was a problem hiding this comment.
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
Related Issue: #1885