This is an archive of the discontinued LLVM Phabricator instance.

[mlir][llvm] Improve LoadOp and StoreOp import.
ClosedPublic

Authored by gysit on Feb 10 2023, 1:46 AM.

Details

Summary

The revision supports importing the volatile keyword and nontemporal
metadata for the LoadOp and StoreOp. Additionally, it updates the
builders and uses an assembly format for printing and parsing.

The operation type still requires custom parse and print methods
due to the current handling of typed and opaque pointers.

Diff Detail

Event Timeline

gysit created this revision.Feb 10 2023, 1:46 AM
Herald added a project: Restricted Project. · View Herald Transcript
gysit requested review of this revision.Feb 10 2023, 1:46 AM
Dinistro accepted this revision.Feb 10 2023, 5:52 AM

LGTM!

mlir/test/Target/LLVMIR/Import/instructions.ll
254

What's the reason to introduce the {{.*}}?

This revision is now accepted and ready to land.Feb 10 2023, 5:52 AM
gysit added inline comments.Feb 10 2023, 6:01 AM
mlir/test/Target/LLVMIR/Import/instructions.ll
254

we now always import the default alignment of the loaded value (here 16 I believe). This is already tested in the load store test.

Dinistro added inline comments.Feb 10 2023, 6:10 AM
mlir/test/Target/LLVMIR/Import/instructions.ll
254

Makes sense then, thanks.

This revision was landed with ongoing or failed builds.Feb 12 2023, 11:56 PM
This revision was automatically updated to reflect the committed changes.