This is an archive of the discontinued LLVM Phabricator instance.

[mlir][llvm] Import matrix, vector, and assume intrinsics from LLVM IR.
ClosedPublic

Authored by gysit on Oct 17 2022, 11:58 PM.

Details

Summary

The revision adds support to import:

  • matrix intrinsics
  • vector reduce fadd/fmul intrinsics
  • assume intrinsics

from LLVM IR.

Diff Detail

Event Timeline

gysit created this revision.Oct 17 2022, 11:58 PM
gysit requested review of this revision.Oct 17 2022, 11:58 PM
ftynse accepted this revision.Oct 18 2022, 12:35 AM

While you are looking at these, maybe we can also have more specific type constraints than the generic LLVM_Type?

This revision is now accepted and ready to land.Oct 18 2022, 12:35 AM

While you are looking at these, maybe we can also have more specific type constraints than the generic LLVM_Type?

Yes that may actually unveil some import bugs. I'll put it on my TODO list to make the types of at least some of the operation types more precise. It seems like the type definitions are already there!

Yes, I switched most of the operations to have better type constraints, but didn't do this for intrinsics.

gysit updated this revision to Diff 468443.Oct 18 2022, 12:59 AM

Remove redunant variable name in assume intrinsic declaration.

This revision was landed with ongoing or failed builds.Oct 18 2022, 1:12 AM
This revision was automatically updated to reflect the committed changes.