This is an archive of the discontinued LLVM Phabricator instance.

[mlir][func] Guard for unranked memref with the bare ptr memref call
ClosedPublic

Authored by Lewuathe on Apr 12 2023, 1:36 AM.

Details

Summary

Lowering the call op with use-bare-ptr-memref-call crashes due to the unsupported unranked memref type. We can prevent the crash by checking the type of operand in the pass instead of the assertion in the type converter.

Issue: https://github.com/llvm/llvm-project/issues/61872

Diff Detail

Event Timeline

Lewuathe created this revision.Apr 12 2023, 1:36 AM
Herald added a reviewer: dcaballe. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Lewuathe requested review of this revision.Apr 12 2023, 1:36 AM
Lewuathe edited the summary of this revision. (Show Details)Apr 12 2023, 1:36 AM
ftynse accepted this revision.Apr 12 2023, 2:29 AM
This revision is now accepted and ready to land.Apr 12 2023, 2:29 AM