This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Infer locations for block argument conversion
ClosedPublic

Authored by nand on Aug 14 2023, 8:05 AM.

Details

Summary

To enable signature conversions to be used in CIRCT, locations should no longer be dropped from block arguments.

Diff Detail

Event Timeline

nand created this revision.Aug 14 2023, 8:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 14 2023, 8:05 AM
nand requested review of this revision.Aug 14 2023, 8:05 AM
nand updated this revision to Diff 549973.Aug 14 2023, 8:46 AM

Fixed conversion for inserted arguments

nand updated this revision to Diff 549975.Aug 14 2023, 8:48 AM

remove unnecessary loop

springerm accepted this revision.Aug 17 2023, 1:07 AM
springerm added inline comments.
mlir/lib/Transforms/Utils/DialectConversion.cpp
730

< is more idiomatic

This revision is now accepted and ready to land.Aug 17 2023, 1:07 AM
Mogball accepted this revision.Aug 17 2023, 2:19 AM

Thank you! I just noticed the conversion was spitting out unknown locations today was about to try to fix it!

nand updated this revision to Diff 551531.Aug 18 2023, 8:43 AM

apply nit

This revision was landed with ongoing or failed builds.Aug 18 2023, 9:44 AM
This revision was automatically updated to reflect the committed changes.