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

error: ‘class mlir::MemRefType’ has no member named ‘getAffineMaps’ #2

Closed
oroppas opened this issue Nov 21, 2021 · 2 comments
Closed

Comments

@oroppas
Copy link

oroppas commented Nov 21, 2021

Hi,

Polygeist in circt-hls is out of sync with CIRCT's MLIR:

[1/7] Building CXX object lib/polygeist/Passes/CMakeFiles/obj.MLIRPolygeistTransforms.dir/ParallelLoopDistribute.cpp.o
FAILED: lib/polygeist/Passes/CMakeFiles/obj.MLIRPolygeistTransforms.dir/ParallelLoopDistribute.cpp.o
/usr/sbin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/ryutas/packages/circt/circt/llvm/llvm/include -I/home/ryutas/packages/circt/build/include -I/home/ryutas/packages/circt/circt/llvm/clang/include -I/home/ryutas/packages/circt/build/tools/clang/include -I/home/ryutas/packages/circt/circt/llvm/mlir/include -I/home/ryutas/packages/circt/build/tools/mlir/include -I/home/ryutas/packages/circt-hls/circt-hls/Polygeist/include -I/home/ryutas/packages/circt-hls/build/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -fdiagnostics-color -g   -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS  -fno-exceptions -fno-rtti -std=gnu++14 -MD -MT lib/polygeist/Passes/CMakeFiles/obj.MLIRPolygeistTransforms.dir/ParallelLoopDistribute.cpp.o -MF lib/polygeist/Passes/CMakeFiles/obj.MLIRPolygeistTransforms.dir/ParallelLoopDistribute.cpp.o.d -o lib/polygeist/Passes/CMakeFiles/obj.MLIRPolygeistTransforms.dir/ParallelLoopDistribute.cpp.o -c /home/ryutas/packages/circt-hls/circt-hls/Polygeist/lib/polygeist/Passes/ParallelLoopDistribute.cpp
/home/ryutas/packages/circt-hls/circt-hls/Polygeist/lib/polygeist/Passes/ParallelLoopDistribute.cpp: In member function ‘virtual mlir::LogicalResult {anonymous}::DistributeAroundBarrier::matchAndRewrite(mlir::scf::ParallelOp, mlir::PatternRewriter&) const’:
/home/ryutas/packages/circt-hls/circt-hls/Polygeist/lib/polygeist/Passes/ParallelLoopDistribute.cpp:733:37: error: ‘class mlir::MemRefType’ has no member named ‘getAffineMaps’
  733 |                                 mt0.getAffineMaps(), mt0.getMemorySpace());
      |                                     ^~~~~~~~~~~~~
ninja: build stopped: subcommand failed.

Bumping Polygeist should fix this issue.

https://github.com/wsmoses/Polygeist/blob/2e6bb368ff4894993eb2102c1da3389fa18e49ef/lib/polygeist/Passes/ParallelLoopDistribute.cpp#L731-L732

@mortbopet
Copy link
Member

mortbopet commented Nov 21, 2021

Bumped polygeist in 928222b, thank you for notifying!

@oroppas
Copy link
Author

oroppas commented Nov 21, 2021

Thank you for the quick fix! I can build mlir-clang now.

@oroppas oroppas closed this as completed Nov 21, 2021
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

No branches or pull requests

2 participants