Skip to content
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

PTECH-747: llvm bump on circt. Found 2 errors. #5414

Merged
merged 6 commits into from
Jun 21, 2023

Conversation

mbalboni07
Copy link
Contributor

fork for llvm bump on circt

@mbalboni07
Copy link
Contributor Author

Found 2 errors

/circt/lib/Conversion/ArcToLLVM/LowerArcToLLVM.cpp:329:61:   required from here
circt/llvm/mlir/include/mlir/IR/Builders.h:490:16: error: no matching function for call to 'mlir::llvm::CountLeadingZerosOp::build(mlir::OpBuilder&, mlir::OperationState&, mlir::Type, mlir::Value, mlir::Value&)'
  490 |     OpTy::build(*this, state, std::forward<Args>(args)...);
      |     ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
/circt/lib/Conversion/ArcToLLVM/LowerArcToLLVM.cpp:334:60:   required from here/circt/llvm/mlir/include/mlir/IR/Builders.h:490:16: error: no matching function for call to 'mlir::LLVM::CountTrailingZerosOp::build(mlir::OpBuilder&, mlir::OperationState&, mlir::Type, mlir::Value, mlir::Value&)'
  490 |     OpTy::build(*this, state, std::forward<Args>(args)...);
      |     ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@teqdruid
Copy link
Contributor

Do you need this specific llvm submodule to not encounter those compile issues? IIRC we haven't seen our weekly bump to latest yet this week.

What compiler/version/OS are you using? We aren't catching this in our CI.

@teqdruid
Copy link
Contributor

nevermind... this IS the weekly bump.

@mikeurbach
Copy link
Contributor

@fabianschuiki @maerhart seems some LLVM op builders used by arc have changed?

Copy link
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for tackling this 👍

It looks like FlattenMemRefs.cpp is using things in the control flow dialect. Maybe the CMakeLists.txt for CIRCTTransforms needs a dependency on MLIRCF?

@maerhart maerhart merged commit e8ec7d7 into llvm:main Jun 21, 2023
5 checks passed
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.

None yet

5 participants