-
Notifications
You must be signed in to change notification settings - Fork 347
[LLVM] integrate upstream SMT #8408
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
[LLVM] integrate upstream SMT #8408
Conversation
3a81a31
to
05a2409
Compare
05a2409
to
3b4189b
Compare
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.
This looks good to me, thanks!
@@ -34,8 +34,8 @@ struct CombReplicateOpConversion : OpConversionPattern<ReplicateOp> { | |||
LogicalResult | |||
matchAndRewrite(ReplicateOp op, OpAdaptor adaptor, | |||
ConversionPatternRewriter &rewriter) const override { | |||
rewriter.replaceOpWithNewOp<smt::RepeatOp>(op, op.getMultiple(), | |||
adaptor.getInput()); | |||
rewriter.replaceOpWithNewOp<mlir::smt::RepeatOp>(op, op.getMultiple(), |
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.
Is there a reason to not just using namespace mlir
in this file?
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.
At first I did that but then I couldn't tell what convention you guys are following - whether code outside of CIRCT should be fully qualified. If you say using namespace mlir
is ok that's good enough for me!
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.
I'm definitely not an authority on our style conventions, but it looks like plenty of conversion passes use it!
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.
LGTM, thanks for doing the integration!
e75ef0e
to
c930fe2
Compare
c930fe2
to
e32b67b
Compare
This PR bumps LLVM to the
main
commit associated with llvm/llvm-project#131480. The only non-upstreaming-SMT change is the small change in test/Dialect/Moore/types-errors.mlir.Note, the upstream PR was only for the dialect itself. Shortly I will send subsequent PRs to move all of the other SMT stuff (ExportSMITLib, CAPI, Python bindings).