This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Conversion] Add type converter parameter to ConvertToLLVMPatternInterface
ClosedPublic

Authored by springerm on Aug 8 2023, 5:16 AM.

Details

Summary

Most *-to-llvm conversion patterns require a type converter. This
revision adds a type converter to the
populateConvertToLLVMConversionPatterns function and implements the
interface for the MemRef dialect.

Diff Detail

Event Timeline

springerm created this revision.Aug 8 2023, 5:16 AM
Herald added a reviewer: dcaballe. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
springerm requested review of this revision.Aug 8 2023, 5:16 AM
nicolasvasilache accepted this revision.Aug 8 2023, 6:32 AM

Ah nice!

Can we add some test ?

This revision is now accepted and ready to land.Aug 8 2023, 6:32 AM
springerm updated this revision to Diff 548206.Aug 8 2023, 7:06 AM

add test case

mehdi_amini accepted this revision.Aug 8 2023, 12:36 PM

Thanks!