This is an archive of the discontinued LLVM Phabricator instance.

[mlir][llvm] Reintroduce string based attribute setting.
ClosedPublic

Authored by gysit on Feb 13 2023, 12:00 PM.

Details

Summary

Reintroduce string based attribute setting in the
translation from LLVM dialect to LLVM IR. The TypeSwitch
based implementation introduced in
https://reviews.llvm.org/D143654 does not work for
intrinsics that set the requiresAccessGroup or
requiresAliasScope flag.

Diff Detail

Event Timeline

gysit created this revision.Feb 13 2023, 12:00 PM
Herald added a project: Restricted Project. · View Herald Transcript
gysit requested review of this revision.Feb 13 2023, 12:00 PM
gysit added a subscriber: hgreving.

@hgreving this should fix the issue for intrinsics that use the requiresAccessGroup or requiresAliasScope flags. Let me know if this is not needed urgently, then I would suggest to work on a interface solution instead.

hgreving accepted this revision.Feb 13 2023, 12:25 PM

I wonder if we should add a test for this. Thanks a lot for the fix here.

This revision is now accepted and ready to land.Feb 13 2023, 12:25 PM

We plan to add alias scope / access group attributes to the memcpy intrinsics soon. That will be good opportunity to add a test. I hope it is ok if I land tomorrow morning European time?

We plan to add alias scope / access group attributes to the memcpy intrinsics soon. That will be good opportunity to add a test. I hope it is ok if I land tomorrow morning European time?

Yes, thanks.

This revision was automatically updated to reflect the committed changes.