This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Support llvm.readonly attribute on llvm pointers
ClosedPublic

Authored by guraypp on Dec 8 2022, 8:53 AM.

Details

Summary

The attribute is translated into LLVM's function attribute 'readonly'. The attribute can be only used for pointers.

Diff Detail

Event Timeline

guraypp created this revision.Dec 8 2022, 8:53 AM
Herald added a project: Restricted Project. · View Herald Transcript
guraypp requested review of this revision.Dec 8 2022, 8:53 AM
guraypp updated this revision to Diff 481314.Dec 8 2022, 8:59 AM

add invalid test

nicolasvasilache accepted this revision.Dec 9 2022, 12:53 AM
This revision is now accepted and ready to land.Dec 9 2022, 12:53 AM
This revision was automatically updated to reflect the committed changes.